answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT COUNT(crowd) FROM table_name_73 WHERE home_team = "melbourne"
CREATE TABLE table_name_73 (crowd VARCHAR, home_team VARCHAR)
What was the crowd attendance when the home team was Melbourne?
SELECT away_team FROM table_name_30 WHERE venue = "lake oval"
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
What was the away team when the venue was Lake Oval?
SELECT away_team FROM table_name_7 WHERE home_team = "carlton"
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
What was the away team when the home team was Carlton?
SELECT player FROM table_name_27 WHERE round = 11 AND pick = 302
CREATE TABLE table_name_27 (player VARCHAR, round VARCHAR, pick VARCHAR)
What player is picked 302 in round 11?
SELECT laps FROM table_name_41 WHERE driver = "jackie oliver"
CREATE TABLE table_name_41 (laps VARCHAR, driver VARCHAR)
How many laps did Jackie Oliver do?
SELECT SUM(laps) FROM table_name_68 WHERE grid > 7 AND constructor = "lotus - ford" AND time_retired = "+ 2 laps"
CREATE TABLE table_name_68 (laps INTEGER, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR)
How many laps with a grid larger than 7 did a Lotus - Ford do with a Time/Retired of + 2 laps?
SELECT constellation FROM table_name_19 WHERE ngc_number < 5457
CREATE TABLE table_name_19 (constellation VARCHAR, ngc_number INTEGER)
What is the name of the constellation that has a NGC number smaller tha 5457?
SELECT MIN(apparent_magnitude) FROM table_name_67 WHERE declination___j2000__ = "Β°39β€²45β€³"
CREATE TABLE table_name_67 (apparent_magnitude INTEGER, declination___j2000__ VARCHAR)
What is the Apparent magnitude of a Declination (J2000) of Β°39β€²45β€³?
SELECT supercharger_gear_ratio FROM table_name_22 WHERE octane_rating = "68"
CREATE TABLE table_name_22 (supercharger_gear_ratio VARCHAR, octane_rating VARCHAR)
Which supercharger gear ratio has a Octane rating of 68?
SELECT elite_eight FROM table_name_56 WHERE conference = "big west"
CREATE TABLE table_name_56 (elite_eight VARCHAR, conference VARCHAR)
What is the elite eight result for the big west?
SELECT votes__percentage FROM table_name_24 WHERE candidate = "cliff breitkreuz"
CREATE TABLE table_name_24 (votes__percentage VARCHAR, candidate VARCHAR)
What is the vote % for Cliff Breitkreuz?
SELECT time_retired FROM table_name_36 WHERE driver = "damon hill"
CREATE TABLE table_name_36 (time_retired VARCHAR, driver VARCHAR)
What is the time/retired for damon hill?
SELECT constructor FROM table_name_4 WHERE time_retired = "+1 lap" AND driver = "olivier panis"
CREATE TABLE table_name_4 (constructor VARCHAR, time_retired VARCHAR, driver VARCHAR)
Who constructed olivier panis' car that retired after +1 lap?
SELECT high_assists FROM table_name_22 WHERE high_points = "hamilton (24)"
CREATE TABLE table_name_22 (high_assists VARCHAR, high_points VARCHAR)
What is the high assists of Hamilton (24)?
SELECT series FROM table_name_32 WHERE high_points = "prince (23)"
CREATE TABLE table_name_32 (series VARCHAR, high_points VARCHAR)
What series had a high points of Prince (23)?
SELECT category FROM table_name_18 WHERE awards = "british soap awards" AND result = "nominated"
CREATE TABLE table_name_18 (category VARCHAR, awards VARCHAR, result VARCHAR)
What category of the British Soap Awards resulted in nominated?
SELECT category FROM table_name_38 WHERE year = 2010 AND result = "nominated" AND awards = "british soap awards"
CREATE TABLE table_name_38 (category VARCHAR, awards VARCHAR, year VARCHAR, result VARCHAR)
What category was nominated in 2010 fo the British Soap Awards?
SELECT country FROM table_name_14 WHERE name = "dyer"
CREATE TABLE table_name_14 (country VARCHAR, name VARCHAR)
Which country is Dyer from?
SELECT country FROM table_name_32 WHERE moving_from = "everton"
CREATE TABLE table_name_32 (country VARCHAR, moving_from VARCHAR)
What country is the athlete moving from Everton from?
SELECT tournament FROM table_name_32 WHERE 2009 = "2r"
CREATE TABLE table_name_32 (tournament VARCHAR)
Name the tournament for 2009 2r
SELECT 2011 FROM table_name_7 WHERE 2009 = "2r" AND tournament = "wimbledon"
CREATE TABLE table_name_7 (tournament VARCHAR)
Name the 2011 for 2009 being 2r at wimbledon
SELECT 2012 FROM table_name_19 WHERE 2009 = "1r"
CREATE TABLE table_name_19 (Id VARCHAR)
Name the 2012 for 2009 of 1r
SELECT away_team FROM table_name_7 WHERE home_team = "south melbourne"
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
Who was the away team when the home team was South Melbourne?
SELECT COUNT(swimsuit) FROM table_name_35 WHERE evening_gown > 9.48 AND country = "florida" AND interview > 8.94
CREATE TABLE table_name_35 (swimsuit VARCHAR, interview VARCHAR, evening_gown VARCHAR, country VARCHAR)
What is the total swimsuit number with gowns larger than 9.48 with interviews larger than 8.94 in florida?
SELECT SUM(average) FROM table_name_70 WHERE swimsuit < 9.62 AND country = "colorado"
CREATE TABLE table_name_70 (average INTEGER, swimsuit VARCHAR, country VARCHAR)
What is the total average for swimsuits smaller than 9.62 in Colorado?
SELECT AVG(bronze) FROM table_name_86 WHERE total = 47
CREATE TABLE table_name_86 (bronze INTEGER, total VARCHAR)
What was the bronze medal count of the team that finished with 47 total medals?
SELECT SUM(silver) FROM table_name_41 WHERE bronze = 8
CREATE TABLE table_name_41 (silver INTEGER, bronze VARCHAR)
What is the silver medal count of the team that finished with 8 bronze medals?
SELECT status FROM table_name_10 WHERE athlete = "renΓ© hoppe"
CREATE TABLE table_name_10 (status VARCHAR, athlete VARCHAR)
What is the status of renΓ© hoppe?
SELECT COUNT(total) FROM table_name_17 WHERE country = "switzerland" AND gold < 7 AND silver < 3
CREATE TABLE table_name_17 (total VARCHAR, silver VARCHAR, country VARCHAR, gold VARCHAR)
How many times does Switzerland have under 7 golds and less than 3 silvers?
SELECT athlete FROM table_name_87 WHERE gold < 7 AND total = 14
CREATE TABLE table_name_87 (athlete VARCHAR, gold VARCHAR, total VARCHAR)
What athlete has less than 7 gold and 14 total medals?
SELECT AVG(crowd) FROM table_name_13 WHERE home_team = "hawthorn"
CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR)
What is the average crowd size for the home team hawthorn?
SELECT venue FROM table_name_48 WHERE home_team = "st kilda"
CREATE TABLE table_name_48 (venue VARCHAR, home_team VARCHAR)
Where does St Kilda play?
SELECT home_team FROM table_name_76 WHERE away_team = "fitzroy"
CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR)
Who was the home team when Fitzroy was the away team?
SELECT home_team AS score FROM table_name_43 WHERE venue = "kardinia park"
CREATE TABLE table_name_43 (home_team VARCHAR, venue VARCHAR)
What was the home team score at Kardinia Park?
SELECT MIN(crowd) FROM table_name_2 WHERE home_team = "carlton"
CREATE TABLE table_name_2 (crowd INTEGER, home_team VARCHAR)
What was the lowest crowd size for the Carlton at home?
SELECT engine FROM table_name_57 WHERE rounds = "7" AND driver = "geki"
CREATE TABLE table_name_57 (engine VARCHAR, rounds VARCHAR, driver VARCHAR)
Name the engine with rounds of 7 with geki driver
SELECT driver FROM table_name_24 WHERE rounds = "3"
CREATE TABLE table_name_24 (driver VARCHAR, rounds VARCHAR)
Name the driver for 3 rounds
SELECT COUNT(crowd) FROM table_name_6 WHERE home_team = "north melbourne"
CREATE TABLE table_name_6 (crowd VARCHAR, home_team VARCHAR)
What was the attendance of the North Melbourne's home game?
SELECT SUM(crowd) FROM table_name_36 WHERE home_team = "fitzroy"
CREATE TABLE table_name_36 (crowd INTEGER, home_team VARCHAR)
What was the attendance at the Fitzroy home game?
SELECT MAX(crowd) FROM table_name_46 WHERE home_team = "richmond"
CREATE TABLE table_name_46 (crowd INTEGER, home_team VARCHAR)
What was Richmond's highest attendance?
SELECT ground FROM table_name_49 WHERE match = 4
CREATE TABLE table_name_49 (ground VARCHAR, match VARCHAR)
Which ground is match 4 held on?
SELECT game FROM table_name_15 WHERE team = "chicago"
CREATE TABLE table_name_15 (game VARCHAR, team VARCHAR)
Which game number did they play the Chicago team?
SELECT record FROM table_name_26 WHERE location_attendance = "air canada centre 19,800"
CREATE TABLE table_name_26 (record VARCHAR, location_attendance VARCHAR)
What was the season record when the location attendance was Air Canada Centre 19,800?
SELECT visitor FROM table_name_29 WHERE home = "ny rangers"
CREATE TABLE table_name_29 (visitor VARCHAR, home VARCHAR)
Name the visitor for home of ny rangers
SELECT label FROM table_name_25 WHERE media = "cd" AND release_date = 2004
CREATE TABLE table_name_25 (label VARCHAR, media VARCHAR, release_date VARCHAR)
What is the label for a CD released in 2004?
SELECT label FROM table_name_89 WHERE release_date = 1982 AND country = "us"
CREATE TABLE table_name_89 (label VARCHAR, release_date VARCHAR, country VARCHAR)
Who made a release in the US in 1982?
SELECT SUM(crowd) FROM table_name_88 WHERE venue = "arden street oval"
CREATE TABLE table_name_88 (crowd INTEGER, venue VARCHAR)
In the match where the venue was arden street oval, what was the crowd attendance?
SELECT SUM(crowd) FROM table_name_58 WHERE venue = "punt road oval"
CREATE TABLE table_name_58 (crowd INTEGER, venue VARCHAR)
What was the crowd attendance in the match at punt road oval?
SELECT home_team AS score FROM table_name_32 WHERE crowd > 21 OFFSET 188
CREATE TABLE table_name_32 (home_team VARCHAR, crowd INTEGER)
What was the score when the home team had a crowd larger than 21,188?
SELECT venue FROM table_name_23 WHERE away_team = "north melbourne"
CREATE TABLE table_name_23 (venue VARCHAR, away_team VARCHAR)
Where did north melbourne play while away?
SELECT home_team AS score FROM table_name_10 WHERE away_team = "north melbourne"
CREATE TABLE table_name_10 (home_team VARCHAR, away_team VARCHAR)
What did the team score at home in north melbourne?
SELECT time_retired FROM table_name_54 WHERE grid < 2
CREATE TABLE table_name_54 (time_retired VARCHAR, grid INTEGER)
What was the time of the driver in grid 2?
SELECT time_retired FROM table_name_51 WHERE grid < 14 AND driver = "carroll shelby"
CREATE TABLE table_name_51 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
What time did Carroll Shelby have in Grid 14?
SELECT time_retired FROM table_name_85 WHERE laps < 62 AND constructor = "ferrari"
CREATE TABLE table_name_85 (time_retired VARCHAR, laps VARCHAR, constructor VARCHAR)
What time did the ferrari car that finished 62 laps have?
SELECT date FROM table_name_11 WHERE visitor = "knicks" AND attendance > 18 OFFSET 165
CREATE TABLE table_name_11 (date VARCHAR, visitor VARCHAR, attendance VARCHAR)
What is the date of the game where the vistor team was the Knicks and more than 18,165 were in attendance?
SELECT AVG(laps) FROM table_name_79 WHERE driver = "teo fabi" AND grid < 9
CREATE TABLE table_name_79 (laps INTEGER, driver VARCHAR, grid VARCHAR)
Whats teo fabi average lap time while having less than 9 grids?
SELECT driver FROM table_name_12 WHERE grid = 19
CREATE TABLE table_name_12 (driver VARCHAR, grid VARCHAR)
Which driver drove in grid 19?
SELECT opponent FROM table_name_5 WHERE date = "april 29"
CREATE TABLE table_name_5 (opponent VARCHAR, date VARCHAR)
Who was the opponent on April 29?
SELECT SUM(attendance) FROM table_name_50 WHERE date = "april 17"
CREATE TABLE table_name_50 (attendance INTEGER, date VARCHAR)
How many attended the game on April 17?
SELECT record FROM table_name_86 WHERE date = "april 3"
CREATE TABLE table_name_86 (record VARCHAR, date VARCHAR)
What is the record on April 3?
SELECT weight FROM table_name_33 WHERE internal_storage = "16-64 gb" AND wireless_network = "wi-fi, 3g"
CREATE TABLE table_name_33 (weight VARCHAR, internal_storage VARCHAR, wireless_network VARCHAR)
What is the weight of the display that has an internal storage of 16-64 GB and uses a wi-fi, 3G wireless network?
SELECT wireless_network FROM table_name_6 WHERE screen_type = "lcd" AND internal_storage = "4 gb"
CREATE TABLE table_name_6 (wireless_network VARCHAR, screen_type VARCHAR, internal_storage VARCHAR)
Which wireless network did LCD displays with 4 GB of internal storage use?
SELECT MIN(draws) FROM table_name_98 WHERE wins < 15 AND against = 1228
CREATE TABLE table_name_98 (draws INTEGER, wins VARCHAR, against VARCHAR)
What's the lowest number of draws when the wins are less than 15, and against is 1228?
SELECT SUM(draws) FROM table_name_72 WHERE against > 1228 AND wins < 1
CREATE TABLE table_name_72 (draws INTEGER, against VARCHAR, wins VARCHAR)
What's the sum of draws for against larger than 1228 with fewer than 1 wins?
SELECT dates FROM table_name_27 WHERE lifetime_achievement = "jim jarmusch"
CREATE TABLE table_name_27 (dates VARCHAR, lifetime_achievement VARCHAR)
On what dates did Jim Jarmusch win the Lifetime Achievement?
SELECT home FROM table_name_45 WHERE visitor = "colorado" AND record = "26–15–9"
CREATE TABLE table_name_45 (home VARCHAR, visitor VARCHAR, record VARCHAR)
Which team was the home team when Colorado was the visitor and the record became 26–15–9?
SELECT score FROM table_name_78 WHERE record = "25–14–9"
CREATE TABLE table_name_78 (score VARCHAR, record VARCHAR)
What was the score when the record became 25–14–9?
SELECT date FROM table_name_35 WHERE record = "26–14–9"
CREATE TABLE table_name_35 (date VARCHAR, record VARCHAR)
What was the date the record became 26–14–9?
SELECT home FROM table_name_88 WHERE visitor = "colorado" AND record = "22–13–6"
CREATE TABLE table_name_88 (home VARCHAR, visitor VARCHAR, record VARCHAR)
What team was the home team when Colorado was the visitor and the record became 22–13–6?
SELECT venue FROM table_name_55 WHERE tournament = "asian games"
CREATE TABLE table_name_55 (venue VARCHAR, tournament VARCHAR)
What's the venue for the asian games tournament?
SELECT tournament FROM table_name_48 WHERE result = "6th"
CREATE TABLE table_name_48 (tournament VARCHAR, result VARCHAR)
Which tournament resulted in 6th place?
SELECT MAX(year) FROM table_name_19 WHERE venue = "doha, qatar"
CREATE TABLE table_name_19 (year INTEGER, venue VARCHAR)
What's the latest year that Doha, Qatar hosted a tournament?
SELECT AVG(year) FROM table_name_81 WHERE venue = "doha, qatar"
CREATE TABLE table_name_81 (year INTEGER, venue VARCHAR)
What's the average of all years tournaments were hosted in Doha, Qatar?
SELECT SUM(overall) FROM table_name_68 WHERE position = "running back" AND round > 1 AND college = "fresno state"
CREATE TABLE table_name_68 (overall INTEGER, college VARCHAR, position VARCHAR, round VARCHAR)
What is the overall draft number for the running back drafted after round 1 from fresno state?
SELECT SUM(overall) FROM table_name_25 WHERE college = "notre dame"
CREATE TABLE table_name_25 (overall INTEGER, college VARCHAR)
What is the overall total for players drafted from notre dame?
SELECT SUM(gold) FROM table_name_23 WHERE silver > 1
CREATE TABLE table_name_23 (gold INTEGER, silver INTEGER)
Name the sum of gold which has a silver more than 1
SELECT AVG(rank) FROM table_name_15 WHERE nation = "west germany" AND gold > 1
CREATE TABLE table_name_15 (rank INTEGER, nation VARCHAR, gold VARCHAR)
Name the average rank for west germany when gold is more than 1
SELECT AVG(rank) FROM table_name_86 WHERE bronze > 1
CREATE TABLE table_name_86 (rank INTEGER, bronze INTEGER)
Name the average rank for when bronze is more than 1
SELECT SUM(gold) FROM table_name_87 WHERE silver < 0
CREATE TABLE table_name_87 (gold INTEGER, silver INTEGER)
I want the sum of gold for silver being less than 0
SELECT polling_dates FROM table_name_41 WHERE alex_munter = "25%" AND polling_firm = "decima"
CREATE TABLE table_name_41 (polling_dates VARCHAR, alex_munter VARCHAR, polling_firm VARCHAR)
What dates does Alex Munter have 25% and the polling firm of Decima?
SELECT terry_kilrea__dropped_out_ FROM table_name_63 WHERE polling_firm = "holinshed" AND bob_chiarelli = "22.5%"
CREATE TABLE table_name_63 (terry_kilrea__dropped_out_ VARCHAR, polling_firm VARCHAR, bob_chiarelli VARCHAR)
What are the polling dates for polling firm Holinshed when Terry Kilrea dropped out and Bob Chiarelli has 22.5%?
SELECT date FROM table_name_91 WHERE outcome = "runner up" AND opponent = "lu jiaxiang"
CREATE TABLE table_name_91 (date VARCHAR, outcome VARCHAR, opponent VARCHAR)
What is Date, when Outcome is "Runner Up", and when Opponent is "Lu Jiaxiang"?
SELECT opponent FROM table_name_8 WHERE tournament = "phuket , thailand"
CREATE TABLE table_name_8 (opponent VARCHAR, tournament VARCHAR)
What is Opponent, when Tournament is "Phuket , Thailand"?
SELECT surface FROM table_name_87 WHERE tournament = "saint joseph , united states"
CREATE TABLE table_name_87 (surface VARCHAR, tournament VARCHAR)
What is Surface, when Tournament is "Saint Joseph , United States"?
SELECT tournament FROM table_name_98 WHERE opponent = "lu jiaxiang"
CREATE TABLE table_name_98 (tournament VARCHAR, opponent VARCHAR)
What is Tournament, when Opponent is "Lu Jiaxiang"?
SELECT outcome FROM table_name_90 WHERE tournament = "chiang mai , thailand"
CREATE TABLE table_name_90 (outcome VARCHAR, tournament VARCHAR)
What is Outcome, when Tournament is "Chiang Mai , Thailand"?
SELECT outcome FROM table_name_97 WHERE date = "19 september 2012"
CREATE TABLE table_name_97 (outcome VARCHAR, date VARCHAR)
What is Outcome, when Date is "19 September 2012"?
SELECT AVG(poles) FROM table_name_59 WHERE races < 4
CREATE TABLE table_name_59 (poles INTEGER, races INTEGER)
What Poles have Races smaller than 4?
SELECT COUNT(points) FROM table_name_39 WHERE series = "italian formula renault 2.0" AND poles < 0
CREATE TABLE table_name_39 (points VARCHAR, series VARCHAR, poles VARCHAR)
What is the sum of Points with a Series of italian formula renault 2.0, and Poles smaller than 0?
SELECT SUM(points) FROM table_name_67 WHERE wins > 0 AND position = "12th" AND poles > 0
CREATE TABLE table_name_67 (points INTEGER, poles VARCHAR, wins VARCHAR, position VARCHAR)
What is the total number of Points with Wins larger than 0, a Position of 12th, and Poles larger than 0?
SELECT MIN(wins) FROM table_name_19 WHERE position = "20th" AND poles < 0
CREATE TABLE table_name_19 (wins INTEGER, position VARCHAR, poles VARCHAR)
What is the smallest Wins with a Position of 20th, and Poles smaller than 0?
SELECT date FROM table_name_69 WHERE location = "madrid, esp"
CREATE TABLE table_name_69 (date VARCHAR, location VARCHAR)
What is the date of the match located in Madrid, Esp?
SELECT miss_maja_pilipinas FROM table_name_55 WHERE second_runner_up = "maria penson"
CREATE TABLE table_name_55 (miss_maja_pilipinas VARCHAR, second_runner_up VARCHAR)
Can you tell me the Miss Pilipinas that has the Second runner-up of maria penson?
SELECT miss_maja_pilipinas FROM table_name_30 WHERE year = 1969
CREATE TABLE table_name_30 (miss_maja_pilipinas VARCHAR, year VARCHAR)
Can you tell me the Miss Maja Pilipinas that has the Year of 1969?
SELECT third_runner_up FROM table_name_80 WHERE year = 1969
CREATE TABLE table_name_80 (third_runner_up VARCHAR, year VARCHAR)
Can you tell me the Third runner-up that has the Year of 1969?
SELECT byes FROM table_name_91 WHERE against < 1466 AND losses < 6
CREATE TABLE table_name_91 (byes VARCHAR, against VARCHAR, losses VARCHAR)
Which Byes have an Against smaller than 1466, and Losses smaller than 6?
SELECT opponent FROM table_name_47 WHERE week = 2
CREATE TABLE table_name_47 (opponent VARCHAR, week VARCHAR)
What was week 2's opponent?
SELECT MAX(week) FROM table_name_91 WHERE attendance = 20 OFFSET 112
CREATE TABLE table_name_91 (week INTEGER, attendance VARCHAR)
Which Week has an Attendance of 20,112?
SELECT margin_of_victory FROM table_name_37 WHERE make = "dodge intrepid"
CREATE TABLE table_name_37 (margin_of_victory VARCHAR, make VARCHAR)
What is the margin of victory of the Dodge Intrepid?
SELECT MIN(car__number) FROM table_name_22 WHERE sponsor = "ups" AND season < 2001
CREATE TABLE table_name_22 (car__number INTEGER, sponsor VARCHAR, season VARCHAR)
What is the lowest car number sponsored by UPS before 2001?