answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT pick FROM table_1013129_3 WHERE college_junior_club_team = "Springfield Olympics (NEJHL)"
What's the pick number of the player from Springfield Olympics (Nejhl)?
CREATE TABLE table_1013129_3 (pick VARCHAR, college_junior_club_team VARCHAR)
SELECT young_rider_classification FROM table_14710984_2 WHERE mountains_classification = "Emanuele Sella" AND stage = 9
Who won the young rider classification in Stage 9 where the mountain classification was Emanuele Sella?
CREATE TABLE table_14710984_2 (young_rider_classification VARCHAR, mountains_classification VARCHAR, stage VARCHAR)
SELECT content FROM table_name_1 WHERE television_service = "ewtn"
What content is provided by the television service ewtn?
CREATE TABLE table_name_1 (content VARCHAR, television_service VARCHAR)
SELECT SUM(area_in_km²) FROM table_name_78 WHERE original_name = "kecamatan bogor tengah" AND number_of_settlements_and_villages < 11
There are less than 11 settlements in Kecamatan Bogor Tengah, what is the area in km²?
CREATE TABLE table_name_78 (area_in_km² INTEGER, original_name VARCHAR, number_of_settlements_and_villages VARCHAR)
SELECT attendance FROM table_name_11 WHERE loss = "josh hall (0–1)"
What was the attendance at game with a loss of Josh Hall (0–1)?
CREATE TABLE table_name_11 (attendance VARCHAR, loss VARCHAR)
SELECT AVG(fall_07) FROM table_name_83 WHERE fall_05 = 271 AND fall_09 < 347
What is the average value for Fall 07 when Fall 05 is 271 and Fall 09 is less than 347?
CREATE TABLE table_name_83 (fall_07 INTEGER, fall_05 VARCHAR, fall_09 VARCHAR)
SELECT republican FROM table_name_47 WHERE sample_size > 1087 AND democrat = "hillary clinton" AND margin_of_error = 2.6
Who was the republican when hillary clinton was the democrat and the sample size was more than 1087 with a margin of error of 2.6?
CREATE TABLE table_name_47 (republican VARCHAR, margin_of_error VARCHAR, sample_size VARCHAR, democrat VARCHAR)
SELECT school FROM table_14286908_1 WHERE year_of_last_win = "2007-08"
What the name of the school where the last win in 2007-08?
CREATE TABLE table_14286908_1 (school VARCHAR, year_of_last_win VARCHAR)
SELECT date FROM table_name_56 WHERE attendance = "45,943"
What date was the game when 45,943 attended?
CREATE TABLE table_name_56 (date VARCHAR, attendance VARCHAR)
SELECT area__km_2__ FROM table_261222_1 WHERE population__2010_ = 153085
What is the area (km2) for the place with a 2010 population of 153085?
CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, population__2010_ VARCHAR)
SELECT reg_season FROM table_1908049_1 WHERE year = "1995/96"
in the year 1995/96 what was the reg. season
CREATE TABLE table_1908049_1 (reg_season VARCHAR, year VARCHAR)
SELECT state FROM table_25244412_1 WHERE renewable_electricity__gw•h_ = 9667
Which states have renewable electricity equal to 9667 (gw×h)?
CREATE TABLE table_25244412_1 (state VARCHAR, renewable_electricity__gw•h_ VARCHAR)
SELECT time FROM table_name_24 WHERE heat > 3 AND lane < 5 AND rank = 5
What was the time of the 5th ranked swimmer who swam after heat 3 and was in a lane under 5?
CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT decision FROM table_name_85 WHERE visitor = "chicago"
What was the decision when Chicago was the visiting team?
CREATE TABLE table_name_85 (decision VARCHAR, visitor VARCHAR)
SELECT bushi FROM table_name_50 WHERE kaz_hayashi = "kai (14:01)"
Name the BUSHI that has kaz hayashi of kai (14:01)
CREATE TABLE table_name_50 (bushi VARCHAR, kaz_hayashi VARCHAR)
SELECT decision FROM table_name_53 WHERE record = "29–18–6"
Which Decision has a Record of 29–18–6?
CREATE TABLE table_name_53 (decision VARCHAR, record VARCHAR)
SELECT COUNT(passed) FROM table_256286_39 WHERE _percentage_yes = "52.11%"
How many ballot measures had a percentage yes of 52.11%?
CREATE TABLE table_256286_39 (passed VARCHAR, _percentage_yes VARCHAR)
SELECT home_team AS score FROM table_name_6 WHERE away_team = "south melbourne"
What did the home team score when South Melbourne was the away team?
CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR)
SELECT capacity FROM table_27599216_6 WHERE institution = "University of Alberta"
What is the capacity for the institution of university of alberta?
CREATE TABLE table_27599216_6 (capacity VARCHAR, institution VARCHAR)
SELECT COUNT(tournament_winner) FROM table_24348134_3 WHERE regular_season_winner = "Iona , Siena & Niagara"
List the number of tournament winners when iona , siena & niagara won in the regular season.
CREATE TABLE table_24348134_3 (tournament_winner VARCHAR, regular_season_winner VARCHAR)
SELECT volume_line FROM table_19534677_1 WHERE _number = 8
Name the volume line for number 8
CREATE TABLE table_19534677_1 (volume_line VARCHAR, _number VARCHAR)
SELECT Price FROM publication WHERE Publisher = "Person" OR Publisher = "Wiley"
Show the prices of publications whose publisher is either "Person" or "Wiley"
CREATE TABLE publication (Price VARCHAR, Publisher VARCHAR)
SELECT date FROM table_name_12 WHERE goldberg = "26%"
What is the date of the poll with Goldberg at 26%?
CREATE TABLE table_name_12 (date VARCHAR, goldberg VARCHAR)
SELECT year_joined FROM table_name_83 WHERE mascot = "vikings"
Which year did the school with the mascot of the Vikings join?
CREATE TABLE table_name_83 (year_joined VARCHAR, mascot VARCHAR)
SELECT win__number FROM table_name_67 WHERE season = "2004-05"
How many wins were there in 2004-05?
CREATE TABLE table_name_67 (win__number VARCHAR, season VARCHAR)
SELECT percentage FROM table_name_15 WHERE seats = 80
What is the percentage of votes for the party that has Seats of 80?
CREATE TABLE table_name_15 (percentage VARCHAR, seats VARCHAR)
SELECT city FROM table_name_6 WHERE date = "5th" AND name = "guelferbytanus b"
I want to know the city for guelferbytanus b and the 5th
CREATE TABLE table_name_6 (city VARCHAR, date VARCHAR, name VARCHAR)
SELECT power_output FROM table_name_23 WHERE build_date = "1951–1956"
Which power output had a Build date of 1951–1956?
CREATE TABLE table_name_23 (power_output VARCHAR, build_date VARCHAR)
SELECT attempts FROM table_name_42 WHERE team = "iowa" AND yards = "2,249"
What was the number of attempts for Vanderberg on Iowa when the recorded yards were 2,249?
CREATE TABLE table_name_42 (attempts VARCHAR, team VARCHAR, yards VARCHAR)
SELECT MAX(no) FROM table_26199130_1 WHERE us_viewers__million_ = "11.96"
What numbered episode had 11.96 million US viewers?
CREATE TABLE table_26199130_1 (no INTEGER, us_viewers__million_ VARCHAR)
SELECT captain FROM table_name_86 WHERE team = "leeds united"
What is the captain's name of team Leeds United?
CREATE TABLE table_name_86 (captain VARCHAR, team VARCHAR)
SELECT date FROM table_name_62 WHERE runner_s__up = "patty sheehan"
On what Date was Patty Sheehan Runner(s)-up?
CREATE TABLE table_name_62 (date VARCHAR, runner_s__up VARCHAR)
SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) = 2
Find the title of courses that have two prerequisites?
CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR)
SELECT away_team AS score FROM table_name_78 WHERE venue = "vfl park"
What was the away score at VFL Park?
CREATE TABLE table_name_78 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(enrollment__spring_2012_) FROM table_2076557_2 WHERE school = "Sioux Falls Seminary"
Name the number of spring enrollment for sioux falls seminary
CREATE TABLE table_2076557_2 (enrollment__spring_2012_ VARCHAR, school VARCHAR)
SELECT event FROM table_name_95 WHERE class = "time trial hc a"
What is the event when the class is time trial hc a?
CREATE TABLE table_name_95 (event VARCHAR, class VARCHAR)
SELECT competition FROM table_name_14 WHERE date = "may 31, 2008"
What was the name of the competition that took place on may 31, 2008?
CREATE TABLE table_name_14 (competition VARCHAR, date VARCHAR)
SELECT part_1 FROM table_name_88 WHERE part_4 = "february 10, 2008"
When is Part 1, when Part 4 is on February 10, 2008?
CREATE TABLE table_name_88 (part_1 VARCHAR, part_4 VARCHAR)
SELECT COUNT(rank) FROM table_name_87 WHERE losses < 992 AND college = "north carolina state" AND seasons > 101
What is the total number of rank with losses less than 992, North Carolina State College and a season greater than 101?
CREATE TABLE table_name_87 (rank VARCHAR, seasons VARCHAR, losses VARCHAR, college VARCHAR)
SELECT MAX(year) FROM table_name_28 WHERE points = 3
Which is the highest year that has 3 points?
CREATE TABLE table_name_28 (year INTEGER, points VARCHAR)
SELECT player FROM table_name_89 WHERE to_par = "+1" AND score = 71 - 67 - 73 = 211
What player has a To Par of +1 with a score of 71-67-73=211?
CREATE TABLE table_name_89 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT home_team FROM table_name_17 WHERE away_team = "frickley colliery"
what is the home team when the away team is frickley colliery?
CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR)
SELECT opponent FROM table_name_8 WHERE date = "december 2, 1962"
Who was the opponent on December 2, 1962?
CREATE TABLE table_name_8 (opponent VARCHAR, date VARCHAR)
SELECT date FROM table_name_75 WHERE record = "15-4"
What day did the record reach 15-4?
CREATE TABLE table_name_75 (date VARCHAR, record VARCHAR)
SELECT state FROM table_1762887_1 WHERE county = "Lake county"
Name the state for lake county
CREATE TABLE table_1762887_1 (state VARCHAR, county VARCHAR)
SELECT COUNT(nationality) FROM table_2886617_4 WHERE player = "Marc Savard"
How many countries had players named Marc Savard get picked?
CREATE TABLE table_2886617_4 (nationality VARCHAR, player VARCHAR)
SELECT installation_date FROM table_21821014_1 WHERE location = "El Paso, Texas"
What was the installation date in El Paso, Texas?
CREATE TABLE table_21821014_1 (installation_date VARCHAR, location VARCHAR)
SELECT loser FROM table_name_10 WHERE weight_division = "heavyweight" AND time = "2:24"
Who was the loser of the heavyweight division fight that lasted a time of 2:24?
CREATE TABLE table_name_10 (loser VARCHAR, weight_division VARCHAR, time VARCHAR)
SELECT d_47 FROM table_name_78 WHERE d_41 = "r 21"
I want the D 47 for D 41 being r 21
CREATE TABLE table_name_78 (d_47 VARCHAR, d_41 VARCHAR)
SELECT r_epp FROM table_name_90 WHERE j_thiessen = "tjoatj"
Which of the R. Epp, has J Thiessen of Tjoatj?
CREATE TABLE table_name_90 (r_epp VARCHAR, j_thiessen VARCHAR)
SELECT scorers FROM table_name_8 WHERE venue = "a" AND opponent = "st. johnstone"
Who was in a with opponent St. Johnstone?
CREATE TABLE table_name_8 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT segment_d FROM table_name_89 WHERE series_ep = "20-08"
What is Segment D of 20-08 series Ep.?
CREATE TABLE table_name_89 (segment_d VARCHAR, series_ep VARCHAR)
SELECT MAX(municipalities) FROM table_221375_1 WHERE province_of_1936 = "Alto Alentejo Province (partly Ribatejo)"
Name the most municipalities for alto alentejo province (partly ribatejo)
CREATE TABLE table_221375_1 (municipalities INTEGER, province_of_1936 VARCHAR)
SELECT episode FROM table_27987623_3 WHERE viewers__millions_ = "0.296"
Which episode had viewership of 0.296 million?
CREATE TABLE table_27987623_3 (episode VARCHAR, viewers__millions_ VARCHAR)
SELECT december FROM table_name_72 WHERE november = "marlene janssen"
Who is the December playmate with a November playmate Marlene Janssen?
CREATE TABLE table_name_72 (december VARCHAR, november VARCHAR)
SELECT color_commentator_s_ FROM table_name_99 WHERE play_by_play = "sean grande" AND flagship_station = "wrko"
Play-by-play of sean grande, and a Flagship Station of wrko involved what color commentator?
CREATE TABLE table_name_99 (color_commentator_s_ VARCHAR, play_by_play VARCHAR, flagship_station VARCHAR)
SELECT COUNT(civil_liberties_2011) FROM table_name_70 WHERE political_rights_2010 < 3 AND political_rights_2011 < 1
What is the total number of civil liberties 2011 values having 2010 political rights values under 3 and 2011 political rights values under 1?
CREATE TABLE table_name_70 (civil_liberties_2011 VARCHAR, political_rights_2010 VARCHAR, political_rights_2011 VARCHAR)
SELECT home_team AS score FROM table_name_90 WHERE away_team = "adelaide"
What is the home team score of the game with Adelaide as the away team?
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(points_margin) FROM table_27987767_2 WHERE winners = "Brive"
how many total number of points margin when brive is the winners
CREATE TABLE table_27987767_2 (points_margin VARCHAR, winners VARCHAR)
SELECT to_par FROM table_name_47 WHERE player = "phil mickelson"
Phil Mickelson has what To par?
CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR)
SELECT class FROM table_name_33 WHERE part_2 = "bond"
what is the class when part 2 is bond?
CREATE TABLE table_name_33 (class VARCHAR, part_2 VARCHAR)
SELECT original_air_date FROM table_26826304_1 WHERE production_code = "5AKY13"
What was the air date of the episode that has a production code of 5aky13?
CREATE TABLE table_26826304_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT COUNT(events) FROM table_name_23 WHERE top_5 < 2 AND top_25 < 3
What were the total number of Events, when the Top-5 was less than 2, and when the Top-25 was less than 3?
CREATE TABLE table_name_23 (events VARCHAR, top_5 VARCHAR, top_25 VARCHAR)
SELECT year FROM table_15315816_1 WHERE tournament_location = "Western Turnpike Golf Course"
When are all years that tournament location is Western Turnpike Golf Course?
CREATE TABLE table_15315816_1 (year VARCHAR, tournament_location VARCHAR)
SELECT MAX(silver) FROM table_name_88 WHERE rank > 7
What is the highest number of silvers for ranks over 7?
CREATE TABLE table_name_88 (silver INTEGER, rank INTEGER)
SELECT gp_gs FROM table_name_52 WHERE season = "2009"
What was the GP-GS for the 2009 season?
CREATE TABLE table_name_52 (gp_gs VARCHAR, season VARCHAR)
SELECT MAX(december) FROM table_name_9 WHERE record = "11-13-5"
What is the December game that led to an 11-13-5 record?
CREATE TABLE table_name_9 (december INTEGER, record VARCHAR)
SELECT hdtv FROM table_name_21 WHERE television_service = "mtv rocks"
What is HDTV, when Television Service is MTV Rocks?
CREATE TABLE table_name_21 (hdtv VARCHAR, television_service VARCHAR)
SELECT affiliation FROM table_name_63 WHERE nickname = "dukes"
Who is affiliated with the Dukes?
CREATE TABLE table_name_63 (affiliation VARCHAR, nickname VARCHAR)
SELECT country FROM table_name_32 WHERE content = "televendite"
What Country's content is Televendite?
CREATE TABLE table_name_32 (country VARCHAR, content VARCHAR)
SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.8
What is the total of the team with a T score less than 6.8?
CREATE TABLE table_name_88 (total INTEGER, t_score INTEGER)
SELECT viewers__in_millions_ FROM table_2102945_1 WHERE run_time = "24:31"
When 24:31 is the run time how many millions of viewers are there?
CREATE TABLE table_2102945_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT villains FROM table_10470082_4 WHERE _number = 7
Who is the villain in episode #7?
CREATE TABLE table_10470082_4 (villains VARCHAR, _number VARCHAR)
SELECT song_title FROM table_name_26 WHERE genre = "glam"
what song is a genre of glam
CREATE TABLE table_name_26 (song_title VARCHAR, genre VARCHAR)
SELECT home_team FROM table_name_24 WHERE tie_no < 7 AND away_team = "havant & waterlooville"
who is the home team when tie no is less than 7 and the away team is havant & waterlooville?
CREATE TABLE table_name_24 (home_team VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT original_title FROM table_name_24 WHERE language = "korean"
What is the original title for the Korean language film?
CREATE TABLE table_name_24 (original_title VARCHAR, language VARCHAR)
SELECT date FROM table_name_98 WHERE score_in_the_final = "3–6, 6–3, 6–4" AND opponents_in_the_final = "penny barg paula smith"
What is the date of the final that has a score of 3–6, 6–3, 6–4 and penny barg paula smith was the opponent?
CREATE TABLE table_name_98 (date VARCHAR, score_in_the_final VARCHAR, opponents_in_the_final VARCHAR)
SELECT location FROM table_name_77 WHERE delivery = "barge" AND name = "scaevola"
What Location has a Delivery of barge and the Name of scaevola?
CREATE TABLE table_name_77 (location VARCHAR, delivery VARCHAR, name VARCHAR)
SELECT athlete FROM table_17085947_32 WHERE bike__40km_ = "58:52"
Who was the athlete that covered biking within 58:52?
CREATE TABLE table_17085947_32 (athlete VARCHAR, bike__40km_ VARCHAR)
SELECT district___town FROM table_26013618_1 WHERE area__ha_ = "163,62"
What town has the reserve with an area of 163,62?
CREATE TABLE table_26013618_1 (district___town VARCHAR, area__ha_ VARCHAR)
SELECT attendance FROM table_name_96 WHERE week = 1
What was the attendance on week 1?
CREATE TABLE table_name_96 (attendance VARCHAR, week VARCHAR)
SELECT result FROM table_name_39 WHERE opponent = "blackburn rovers"
what is the result when the opponent is blackburn rovers?
CREATE TABLE table_name_39 (result VARCHAR, opponent VARCHAR)
SELECT MAX(total_evm_votes) FROM table_24051013_3
What is the highest total for evm votes
CREATE TABLE table_24051013_3 (total_evm_votes INTEGER)
SELECT billing_country, AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10
A list of the top 10 countries by average invoice size. List country name and average invoice size.
CREATE TABLE invoices (billing_country VARCHAR, total INTEGER)
SELECT points_classification FROM table_name_86 WHERE stage = "18b"
Name the points classification for stage of 18b
CREATE TABLE table_name_86 (points_classification VARCHAR, stage VARCHAR)
SELECT nationality FROM table_11303072_9 WHERE player = "Adam Gilchrist"
Where is Adam Gilchrist from?
CREATE TABLE table_11303072_9 (nationality VARCHAR, player VARCHAR)
SELECT SUM(december) FROM table_name_77 WHERE points = 48 AND game > 33
Which December has Points of 48, and a Game larger than 33?
CREATE TABLE table_name_77 (december INTEGER, points VARCHAR, game VARCHAR)
SELECT international_passengers FROM table_13836704_7 WHERE rank = 15
What is the total number of passengers of the airport ranked 15?
CREATE TABLE table_13836704_7 (international_passengers VARCHAR, rank VARCHAR)
SELECT location_attendance FROM table_name_33 WHERE score = "w 95-93"
What is the location/attendance for the w 95-93 score?
CREATE TABLE table_name_33 (location_attendance VARCHAR, score VARCHAR)
SELECT code FROM table_name_7 WHERE capacity = "1,461cc" AND name = "1.5 dci 110"
What is the code of 1.5 dci 110, which has a capacity of 1,461cc?
CREATE TABLE table_name_7 (code VARCHAR, capacity VARCHAR, name VARCHAR)
SELECT score FROM table_27715173_12 WHERE series = "2–3"
What was the score for series 2–3?
CREATE TABLE table_27715173_12 (score VARCHAR, series VARCHAR)
SELECT label FROM table_name_45 WHERE date = "15 december 1992"
which Label is in 15 december 1992?
CREATE TABLE table_name_45 (label VARCHAR, date VARCHAR)
SELECT MAX(stolen_ends) FROM table_29704430_1
What is the most stolen ends?
CREATE TABLE table_29704430_1 (stolen_ends INTEGER)
SELECT player FROM table_name_94 WHERE country = "united states" AND score = 75 - 70 - 68 = 211
Who is the player from the United States with a 75-70-68=211 score?
CREATE TABLE table_name_94 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT circuit FROM table_name_16 WHERE fastest_lap = "juan manuel fangio" AND race = "german grand prix"
What circuit did Juan Manuel Fangio have the fastest lap at the german grand prix?
CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, race VARCHAR)
SELECT COUNT(location_attendance) FROM table_17058116_5 WHERE game = 13
In how many locations did Game 13 take place?
CREATE TABLE table_17058116_5 (location_attendance VARCHAR, game VARCHAR)
SELECT upstream FROM table_17304621_14 WHERE price_tl = "89 TL"
What is the upstream speed that you get for 89 tl?
CREATE TABLE table_17304621_14 (upstream VARCHAR, price_tl VARCHAR)
SELECT pair FROM table_name_14 WHERE date = "october 14, 2008" AND dance = "samba"
Who danced the Samba on October 14, 2008?
CREATE TABLE table_name_14 (pair VARCHAR, date VARCHAR, dance VARCHAR)
SELECT result FROM table_name_81 WHERE year = 2010 AND tournament = "world amateur championship"
for the tournament of world amateur championship what was the result in 2010?
CREATE TABLE table_name_81 (result VARCHAR, year VARCHAR, tournament VARCHAR)
SELECT location FROM table_name_58 WHERE game > 27 AND record = "18-10"
Which Location has a Game greater than 27 and a Record of 18-10?
CREATE TABLE table_name_58 (location VARCHAR, game VARCHAR, record VARCHAR)