answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT residence FROM table_name_49 WHERE representative = "quincy murphy"
CREATE TABLE table_name_49 (residence VARCHAR, representative VARCHAR)
What residence has representative Quincy Murphy?
SELECT home_captain FROM table_name_81 WHERE venue = "adelaide oval"
CREATE TABLE table_name_81 (home_captain VARCHAR, venue VARCHAR)
Who is the home captain when the venue is adelaide oval?
SELECT score FROM table_name_57 WHERE date = "september 20"
CREATE TABLE table_name_57 (score VARCHAR, date VARCHAR)
What was the score in the September 20 game?
SELECT location FROM table_name_23 WHERE date = "september 22"
CREATE TABLE table_name_23 (location VARCHAR, date VARCHAR)
Where was the September 22 game played?
SELECT score FROM table_name_76 WHERE date = "september 26"
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
What was the score in the September 26 game?
SELECT opponent FROM table_name_97 WHERE time = "7:30pm"
CREATE TABLE table_name_97 (opponent VARCHAR, time VARCHAR)
Who was the opposing team in the game(s) that started at 7:30pm?
SELECT score FROM table_name_12 WHERE time = "7:00pm" AND location = "scotiabank place" AND opponent = "philadelphia flyers"
CREATE TABLE table_name_12 (score VARCHAR, opponent VARCHAR, time VARCHAR, location VARCHAR)
What was the score of the 7:00pm game at Scotiabank Place against the Philadelphia Flyers?
SELECT attendance FROM table_name_16 WHERE date = "october 26"
CREATE TABLE table_name_16 (attendance VARCHAR, date VARCHAR)
What is the attendance of the match on October 26?
SELECT opponent_number FROM table_name_78 WHERE result = "w27-16"
CREATE TABLE table_name_78 (opponent_number VARCHAR, result VARCHAR)
What is the opponent number of the match with a w27-16 result?
SELECT result FROM table_name_9 WHERE attendance = "73,855"
CREATE TABLE table_name_9 (result VARCHAR, attendance VARCHAR)
What is the result of the match with an attendance of 73,855?
SELECT rank__number FROM table_name_72 WHERE date = "october 19"
CREATE TABLE table_name_72 (rank__number VARCHAR, date VARCHAR)
What is the rank of the match on October 19?
SELECT scorers FROM table_name_63 WHERE opponent = "aberdeen"
CREATE TABLE table_name_63 (scorers VARCHAR, opponent VARCHAR)
Who was the scorer when the opponent was aberdeen?
SELECT date FROM table_name_48 WHERE scorers = "mccoist (3), johnston, butcher, steven"
CREATE TABLE table_name_48 (date VARCHAR, scorers VARCHAR)
When was the scorer mccoist (3), johnston, butcher, steven?
SELECT score FROM table_name_7 WHERE visitor = "pittsburgh" AND points > 18
CREATE TABLE table_name_7 (score VARCHAR, visitor VARCHAR, points VARCHAR)
What is Score, when Visitor is "Pittsburgh", and when Points is greater than 18?
SELECT SUM(points) FROM table_name_84 WHERE home = "pittsburgh" AND date = "december 21" AND attendance > 5 OFFSET 307
CREATE TABLE table_name_84 (points INTEGER, attendance VARCHAR, home VARCHAR, date VARCHAR)
What is the sum of Points, when Home is "Pittsburgh", when Date is "December 21", and when Attendance is greater than 5,307?
SELECT MIN(points) FROM table_name_81 WHERE home = "boston"
CREATE TABLE table_name_81 (points INTEGER, home VARCHAR)
What is the lowest Points, when Home is "Boston"?
SELECT team FROM table_name_48 WHERE high_points = "charlie villanueva (24)"
CREATE TABLE table_name_48 (team VARCHAR, high_points VARCHAR)
what is the team when the high points is by charlie villanueva (24)?
SELECT location_attendance FROM table_name_82 WHERE high_assists = "ramon sessions (8)" AND date = "march 30"
CREATE TABLE table_name_82 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)
what is the location attendance when the high assists is by ramon sessions (8) on march 30?
SELECT high_rebounds FROM table_name_55 WHERE score = "l 85–102 (ot)"
CREATE TABLE table_name_55 (high_rebounds VARCHAR, score VARCHAR)
Who had the high rebounds when the score was l 85–102 (ot)?
SELECT location_attendance FROM table_name_42 WHERE score = "w 86–77 (ot)"
CREATE TABLE table_name_42 (location_attendance VARCHAR, score VARCHAR)
what is the location attendance when the score is w 86–77 (ot)?
SELECT date FROM table_name_32 WHERE high_assists = "ramon sessions (8)" AND high_points = "richard jefferson (29)" AND score = "w 107–78 (ot)"
CREATE TABLE table_name_32 (date VARCHAR, score VARCHAR, high_assists VARCHAR, high_points VARCHAR)
what is the date when ramon sessions (8) had the high assists, richard jefferson (29) had the high points and the score was w 107–78 (ot)?
SELECT high_rebounds FROM table_name_9 WHERE team = "@ toronto"
CREATE TABLE table_name_9 (high_rebounds VARCHAR, team VARCHAR)
who had the high rebounds when the team was @ toronto?
SELECT MIN(pole) FROM table_name_49 WHERE flap > 5 AND race < 155
CREATE TABLE table_name_49 (pole INTEGER, flap VARCHAR, race VARCHAR)
What is the lowest pole with a Flap larger than 5, and a before race 155?
SELECT COUNT(score) FROM table_name_15 WHERE player = "fred couples"
CREATE TABLE table_name_15 (score VARCHAR, player VARCHAR)
What was Fred Couples' score?
SELECT to_par FROM table_name_43 WHERE country = "united states" AND score > 69 AND player = "payne stewart"
CREATE TABLE table_name_43 (to_par VARCHAR, player VARCHAR, country VARCHAR, score VARCHAR)
When Payne Stewart of the United States scored higher than 69, what was the To Par?
SELECT SUM(population__2008_) FROM table_name_55 WHERE korean = "함ν₯"
CREATE TABLE table_name_55 (population__2008_ INTEGER, korean VARCHAR)
What is the 2008 population in 함ν₯ (Ham Hyung)?
SELECT mountain_peak FROM table_name_74 WHERE location = "53.1370Β°n 119.2667Β°w"
CREATE TABLE table_name_74 (mountain_peak VARCHAR, location VARCHAR)
what is the mountain peak when the location is 53.1370Β°n 119.2667Β°w?
SELECT region FROM table_name_96 WHERE location = "49.7462Β°n 117.1419Β°w"
CREATE TABLE table_name_96 (region VARCHAR, location VARCHAR)
what is the region when the location is 49.7462Β°n 117.1419Β°w?
SELECT rank FROM table_name_63 WHERE mountain_peak = "isthmus peak"
CREATE TABLE table_name_63 (rank VARCHAR, mountain_peak VARCHAR)
what is the rank when the mountain peak is isthmus peak?
SELECT mountain_range FROM table_name_90 WHERE region = "british columbia" AND mountain_peak = "mount edziza"
CREATE TABLE table_name_90 (mountain_range VARCHAR, region VARCHAR, mountain_peak VARCHAR)
what is the mountain range when the region is british columbia and mountain pea is mount edziza?
SELECT born_died FROM table_name_39 WHERE name = "xhafer bej ypi"
CREATE TABLE table_name_39 (born_died VARCHAR, name VARCHAR)
What is the Born-Died dates of Xhafer Bej Ypi?
SELECT name FROM table_name_34 WHERE born_died = "1873–1933"
CREATE TABLE table_name_34 (name VARCHAR, born_died VARCHAR)
What is the Name of the Prime Minister with a Born-Died of 1873–1933?
SELECT term_start FROM table_name_45 WHERE political_party = "progressive party"
CREATE TABLE table_name_45 (term_start VARCHAR, political_party VARCHAR)
What is the Term Start date of the Progressive Party Prime Minister?
SELECT republican AS :_roy_brown FROM table_name_35 WHERE lead_margin = 26
CREATE TABLE table_name_35 (republican VARCHAR, lead_margin VARCHAR)
What is the percentage for Brown when the lead margin is 26?
SELECT democrat AS :_brian_schweitzer FROM table_name_12 WHERE lead_margin = 29
CREATE TABLE table_name_12 (democrat VARCHAR, lead_margin VARCHAR)
What is the percentage for Schweitzer when the lead margin is 29?
SELECT record FROM table_name_72 WHERE date = "november 22"
CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR)
What is Record, when Date is "November 22"?
SELECT COUNT(attendance) FROM table_name_75 WHERE week < 1
CREATE TABLE table_name_75 (attendance VARCHAR, week INTEGER)
What is the attendance before week 1?
SELECT date FROM table_name_10 WHERE winning_score = –7(67 - 72 - 69 - 69 = 277)
CREATE TABLE table_name_10 (date VARCHAR, winning_score VARCHAR)
What was the date of the match with a winning score of –7 (67-72-69-69=277)?
SELECT home_team FROM table_name_6 WHERE away_team = "millwall"
CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR)
Who was the home team in the match with an away team of Millwall?
SELECT score FROM table_name_42 WHERE home_team = "kidderminster harriers"
CREATE TABLE table_name_42 (score VARCHAR, home_team VARCHAR)
What is the score for the match that had a home team of Kidderminster Harriers?
SELECT date FROM table_name_93 WHERE tie_no = "replay" AND home_team = "huddersfield town"
CREATE TABLE table_name_93 (date VARCHAR, tie_no VARCHAR, home_team VARCHAR)
What is the date of the match with a home team of Huddersfield Town and was a replay tie?
SELECT home_team FROM table_name_26 WHERE tie_no = "11"
CREATE TABLE table_name_26 (home_team VARCHAR, tie_no VARCHAR)
Who was the home team for tie number 11?
SELECT rider FROM table_name_79 WHERE speed = "120.953 mph"
CREATE TABLE table_name_79 (rider VARCHAR, speed VARCHAR)
Who was the rider with 120.953 mph speed?
SELECT time FROM table_name_27 WHERE rider = "steve plater"
CREATE TABLE table_name_27 (time VARCHAR, rider VARCHAR)
What time did rider steve plater have?
SELECT rank FROM table_name_28 WHERE speed = "120.979 mph" AND rider = "gary johnson"
CREATE TABLE table_name_28 (rank VARCHAR, speed VARCHAR, rider VARCHAR)
What is the rank of rider gary johnson, who had a speed of 120.979 mph?
SELECT club FROM table_name_88 WHERE draws < 8 AND points = 37 AND goals_for < 71
CREATE TABLE table_name_88 (club VARCHAR, goals_for VARCHAR, draws VARCHAR, points VARCHAR)
What club has less than 8 draws, 37 points, and less than 71 goals?
SELECT COUNT(goals_for) FROM table_name_40 WHERE draws = 3 AND losses > 18 AND played < 38
CREATE TABLE table_name_40 (goals_for VARCHAR, played VARCHAR, draws VARCHAR, losses VARCHAR)
What is the total number of goals when there are 3 draws, more than 18 losses, and played is smaller than 38?
SELECT COUNT(goals_against) FROM table_name_19 WHERE played > 38
CREATE TABLE table_name_19 (goals_against VARCHAR, played INTEGER)
What is the number of goals against when the played is more than 38?
SELECT COUNT(draws) FROM table_name_53 WHERE played < 38
CREATE TABLE table_name_53 (draws VARCHAR, played INTEGER)
What is the number of draws when played is less than 38?
SELECT SUM(points) FROM table_name_6 WHERE played < 38
CREATE TABLE table_name_6 (points INTEGER, played INTEGER)
What is the points when played is less than 38?
SELECT transfer_window FROM table_name_27 WHERE name = "tofas"
CREATE TABLE table_name_27 (transfer_window VARCHAR, name VARCHAR)
Which Transfer window has a Name of tofas?
SELECT type FROM table_name_63 WHERE transfer_fee = "free" AND name = "kapetanos"
CREATE TABLE table_name_63 (type VARCHAR, transfer_fee VARCHAR, name VARCHAR)
Which Type has a Transfer fee of free, and a Name of kapetanos?
SELECT type FROM table_name_14 WHERE name = "edson ratinho"
CREATE TABLE table_name_14 (type VARCHAR, name VARCHAR)
Which Type has a Name of edson ratinho?
SELECT name FROM table_name_97 WHERE type = "loan" AND moving_to = "apollon kalamaria"
CREATE TABLE table_name_97 (name VARCHAR, type VARCHAR, moving_to VARCHAR)
Which Name has a Type of loan, and a Moving to of apollon kalamaria?
SELECT location FROM table_name_1 WHERE circuit = "august 16"
CREATE TABLE table_name_1 (location VARCHAR, circuit VARCHAR)
What is Location, when Circuit is August 16?
SELECT location FROM table_name_77 WHERE fastest_lap = "ben spies" AND pole_position = "ben spies" AND winner = "ben spies" AND date = "tooele, utah"
CREATE TABLE table_name_77 (location VARCHAR, date VARCHAR, winner VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah?
SELECT fastest_lap FROM table_name_18 WHERE date = "leeds, alabama" AND circuit = "april 19"
CREATE TABLE table_name_18 (fastest_lap VARCHAR, date VARCHAR, circuit VARCHAR)
What is Fastest Lap, when Date is Leeds, Alabama, and when Circuit is April 19?
SELECT winner FROM table_name_33 WHERE circuit = "june 8"
CREATE TABLE table_name_33 (winner VARCHAR, circuit VARCHAR)
What is Winner, when Circuit is June 8?
SELECT pole_position FROM table_name_84 WHERE fastest_lap = "ben spies" AND location = "barber motorsports park"
CREATE TABLE table_name_84 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR)
What is Pole Position, when Fastest Lap is Ben Spies, and when Location is Barber Motorsports Park?
SELECT winner FROM table_name_41 WHERE pole_position = "ben spies" AND date = "elkhart lake, wisconsin"
CREATE TABLE table_name_41 (winner VARCHAR, pole_position VARCHAR, date VARCHAR)
What is Winner, when Pole Position is Ben Spies, and when Date is Elkhart Lake, Wisconsin?
SELECT surface FROM table_name_16 WHERE score = "4–6, 6–4, 3–6"
CREATE TABLE table_name_16 (surface VARCHAR, score VARCHAR)
What is the Surface of the court in the match with a Score of 4–6, 6–4, 3–6?
SELECT team FROM table_name_47 WHERE year > 2010
CREATE TABLE table_name_47 (team VARCHAR, year INTEGER)
Which Team has a Year larger than 2010?
SELECT AVG(laps) FROM table_name_80 WHERE year = 2007
CREATE TABLE table_name_80 (laps INTEGER, year VARCHAR)
Which Laps has a Year of 2007?
SELECT tie_no FROM table_name_13 WHERE home_team = "swindon town"
CREATE TABLE table_name_13 (tie_no VARCHAR, home_team VARCHAR)
What was the tie number with the home team of Swindon Town?
SELECT tie_no FROM table_name_63 WHERE away_team = "sheffield wednesday"
CREATE TABLE table_name_63 (tie_no VARCHAR, away_team VARCHAR)
What was the tie number with the away team of Sheffield Wednesday?
SELECT score FROM table_name_76 WHERE tie_no = "23"
CREATE TABLE table_name_76 (score VARCHAR, tie_no VARCHAR)
What was the score for the match with tie number 23?
SELECT home_team FROM table_name_2 WHERE away_team = "arsenal"
CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR)
Who was the home team for the match against Arsenal?
SELECT place FROM table_name_40 WHERE player = "payne stewart"
CREATE TABLE table_name_40 (place VARCHAR, player VARCHAR)
Which place is payne stewart, the player in?
SELECT player FROM table_name_55 WHERE to_par = "+7" AND score = 69 - 69 - 75 - 74 = 287
CREATE TABLE table_name_55 (player VARCHAR, to_par VARCHAR, score VARCHAR)
What player has +7 as the to par, and 69-69-75-74=287 as the score?
SELECT tournament FROM table_name_40 WHERE runner_s__up = "ryan palmer"
CREATE TABLE table_name_40 (tournament VARCHAR, runner_s__up VARCHAR)
Which tournaments was Ryan Palmer in as a runner-up?
SELECT margin_of_victory FROM table_name_70 WHERE tournament = "the players championship"
CREATE TABLE table_name_70 (margin_of_victory VARCHAR, tournament VARCHAR)
What was the margin of victory for the Players Championship tournament?
SELECT tournament FROM table_name_38 WHERE runner_s__up = "kirk triplett"
CREATE TABLE table_name_38 (tournament VARCHAR, runner_s__up VARCHAR)
What tournament was Kirk Triplett a runner-up in?
SELECT winning_score FROM table_name_40 WHERE tournament = "b.c. open 1"
CREATE TABLE table_name_40 (winning_score VARCHAR, tournament VARCHAR)
What is the winning score for the B.C. Open 1 tournament?
SELECT country FROM table_name_46 WHERE player = "lee janzen"
CREATE TABLE table_name_46 (country VARCHAR, player VARCHAR)
What country is Lee Janzen from?
SELECT to_par FROM table_name_35 WHERE place = "t6" AND player = "tom watson"
CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR)
When Tom Watson placed t6, what was the 2 par?
SELECT player FROM table_name_50 WHERE score = 70 - 69 - 70 = 209
CREATE TABLE table_name_50 (player VARCHAR, score VARCHAR)
Who had a score of 70-69-70=209?
SELECT opponent FROM table_name_9 WHERE tournament = "tarragona"
CREATE TABLE table_name_9 (opponent VARCHAR, tournament VARCHAR)
What was the Opponent in the Tarragona Tournament?
SELECT tournament FROM table_name_14 WHERE score = "6–2, 4–6, 6–4"
CREATE TABLE table_name_14 (tournament VARCHAR, score VARCHAR)
What Tournament's Score was 6–2, 4–6, 6–4?
SELECT date FROM table_name_64 WHERE score = "6-2, 6-4"
CREATE TABLE table_name_64 (date VARCHAR, score VARCHAR)
On what Date was the match with a Score of 6-2, 6-4?
SELECT COUNT(year) FROM table_name_9 WHERE category = "best actress in a revival"
CREATE TABLE table_name_9 (year VARCHAR, category VARCHAR)
How many years had the best actress in a Revival category?
SELECT category FROM table_name_99 WHERE year < 1992 AND nominated_work = "yerma"
CREATE TABLE table_name_99 (category VARCHAR, year VARCHAR, nominated_work VARCHAR)
What categories had a Nominated work of yerma before 1992?
SELECT COUNT(shot_diameter__cm_) FROM table_name_37 WHERE shot_volume__cm_3__ < 172.76
CREATE TABLE table_name_37 (shot_diameter__cm_ VARCHAR, shot_volume__cm_3__ INTEGER)
How many times is the shot volume (cm3) less than 172.76?
SELECT AVG(shot_volume__cm_3__) FROM table_name_73 WHERE shot_diameter__cm_ < 6.04
CREATE TABLE table_name_73 (shot_volume__cm_3__ INTEGER, shot_diameter__cm_ INTEGER)
what is the average shot volume (cm 3) when the shot diameter (cm) is less than 6.04?
SELECT role FROM table_name_56 WHERE festival_organization = "sydney film festival"
CREATE TABLE table_name_56 (role VARCHAR, festival_organization VARCHAR)
What role was nominated at the Sydney Film Festival?
SELECT award_category FROM table_name_92 WHERE nominated_won = "won" AND year = 2007
CREATE TABLE table_name_92 (award_category VARCHAR, nominated_won VARCHAR, year VARCHAR)
In what category was an award won in 2007?
SELECT MIN(year) FROM table_name_90 WHERE festival_organization = "satellite award"
CREATE TABLE table_name_90 (year INTEGER, festival_organization VARCHAR)
What is the first year that there was a Satellite Award?
SELECT role FROM table_name_4 WHERE year = 2008 AND festival_organization = "sydney film festival"
CREATE TABLE table_name_4 (role VARCHAR, year VARCHAR, festival_organization VARCHAR)
What role was at the Sydney Film Festival in 2008?
SELECT nominated_won FROM table_name_57 WHERE award_category = "jury award"
CREATE TABLE table_name_57 (nominated_won VARCHAR, award_category VARCHAR)
What was nominated for the Jury Award?
SELECT released FROM table_name_68 WHERE series_sorted = "6y/ai"
CREATE TABLE table_name_68 (released VARCHAR, series_sorted VARCHAR)
what is the released when the series is sorted 6y/ai?
SELECT featuring FROM table_name_30 WHERE doctor = "6th" AND series_sorted = "6y/ak"
CREATE TABLE table_name_30 (featuring VARCHAR, doctor VARCHAR, series_sorted VARCHAR)
who is the featuring when the doctor is the 6th and the series sorted is 6y/ak?
SELECT series_sorted FROM table_name_73 WHERE released = "may 2012"
CREATE TABLE table_name_73 (series_sorted VARCHAR, released VARCHAR)
what is the series sorted when the released is may 2012?
SELECT featuring FROM table_name_38 WHERE series_sorted = "6eb/b"
CREATE TABLE table_name_38 (featuring VARCHAR, series_sorted VARCHAR)
who is the featuring when the series sorted is 6eb/b?
SELECT country FROM table_name_60 WHERE year_s__won = "1977"
CREATE TABLE table_name_60 (country VARCHAR, year_s__won VARCHAR)
Which Country has a Year(s) won of 1977?
SELECT MIN(to_par) FROM table_name_90 WHERE year_s__won = "1962, 1967, 1972, 1980" AND total > 149
CREATE TABLE table_name_90 (to_par INTEGER, year_s__won VARCHAR, total VARCHAR)
Which To par is the lowest one that has a Year(s) won of 1962, 1967, 1972, 1980, and a Total larger than 149?
SELECT country FROM table_name_74 WHERE total = 148
CREATE TABLE table_name_74 (country VARCHAR, total VARCHAR)
Which Country has a Total of 148?
SELECT year_s__won FROM table_name_57 WHERE total = 147
CREATE TABLE table_name_57 (year_s__won VARCHAR, total VARCHAR)
Which Year(s) won has a Total of 147?
SELECT MAX(to_par) FROM table_name_89 WHERE total < 148
CREATE TABLE table_name_89 (to_par INTEGER, total INTEGER)
Which To par is the highest one that has a Total smaller than 148?
SELECT candidate FROM table_name_20 WHERE election = "2008 (2)"
CREATE TABLE table_name_20 (candidate VARCHAR, election VARCHAR)
Who is the candidate in the 2008 (2) election?
SELECT share_of_votes FROM table_name_99 WHERE election = "2008 (1)"
CREATE TABLE table_name_99 (share_of_votes VARCHAR, election VARCHAR)
What is the share of votes in the 2008 (1) election?
SELECT share_of_votes FROM table_name_20 WHERE election = "2000 (2nd)"
CREATE TABLE table_name_20 (share_of_votes VARCHAR, election VARCHAR)
What is the share of votes in the 2000 (2nd) election?