answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT score FROM table_name_17 WHERE opponent = "florida panthers" AND game = 2
What was the score of Game 2 in the series against the Florida Panthers?
CREATE TABLE table_name_17 (score VARCHAR, opponent VARCHAR, game VARCHAR)
SELECT score FROM table_name_68 WHERE player = "brad faxon"
What is Score, when Player is "Brad Faxon"?
CREATE TABLE table_name_68 (score VARCHAR, player VARCHAR)
SELECT rank__number FROM table_name_90 WHERE attendance = "68,586"
What rank were the Buckeyes when there were 68,586 in attendance?
CREATE TABLE table_name_90 (rank__number VARCHAR, attendance VARCHAR)
SELECT MAX(against) FROM table_name_62 WHERE difference = "58" AND played > 22
What was the highest number of against when the difference was 58 and the total played was more than 22?
CREATE TABLE table_name_62 (against INTEGER, difference VARCHAR, played VARCHAR)
SELECT away_team FROM table_name_64 WHERE date = "25 january 1986" AND tie_no = "6"
What is Away Team, when Date is "25 January 1986", and when Tie No is "6"?
CREATE TABLE table_name_64 (away_team VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT time FROM table_name_76 WHERE event = "800m freestyle"
What was the record setting time in the 800m freestyle?
CREATE TABLE table_name_76 (time VARCHAR, event VARCHAR)
SELECT home_team AS score FROM table_name_37 WHERE home_team = "geelong"
What is the score given by the Home team Geelong?
CREATE TABLE table_name_37 (home_team VARCHAR)
SELECT population FROM table_101196_1 WHERE english_name = "Spiddal"
What is the population for the English name Spiddal?
CREATE TABLE table_101196_1 (population VARCHAR, english_name VARCHAR)
SELECT runners_up FROM table_name_48 WHERE winners = "cork city f.c." AND date = "10/05/1998"
Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998?
CREATE TABLE table_name_48 (runners_up VARCHAR, winners VARCHAR, date VARCHAR)
SELECT country FROM table_18946749_1 WHERE col__m_ = 44
When 44 is the col in meters what is the country?
CREATE TABLE table_18946749_1 (country VARCHAR, col__m_ VARCHAR)
SELECT AVG(pick) FROM table_name_3 WHERE round = 4 AND school_club_team = "kutztown state"
What is the average pick of school/club team kutztown state with a round 4?
CREATE TABLE table_name_3 (pick INTEGER, round VARCHAR, school_club_team VARCHAR)
SELECT runner_s__up FROM table_name_81 WHERE winning_score = –28(66 - 67 - 68 - 64 - 67 = 332)
Who was the runner-up when the winning score was –28 (66-67-68-64-67=332)?
CREATE TABLE table_name_81 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT record FROM table_name_83 WHERE time = "3:00" AND venue = "michael's eighth avenue" AND opponent = "tim coleman"
The match of at Michael's Eighth Avenue venue against Tim Coleman that went 3:00 has what record?
CREATE TABLE table_name_83 (record VARCHAR, opponent VARCHAR, time VARCHAR, venue VARCHAR)
SELECT place FROM table_name_61 WHERE player = "phil rodgers"
What place did Phil Rodgers finish?
CREATE TABLE table_name_61 (place VARCHAR, player VARCHAR)
SELECT MIN(race_total_pts_) FROM table_23293785_2 WHERE country = "Belgium"
What is the lowest number of total race points for the country of Belgium?
CREATE TABLE table_23293785_2 (race_total_pts_ INTEGER, country VARCHAR)
SELECT COUNT(inns) FROM table_name_56 WHERE matches = 127
Matches of 127 has how many total number of inns?
CREATE TABLE table_name_56 (inns VARCHAR, matches VARCHAR)
SELECT written_by FROM table_11111116_8 WHERE us_viewers__million_ = "2.12"
Who wrote the episodes that were viewed by 2.12 million viewers?
CREATE TABLE table_11111116_8 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT pick FROM table_name_56 WHERE college = "kentucky" AND team = "washington capitols"
What was the pick for the game at the College of Kentucky with the team Washington Capitols?
CREATE TABLE table_name_56 (pick VARCHAR, college VARCHAR, team VARCHAR)
SELECT COUNT(county) FROM table_1350350_2 WHERE per_capita_income = "$20,101"
how many county with per capita income being $20,101
CREATE TABLE table_1350350_2 (county VARCHAR, per_capita_income VARCHAR)
SELECT species_specific FROM table_name_53 WHERE link = "server/sourcecode"
Which Species Specific has a Link of server/sourcecode?
CREATE TABLE table_name_53 (species_specific VARCHAR, link VARCHAR)
SELECT decision FROM table_name_62 WHERE visitor = "montreal"
No Decision listed above has a visitor of Montreal.
CREATE TABLE table_name_62 (decision VARCHAR, visitor VARCHAR)
SELECT 1 AS st_leg FROM table_name_6 WHERE team_2 = "mufulira wanderers"
What was the 1st leg score when Mufulira Wanderers played as Team 2?
CREATE TABLE table_name_6 (team_2 VARCHAR)
SELECT COUNT(directed_by) FROM table_23499946_1 WHERE us_viewers__in_millions_ = "2.80"
How many directed by have 2.80 as u.s. viewers (in millions)?
CREATE TABLE table_23499946_1 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT SUM(lost) FROM table_name_5 WHERE games < 7
How many lost are there before game 7?
CREATE TABLE table_name_5 (lost INTEGER, games INTEGER)
SELECT directed_by FROM table_16581695_4 WHERE no_in_season = "12"
Who directed episode 12 in season 3?
CREATE TABLE table_16581695_4 (directed_by VARCHAR, no_in_season VARCHAR)
SELECT T3.Pilot_name, T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID ORDER BY T3.Rank
Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.
CREATE TABLE pilot (Pilot_name VARCHAR, Pilot_ID VARCHAR, Rank VARCHAR); CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE aircraft (Fleet_Series VARCHAR, Aircraft_ID VARCHAR)
SELECT total FROM table_182298_5 WHERE country = "South Korea"
How many are the total winners from South Korea?
CREATE TABLE table_182298_5 (total VARCHAR, country VARCHAR)
SELECT away_team FROM table_name_19 WHERE ground = "colonial stadium"
What is Away Team, when Ground is Colonial Stadium?
CREATE TABLE table_name_19 (away_team VARCHAR, ground VARCHAR)
SELECT campus FROM campuses WHERE county = "Los Angeles"
Report the name of all campuses in Los Angeles county.
CREATE TABLE campuses (campus VARCHAR, county VARCHAR)
SELECT lastname FROM list WHERE classroom = 111
Find the last names of students studying in room 111.
CREATE TABLE list (lastname VARCHAR, classroom VARCHAR)
SELECT home FROM table_name_61 WHERE date = "april 4"
What is the Home team on April 4?
CREATE TABLE table_name_61 (home VARCHAR, date VARCHAR)
SELECT apple FROM table_3002894_4 WHERE sonnet = "4 MB"
When 4 mb is the sonnet what is the apple?
CREATE TABLE table_3002894_4 (apple VARCHAR, sonnet VARCHAR)
SELECT COUNT(market_share__target_group_14_49_) FROM table_2639433_4 WHERE viewers__in_millions_target_group_14_49_ = "0.63"
How many times was the viewer target group 0.63?
CREATE TABLE table_2639433_4 (market_share__target_group_14_49_ VARCHAR, viewers__in_millions_target_group_14_49_ VARCHAR)
SELECT away_team AS score FROM table_name_70 WHERE venue = "lake oval"
What was the score for the away team when they played at lake oval?
CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR)
SELECT indianapolis_concerts FROM table_17085724_1 WHERE sarasota = "Les Minski"
Name the indianapolis concerts for les minski
CREATE TABLE table_17085724_1 (indianapolis_concerts VARCHAR, sarasota VARCHAR)
SELECT team FROM table_name_51 WHERE best = "1:24.152"
What Team had a 1:24.152 Best?
CREATE TABLE table_name_51 (team VARCHAR, best VARCHAR)
SELECT result FROM table_name_76 WHERE date = "june 12, 1997"
What's the Result listed that has a Date of June 12, 1997?
CREATE TABLE table_name_76 (result VARCHAR, date VARCHAR)
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor
What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?
CREATE TABLE entrepreneur (Investor VARCHAR)
SELECT literacy_rate___percentage____2001_census FROM table_name_80 WHERE _percentage_increase = "12.66%"
What was the literacy rate published in the 2001 census for the state that saw a 12.66% increase?
CREATE TABLE table_name_80 (literacy_rate___percentage____2001_census VARCHAR, _percentage_increase VARCHAR)
SELECT bandwidth_included FROM table_name_45 WHERE price = "50 eur"
What is Bandwidth Included, when Price is "50 EUR"?
CREATE TABLE table_name_45 (bandwidth_included VARCHAR, price VARCHAR)
SELECT opponent FROM table_name_65 WHERE field = "multi-sport field"
What was the opponent for the game at Multi-sport Field?
CREATE TABLE table_name_65 (opponent VARCHAR, field VARCHAR)
SELECT notes FROM table_name_86 WHERE time = "7:38.87"
what is the notes for the athlete with the time of 7:38.87?
CREATE TABLE table_name_86 (notes VARCHAR, time VARCHAR)
SELECT december FROM table_name_32 WHERE november = "alexus winston"
Who is in December when November has Alexus Winston?
CREATE TABLE table_name_32 (december VARCHAR, november VARCHAR)
SELECT result FROM table_name_96 WHERE venue = "a" AND opponent = "manchester united"
Which Result has a Venue of A, and an Opponent of manchester united?
CREATE TABLE table_name_96 (result VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT district FROM table_1341453_45 WHERE incumbent = "Nick Lampson"
What district is nick lampson from?
CREATE TABLE table_1341453_45 (district VARCHAR, incumbent VARCHAR)
SELECT MIN(year) FROM table_name_53 WHERE lok_sabha = "4th lok sabha"
What is the lowest Year, when Lok Sabha is "4th Lok Sabha"?
CREATE TABLE table_name_53 (year INTEGER, lok_sabha VARCHAR)
SELECT report FROM table_name_16 WHERE name = "cuban race"
Name the report with cuban race
CREATE TABLE table_name_16 (report VARCHAR, name VARCHAR)
SELECT south FROM table_name_10 WHERE west = "ev bad wörishofen"
Who was in the South when EV Bad Wörishofen was in the West?
CREATE TABLE table_name_10 (south VARCHAR, west VARCHAR)
SELECT COUNT(1 AS st_prize___) AS $__ FROM table_name_69 WHERE date = "aug 17"
How many 1st prizes have a Date of aug 17?
CREATE TABLE table_name_69 (date VARCHAR)
SELECT tie_no FROM table_name_97 WHERE away_team = "wrexham"
What was the tie no when Wrexham was the away team?
CREATE TABLE table_name_97 (tie_no VARCHAR, away_team VARCHAR)
SELECT method FROM table_name_56 WHERE event = "pride bushido 10"
Which method did pride bushido 10 have ?
CREATE TABLE table_name_56 (method VARCHAR, event VARCHAR)
SELECT COUNT(station_type) FROM table_23394920_1 WHERE callsign = "DXCC-TV"
When dxcc-tv is the call sign how many station types are there?
CREATE TABLE table_23394920_1 (station_type VARCHAR, callsign VARCHAR)
SELECT sacks FROM table_27487336_1 WHERE interceptions = "19"
What is every value for sacks if interceptions is 19?
CREATE TABLE table_27487336_1 (sacks VARCHAR, interceptions VARCHAR)
SELECT home_team AS score FROM table_name_3 WHERE venue = "western oval"
What was the score of the home team in the match at Western Oval?
CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR)
SELECT original_air_date FROM table_14889988_1 WHERE written_by = "Robert Carlock"
On what dates were episodes written by Robert Carlock aired?
CREATE TABLE table_14889988_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT winner FROM table_name_78 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND general_classification = "giuseppe saronni"
Which Winner has a Trofeo Fast Team of metauro mobili-pinarello, and a General classification of giuseppe saronni?
CREATE TABLE table_name_78 (winner VARCHAR, trofeo_fast_team VARCHAR, general_classification VARCHAR)
SELECT MIN(transfers_out) FROM table_17650725_1 WHERE total_transfers = 21
Name the least transfers out when transfers is 21
CREATE TABLE table_17650725_1 (transfers_out INTEGER, total_transfers VARCHAR)
SELECT score FROM table_name_70 WHERE surface = "hard" AND rank = 10
What was the score of the match played on hard with a person ranked 10?
CREATE TABLE table_name_70 (score VARCHAR, surface VARCHAR, rank VARCHAR)
SELECT competition FROM table_name_38 WHERE event = "team all-round" AND year < 1913
what is the competition for the event team all-round in the year before 1913?
CREATE TABLE table_name_38 (competition VARCHAR, event VARCHAR, year VARCHAR)
SELECT fa_cup_goals FROM table_name_75 WHERE euro_competitions = "1" AND league_goals = "11"
What is FA Cup Goals, when Euro Competitions is 1, and when League Goals is 11?
CREATE TABLE table_name_75 (fa_cup_goals VARCHAR, euro_competitions VARCHAR, league_goals VARCHAR)
SELECT MAX(year) FROM table_name_19 WHERE result = "½–½" AND black = "kramnik" AND opening = "e05 catalan opening" AND moves > 38
What year had a black of Kramnik, opening of E05 Catalan Opening, moves greater than 38, and a result of ½–½?
CREATE TABLE table_name_19 (year INTEGER, moves VARCHAR, opening VARCHAR, result VARCHAR, black VARCHAR)
SELECT nord FROM table_name_3 WHERE berlin = "tennis borussia berlin" AND year = 1952
What is the Nord in 1952, when tennis borussia berlin was Berlin?
CREATE TABLE table_name_3 (nord VARCHAR, berlin VARCHAR, year VARCHAR)
SELECT tournament FROM table_name_33 WHERE winner_and_score = "goran ivanišević 6–4, 6–2, 7–6(2)"
Which Tournament has a Winner and score of goran ivanišević 6–4, 6–2, 7–6(2)?
CREATE TABLE table_name_33 (tournament VARCHAR, winner_and_score VARCHAR)
SELECT status FROM table_23501776_16 WHERE points = 3185
Name the status for points 3185
CREATE TABLE table_23501776_16 (status VARCHAR, points VARCHAR)
SELECT place FROM table_name_5 WHERE rope < 9.8 AND name = "milena reljin"
What is Milena Reljin's place with a smaller than 9.8 rope?
CREATE TABLE table_name_5 (place VARCHAR, rope VARCHAR, name VARCHAR)
SELECT zone FROM table_name_30 WHERE opponents = "mădălina gojnea monica niculescu"
Which zone had mădălina gojnea monica niculescu as the opponent?
CREATE TABLE table_name_30 (zone VARCHAR, opponents VARCHAR)
SELECT COUNT(points) FROM table_24108789_6 WHERE reset_points = 800
Name the total number of points for 800 reset
CREATE TABLE table_24108789_6 (points VARCHAR, reset_points VARCHAR)
SELECT captain_s_ FROM table_name_75 WHERE competition = "2012 nrl season"
Who is the captain of the 2012 NRL season competition?
CREATE TABLE table_name_75 (captain_s_ VARCHAR, competition VARCHAR)
SELECT incumbent FROM table_1341453_11 WHERE district = "Florida 6"
Who's the incumbent in Florida 6?
CREATE TABLE table_1341453_11 (incumbent VARCHAR, district VARCHAR)
SELECT poles FROM table_name_2 WHERE team = "team jva"
What Poles do Team jva have?
CREATE TABLE table_name_2 (poles VARCHAR, team VARCHAR)
SELECT MAX(grid) FROM table_name_70 WHERE time = "+15.532" AND laps > 23
Can you tell me the highest Grid that has the Time of +15.532, and the Laps larger than 23?
CREATE TABLE table_name_70 (grid INTEGER, time VARCHAR, laps VARCHAR)
SELECT MAX(tourism_receipts__2011___us) AS $_per_capita_ FROM table_name_99 WHERE tourism_receipts__2003___as__percentage_of_gdp_ = "19.4" AND tourism_receipts__2011___us$_per_arrival_ < 655
What is the highest number of tourism receipts in 2011 US $ per capita with 19.4 % of GDP in 2003 tourism receipts and less than 655 US $ per arrival in 2011 tourism receipts?
CREATE TABLE table_name_99 (tourism_receipts__2011___us INTEGER, tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR, tourism_receipts__2011___us$_per_arrival_ VARCHAR)
SELECT english_translation FROM table_name_23 WHERE lyricist_s_ = "giorgos moukidis" AND original_album = "ena (new edition)"
What is English Translation, when Lyricist(s) is "Giorgos Moukidis", and when Original Album is "Ena (New Edition)"
CREATE TABLE table_name_23 (english_translation VARCHAR, lyricist_s_ VARCHAR, original_album VARCHAR)
SELECT T1.course_description, T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) > 2
What are the descriptions and names of the courses that have student enrollment bigger than 2?
CREATE TABLE Student_Course_Enrolment (course_id VARCHAR); CREATE TABLE Courses (course_description VARCHAR, course_name VARCHAR, course_id VARCHAR)
SELECT city FROM table_name_67 WHERE state = "oklahoma"
What city is located in Oklahoma?
CREATE TABLE table_name_67 (city VARCHAR, state VARCHAR)
SELECT player FROM table_name_13 WHERE score > 70 AND to_par = "+1"
Who has more than 70 score with +1 to par?
CREATE TABLE table_name_13 (player VARCHAR, score VARCHAR, to_par VARCHAR)
SELECT score FROM table_name_25 WHERE date = "21 april 2001"
what is the score for the game on 21 april 2001?
CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR)
SELECT scorers FROM table_name_63 WHERE opponent = "aberdeen"
Who was the scorer when the opponent was aberdeen?
CREATE TABLE table_name_63 (scorers VARCHAR, opponent VARCHAR)
SELECT COUNT(asian_team_classification) FROM table_21573750_2 WHERE asian_rider_classification = "Samai Amari"
When samai amari is the asian rider classification how many asian team classifications are there?
CREATE TABLE table_21573750_2 (asian_team_classification VARCHAR, asian_rider_classification VARCHAR)
SELECT engine FROM table_name_8 WHERE chassis = "maserati 250f" AND entrant = "luigi piotti" AND year < 1957
Name the engine with chassis of maserati 250f and entrant of luigi piotti with year less than 1957
CREATE TABLE table_name_8 (engine VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR)
SELECT wicket FROM table_name_59 WHERE date = "19-03-2007"
Name the wicket for 19-03-2007
CREATE TABLE table_name_59 (wicket VARCHAR, date VARCHAR)
SELECT position FROM table_name_8 WHERE pick = "11 (via calgary)"
Which Position has a Pick of 11 (via calgary)?
CREATE TABLE table_name_8 (position VARCHAR, pick VARCHAR)
SELECT country FROM table_name_46 WHERE place = "t4" AND score = 66 - 71 - 72 = 209
What country is in T4 place having a score of 66-71-72=209?
CREATE TABLE table_name_46 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT commonwealth_equivalent FROM table_1015521_2 WHERE us_air_force_equivalent = "Major General"
If you're a major general in the US air force then what ranking will you receive in the commonwealth's air force?
CREATE TABLE table_1015521_2 (commonwealth_equivalent VARCHAR, us_air_force_equivalent VARCHAR)
SELECT COUNT(1 AS st_tournament) FROM table_2849652_2 WHERE sport = "Bowling"
How many first tournaments are associated with bowling?
CREATE TABLE table_2849652_2 (sport VARCHAR)
SELECT AVG(decile) FROM table_name_84 WHERE name = "te puru school"
What is the average decile for te puru school?
CREATE TABLE table_name_84 (decile INTEGER, name VARCHAR)
SELECT AVG(cuts_made) FROM table_name_33 WHERE top_5 = 0 AND top_10 = 1 AND events < 12
What is the number of cuts made when the top-5 is 0, top-10 is 1 and events are fewer than 12?
CREATE TABLE table_name_33 (cuts_made INTEGER, events VARCHAR, top_5 VARCHAR, top_10 VARCHAR)
SELECT call_sign FROM table_name_81 WHERE frequency_mhz = 91.3
What call sign has a frequency of 91.3 MHz?
CREATE TABLE table_name_81 (call_sign VARCHAR, frequency_mhz VARCHAR)
SELECT score FROM table_name_1 WHERE game > 4
What is Score, when Game is greater than 4?
CREATE TABLE table_name_1 (score VARCHAR, game INTEGER)
SELECT MIN(pts_game) FROM table_name_98 WHERE games > 6
Can you tell me the lowest Pts/game that has the Games larger than 6?
CREATE TABLE table_name_98 (pts_game INTEGER, games INTEGER)
SELECT MAX(weight) FROM table_20860739_1 WHERE player = "Eben Britton"
What is the weight of Eben Britton?
CREATE TABLE table_20860739_1 (weight INTEGER, player VARCHAR)
SELECT title FROM table_name_14 WHERE name = "anthony d. marshall"
What was Anthony D. Marshall's title?
CREATE TABLE table_name_14 (title VARCHAR, name VARCHAR)
SELECT round_winner FROM table_19886463_1 WHERE circuit = "Wanneroo Park"
Who is the round winner of the wanneroo park circuit?
CREATE TABLE table_19886463_1 (round_winner VARCHAR, circuit VARCHAR)
SELECT MAX(founded) FROM table_2076533_1 WHERE enrollment__2005_ = 1285
Name the most founded for enrollment 2005 being 1285
CREATE TABLE table_2076533_1 (founded INTEGER, enrollment__2005_ VARCHAR)
SELECT account_id, customer_id, account_name FROM Accounts
Show ids, customer ids, names for all accounts.
CREATE TABLE Accounts (account_id VARCHAR, customer_id VARCHAR, account_name VARCHAR)
SELECT october_20, _2008 FROM table_18498743_1 WHERE mexico = "Romania"
what is the october 20, 2008 stat where mexico stat is romania
CREATE TABLE table_18498743_1 (october_20 VARCHAR, _2008 VARCHAR, mexico VARCHAR)
SELECT total FROM table_name_95 WHERE player = "robbie winters"
What is the Total with a Player named robbie winters?
CREATE TABLE table_name_95 (total VARCHAR, player VARCHAR)
SELECT away_team FROM table_name_7 WHERE home_team = "bolton wanderers"
Where Bolton Wanderers is the home team, who is the away team?
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
SELECT AVG(against) FROM table_name_86 WHERE losses > 2 AND wins > 3 AND draws > 0
What's the against when there were more than 2 losses, more than 3 wins, and draws more than 0?
CREATE TABLE table_name_86 (against INTEGER, draws VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT target_version FROM table_name_91 WHERE last_release = "2009-08-09, 1.2.9"
What is Target Version, when Last Release is 2009-08-09, 1.2.9?
CREATE TABLE table_name_91 (target_version VARCHAR, last_release VARCHAR)