answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT COUNT(lost) FROM table_17625749_1 WHERE tries_for = "109"
CREATE TABLE table_17625749_1 (lost VARCHAR, tries_for VARCHAR)
Name the number of lost where tries for is 109
SELECT won FROM table_17625749_1 WHERE tries_against = "72"
CREATE TABLE table_17625749_1 (won VARCHAR, tries_against VARCHAR)
Name the won when tries against is 72
SELECT points_against FROM table_17625749_1 WHERE drawn = "1" AND points = "51"
CREATE TABLE table_17625749_1 (points_against VARCHAR, drawn VARCHAR, points VARCHAR)
Name the points aginst when drawn is 1 and points is 51
SELECT original_air_date FROM table_17625876_1 WHERE no_in_season = 1
CREATE TABLE table_17625876_1 (original_air_date VARCHAR, no_in_season VARCHAR)
Name the original air date for number in season being 1
SELECT won FROM table_17625749_3 WHERE lost = "5"
CREATE TABLE table_17625749_3 (won VARCHAR, lost VARCHAR)
How many were won when 5 were lost?
SELECT drawn FROM table_17625749_3 WHERE lost = "13"
CREATE TABLE table_17625749_3 (drawn VARCHAR, lost VARCHAR)
How many were drawn when 13 were lost?
SELECT points_for FROM table_17625749_3 WHERE tries_against = "63"
CREATE TABLE table_17625749_3 (points_for VARCHAR, tries_against VARCHAR)
How many points are there for 63 tries against?
SELECT try_bonus FROM table_17625749_3 WHERE tries_against = "17"
CREATE TABLE table_17625749_3 (try_bonus VARCHAR, tries_against VARCHAR)
What is the try bonus when the tries against are 17?
SELECT tries_for FROM table_17625749_3 WHERE won = "11"
CREATE TABLE table_17625749_3 (tries_for VARCHAR, won VARCHAR)
How many tries for are there when 11 were won?
SELECT COUNT(points) FROM table_17625749_3 WHERE losing_bonus = "2" AND points_for = "642"
CREATE TABLE table_17625749_3 (points VARCHAR, losing_bonus VARCHAR, points_for VARCHAR)
How many points categories are there when the losing bonus is 2 and points for are 642?
SELECT COUNT(written_by) FROM table_17641206_2 WHERE viewership = "6.34 million"
CREATE TABLE table_17641206_2 (written_by VARCHAR, viewership VARCHAR)
How many people wrote the episode that had 6.34 million viewers?
SELECT original_title FROM table_17641206_4 WHERE viewership = "5.04 million"
CREATE TABLE table_17641206_4 (original_title VARCHAR, viewership VARCHAR)
What was the title of the episode with 5.04 million viewers?
SELECT original_airdate FROM table_17641206_4 WHERE viewership = "4.77 million"
CREATE TABLE table_17641206_4 (original_airdate VARCHAR, viewership VARCHAR)
What was the first airdate with a viewership of 4.77 million?
SELECT COUNT(duration) FROM table_17641206_4 WHERE written_by = "John Sullivan"
CREATE TABLE table_17641206_4 (duration VARCHAR, written_by VARCHAR)
How many episodes of 30 minutes were written by John Sullivan?
SELECT directed_by FROM table_17641206_4 WHERE written_by = "John Sullivan"
CREATE TABLE table_17641206_4 (directed_by VARCHAR, written_by VARCHAR)
Who was the director when the writer was John Sullivan?
SELECT directed_by FROM table_17641206_8 WHERE written_by = "John Sullivan" AND original_airdate = "15January2009"
CREATE TABLE table_17641206_8 (directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR)
What are the movies that are written and dircted by john sullivan with the airdate of 15january2009.
SELECT COUNT(episode) FROM table_17641206_8 WHERE original_airdate = "22January2009"
CREATE TABLE table_17641206_8 (episode VARCHAR, original_airdate VARCHAR)
How many episodes aired on 22january2009
SELECT MIN(transfers_out) FROM table_17650725_1 WHERE total_transfers = 21
CREATE TABLE table_17650725_1 (transfers_out INTEGER, total_transfers VARCHAR)
Name the least transfers out when transfers is 21
SELECT MIN(total_transfers) FROM table_17650725_1 WHERE country = "Romania"
CREATE TABLE table_17650725_1 (total_transfers INTEGER, country VARCHAR)
Name the least total transfers for romania
SELECT MIN(internal_transfers) FROM table_17650725_1
CREATE TABLE table_17650725_1 (internal_transfers INTEGER)
Name the least internal transfers
SELECT COUNT(status) FROM table_176529_2 WHERE official_name = "Moncton"
CREATE TABLE table_176529_2 (status VARCHAR, official_name VARCHAR)
How many status are there for Moncton?
SELECT census_ranking FROM table_176529_2 WHERE population = 959
CREATE TABLE table_176529_2 (census_ranking VARCHAR, population VARCHAR)
What is the census ranking of the location with population of 959?
SELECT official_name FROM table_176529_2 WHERE area_km_2 = "582.20"
CREATE TABLE table_176529_2 (official_name VARCHAR, area_km_2 VARCHAR)
What is the name of the place with 582.20 square km area?
SELECT official_name FROM table_176529_2 WHERE area_km_2 = "578.28"
CREATE TABLE table_176529_2 (official_name VARCHAR, area_km_2 VARCHAR)
What is the name of the place where area is 578.28 square km?
SELECT team FROM table_17693171_1 WHERE points = "20"
CREATE TABLE table_17693171_1 (team VARCHAR, points VARCHAR)
If the points is 20, what was the team name?
SELECT time_retired FROM table_17693171_1 WHERE driver = "Marco Andretti"
CREATE TABLE table_17693171_1 (time_retired VARCHAR, driver VARCHAR)
What is the time/retired if the driver is Marco Andretti?
SELECT MAX(laps) AS Led FROM table_17693171_1 WHERE laps = 191
CREATE TABLE table_17693171_1 (laps INTEGER)
If the laps is 191, what is the maximum laps led?
SELECT time_retired FROM table_17693171_1 WHERE driver = "Ed Carpenter"
CREATE TABLE table_17693171_1 (time_retired VARCHAR, driver VARCHAR)
What is the time/retired if the driver is Ed Carpenter?
SELECT MAX(laps) FROM table_17693171_1 WHERE time_retired = "+1 lap"
CREATE TABLE table_17693171_1 (laps INTEGER, time_retired VARCHAR)
If the time/retired is +1 lap, what is the amount of maximum laps?
SELECT team FROM table_17693171_1 WHERE driver = "Milka Duno"
CREATE TABLE table_17693171_1 (team VARCHAR, driver VARCHAR)
If the driver is Milka Duno, what is the name of the team?
SELECT COUNT(stage) FROM table_17672470_19 WHERE winner = "Robbie McEwen"
CREATE TABLE table_17672470_19 (stage VARCHAR, winner VARCHAR)
How many stages were won by Robbie McEwen?
SELECT COUNT(car__number) FROM table_1769428_2 WHERE winning_driver = "Rusty Wallace"
CREATE TABLE table_1769428_2 (car__number VARCHAR, winning_driver VARCHAR)
How many car numbers were listed for Rusty Wallace?
SELECT MAX(season) FROM table_1769428_2 WHERE winning_driver = "Rusty Wallace"
CREATE TABLE table_1769428_2 (season INTEGER, winning_driver VARCHAR)
In what season did Rusty Wallace win?
SELECT team FROM table_1769428_2 WHERE date = "June 27"
CREATE TABLE table_1769428_2 (team VARCHAR, date VARCHAR)
What was the represented team on June 27?
SELECT winning_driver FROM table_1769428_2 WHERE team = "Hendrick Motorsports" AND make = "Chevrolet Impala SS"
CREATE TABLE table_1769428_2 (winning_driver VARCHAR, team VARCHAR, make VARCHAR)
Who was the winning driver for Hendrick Motorsports in a Chevrolet Impala SS?
SELECT lost FROM table_17718005_2 WHERE drawn = 10 AND goals_for = 45
CREATE TABLE table_17718005_2 (lost VARCHAR, drawn VARCHAR, goals_for VARCHAR)
When 45 is the goals for and 10 is the drawn what is the lost?
SELECT goals_for FROM table_17718005_2 WHERE goal_difference = "+10"
CREATE TABLE table_17718005_2 (goals_for VARCHAR, goal_difference VARCHAR)
When +10 is the goal difference what is the goals for?
SELECT points_1 FROM table_17718005_2 WHERE team = "Ellesmere Port & Neston"
CREATE TABLE table_17718005_2 (points_1 VARCHAR, team VARCHAR)
When ellesmere port & neston is the team what are the points 1?
SELECT COUNT(driver) FROM table_1771753_3 WHERE season = "2005"
CREATE TABLE table_1771753_3 (driver VARCHAR, season VARCHAR)
When 2005 is the season how many drivers are there?
SELECT average_speed__mph_ FROM table_1771753_3 WHERE driver = "Tony Kanaan"
CREATE TABLE table_1771753_3 (average_speed__mph_ VARCHAR, driver VARCHAR)
When tony kanaan is the driver what is the average speed miles per hour?
SELECT chassis FROM table_1771753_3 WHERE average_speed__mph_ = "169.182"
CREATE TABLE table_1771753_3 (chassis VARCHAR, average_speed__mph_ VARCHAR)
When 169.182 is the average speed miles per hour what is the chassis?
SELECT miles__km_ FROM table_1771753_3 WHERE race_time = "1:34:01"
CREATE TABLE table_1771753_3 (miles__km_ VARCHAR, race_time VARCHAR)
When 1:34:01 is the race time what is the miles in kilometers?
SELECT race_time FROM table_1771753_3 WHERE team = "Chip Ganassi Racing" AND laps = "228"
CREATE TABLE table_1771753_3 (race_time VARCHAR, team VARCHAR, laps VARCHAR)
When 228 is the lap and chip ganassi racing is the team what is the race time?
SELECT MIN(tie_no) FROM table_17736890_5 WHERE home_team = "Chelsea"
CREATE TABLE table_17736890_5 (tie_no INTEGER, home_team VARCHAR)
What tie number featured Chelsea as the home team?
SELECT MAX(tie_no) FROM table_17736890_5 WHERE away_team = "Leeds United"
CREATE TABLE table_17736890_5 (tie_no INTEGER, away_team VARCHAR)
In what tie were Leeds United the away team?
SELECT home_team FROM table_17736890_5 WHERE away_team = "Burnley"
CREATE TABLE table_17736890_5 (home_team VARCHAR, away_team VARCHAR)
Who was the home team when Burnley were the away team?
SELECT MIN(year) FROM table_177273_2
CREATE TABLE table_177273_2 (year INTEGER)
what is the lowest year represented?
SELECT score FROM table_177273_2 WHERE partner = "Françoise Dürr"
CREATE TABLE table_177273_2 (score VARCHAR, partner VARCHAR)
What was the score when Françoise Dürr was partner?
SELECT outcome FROM table_177273_2 WHERE year = 1975
CREATE TABLE table_177273_2 (outcome VARCHAR, year VARCHAR)
What was the outcome in 1975?
SELECT surface FROM table_177273_2 WHERE score = "6–4, 6–4"
CREATE TABLE table_177273_2 (surface VARCHAR, score VARCHAR)
On what surface was the game played with a score of 6–4, 6–4?
SELECT years_of_appearance FROM table_17751942_4 WHERE team = "Prince Albert Raiders"
CREATE TABLE table_17751942_4 (years_of_appearance VARCHAR, team VARCHAR)
What is the year of appearance for the Prince Albert Raiders?
SELECT wins FROM table_17751942_4 WHERE team = "Erie Otters"
CREATE TABLE table_17751942_4 (wins VARCHAR, team VARCHAR)
How many wins do the Erie Otters have?
SELECT final_win__percentage FROM table_17751942_4 WHERE team = "Sault Ste. Marie Greyhounds"
CREATE TABLE table_17751942_4 (final_win__percentage VARCHAR, team VARCHAR)
What is the final win percentage of the Sault Ste. Marie Greyhounds?
SELECT MAX(Semi) - final_losses FROM table_17751942_4 WHERE team = "Kitchener Rangers"
CREATE TABLE table_17751942_4 (final_losses VARCHAR, Semi INTEGER, team VARCHAR)
What is the total number of semi-final losses for the Kitchener Rangers?
SELECT MAX(wins) FROM table_17751942_4 WHERE team = "Red Deer Rebels"
CREATE TABLE table_17751942_4 (wins INTEGER, team VARCHAR)
How many wins do the Red Deer Rebels have?
SELECT record FROM table_17765888_1 WHERE date = "November 26, 1961"
CREATE TABLE table_17765888_1 (record VARCHAR, date VARCHAR)
What is the record for November 26, 1961?
SELECT game_site FROM table_17765888_1 WHERE opponent = "Dallas Texans"
CREATE TABLE table_17765888_1 (game_site VARCHAR, opponent VARCHAR)
What was the game site against the Dallas Texans?
SELECT COUNT(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "Tom Fleming"
CREATE TABLE table_17766232_7 (year_s_ VARCHAR, final_television_commentator VARCHAR)
In how many years was Tom Fleming the final television commentator?
SELECT MAX(year_s_) FROM table_17766232_7 WHERE spokesperson = "Colin Berry"
CREATE TABLE table_17766232_7 (year_s_ INTEGER, spokesperson VARCHAR)
What was the latest year that Colin Berry was the spokesperson?
SELECT semi_final_television_commentator FROM table_17766232_7 WHERE spokesperson = "Colin Berry" AND final_television_commentator = "Pete Murray"
CREATE TABLE table_17766232_7 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, final_television_commentator VARCHAR)
Who was the semi-final television commentator when the spokesperson was Colin Berry and the final television commentator was Pete Murray?
SELECT radio_commentator FROM table_17766232_7 WHERE final_television_commentator = "John Dunn"
CREATE TABLE table_17766232_7 (radio_commentator VARCHAR, final_television_commentator VARCHAR)
Who was the radio commentator when the final television commentator was John Dunn?
SELECT MAX(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "David Jacobs"
CREATE TABLE table_17766232_7 (year_s_ INTEGER, final_television_commentator VARCHAR)
What is the latest year that the final television commentator was David Jacobs?
SELECT record FROM table_17765264_1 WHERE attendance = 14489
CREATE TABLE table_17765264_1 (record VARCHAR, attendance VARCHAR)
What was their record when the attendance at the game was 14489?
SELECT date FROM table_17765264_1 WHERE game_site = "Cotton Bowl"
CREATE TABLE table_17765264_1 (date VARCHAR, game_site VARCHAR)
When did they play at the Cotton Bowl?
SELECT per­cent­age FROM table_177766_1 WHERE abbre­viation = "Nor"
CREATE TABLE table_177766_1 (per­cent­age VARCHAR, abbre­viation VARCHAR)
What is the percentage of this constellation abbreviated as 'nor'?
SELECT COUNT(right_ascension__hm_) FROM table_177766_1 WHERE abbre­viation = "Oph"
CREATE TABLE table_177766_1 (right_ascension__hm_ VARCHAR, abbre­viation VARCHAR)
This constellation, abbreviated as 'oph' has how many right ascension (in hm)?
SELECT constellation FROM table_177766_1 WHERE area__sqdeg_ = "245.375"
CREATE TABLE table_177766_1 (constellation VARCHAR, area__sqdeg_ VARCHAR)
What is the name of this constellation with an area of 245.375 sq. deg.?
SELECT COUNT(per) AS ­cent­age FROM table_177766_1 WHERE rank = 51
CREATE TABLE table_177766_1 (per VARCHAR, rank VARCHAR)
This constellation with a ranking of 51 has how many percentages on record?
SELECT per­cent­age FROM table_177766_1 WHERE area__sqdeg_ = "248.885"
CREATE TABLE table_177766_1 (per­cent­age VARCHAR, area__sqdeg_ VARCHAR)
What is the percentage of this constellation with an area of 248.885 sq. deg.?
SELECT broadcast_date FROM table_1776943_1 WHERE viewers__in_millions_ = "6.4" AND archive = "16mm t/r"
CREATE TABLE table_1776943_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR, archive VARCHAR)
Name the broadcast date for 6.4 million viewers for the archive of 16mm t/r
SELECT archive FROM table_1776943_1 WHERE run_time = "24:04"
CREATE TABLE table_1776943_1 (archive VARCHAR, run_time VARCHAR)
Name the archive where run time 24:04
SELECT game_site FROM table_17781394_1 WHERE date = "November 1, 1964"
CREATE TABLE table_17781394_1 (game_site VARCHAR, date VARCHAR)
On November 1, 1964, where was the game site?
SELECT attendance FROM table_17778417_1 WHERE week = 8
CREATE TABLE table_17778417_1 (attendance VARCHAR, week VARCHAR)
How many people attended the Week 8 game when Denver played Buffalo?
SELECT COUNT(record) FROM table_17778417_1 WHERE opponent = "Dallas Texans"
CREATE TABLE table_17778417_1 (record VARCHAR, opponent VARCHAR)
How many times did the Denver Broncos face the Dallas Texans this season?
SELECT MAX(year) FROM table_17801022_1 WHERE race_time = "1:55:13"
CREATE TABLE table_17801022_1 (year INTEGER, race_time VARCHAR)
What year was the winning race time 1:55:13?
SELECT race_time FROM table_17801022_1 WHERE average_speed__mph_ = "113.835"
CREATE TABLE table_17801022_1 (race_time VARCHAR, average_speed__mph_ VARCHAR)
For races with an average speed of 113.835 mph, what are the winning race times?
SELECT manufacturer FROM table_17801022_1 WHERE date = "November 2"
CREATE TABLE table_17801022_1 (manufacturer VARCHAR, date VARCHAR)
What manufacturer won the race on November 2?
SELECT date FROM table_17801022_1 WHERE driver = "Jamie McMurray"
CREATE TABLE table_17801022_1 (date VARCHAR, driver VARCHAR)
What date did Jamie McMurray win the race?
SELECT date FROM table_17801022_1 WHERE race_time = "1:55:13"
CREATE TABLE table_17801022_1 (date VARCHAR, race_time VARCHAR)
What was the date of the race with a winning time of 1:55:13?
SELECT team FROM table_17802778_1 WHERE average_speed__mph_ = "138.14"
CREATE TABLE table_17802778_1 (team VARCHAR, average_speed__mph_ VARCHAR)
What team(s) enjoyed an average spped (mph) of 138.14?
SELECT laps FROM table_17802778_1 WHERE year = 2001
CREATE TABLE table_17802778_1 (laps VARCHAR, year VARCHAR)
How many laps recorded in 2001?
SELECT team FROM table_17802778_1 WHERE year = 2003
CREATE TABLE table_17802778_1 (team VARCHAR, year VARCHAR)
What team(s) were in 2003?
SELECT average_speed__mph_ FROM table_17802778_1 WHERE race_time = "1:45:00"
CREATE TABLE table_17802778_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)
What was the average speed (mph) for the racer who finished in 1:45:00?
SELECT miles__km_ FROM table_17802778_1 WHERE race_time = "1:05:33"
CREATE TABLE table_17802778_1 (miles__km_ VARCHAR, race_time VARCHAR)
How many total miles recorded for the racer who finished in 1:05:33?
SELECT title FROM table_17810099_3 WHERE episode__number = "21a"
CREATE TABLE table_17810099_3 (title VARCHAR, episode__number VARCHAR)
what was the title of the episode 21a?
SELECT writer_s_ FROM table_17810099_3 WHERE episode__number = "14"
CREATE TABLE table_17810099_3 (writer_s_ VARCHAR, episode__number VARCHAR)
who wrote episode 14?
SELECT COUNT(e_greenberg) FROM table_17820556_4 WHERE county = "Morris"
CREATE TABLE table_17820556_4 (e_greenberg VARCHAR, county VARCHAR)
Who many votes did E. Greenberg receive in Morris County?
SELECT precincts FROM table_17820556_4 WHERE g_hager = "19 (20%)"
CREATE TABLE table_17820556_4 (precincts VARCHAR, g_hager VARCHAR)
How many precincts are in the county where G. Hager received 19 (20%) votes?
SELECT COUNT(slope_length) FROM table_17814458_1 WHERE elevation_groundstation = 1966
CREATE TABLE table_17814458_1 (slope_length VARCHAR, elevation_groundstation VARCHAR)
Name the slope length for 1966 groundstation
SELECT name_or_route FROM table_17814458_1 WHERE slope_length = 336
CREATE TABLE table_17814458_1 (name_or_route VARCHAR, slope_length VARCHAR)
Name the name or route for slope length being 336
SELECT MIN(slope_length) FROM table_17814458_1 WHERE type = "gondola"
CREATE TABLE table_17814458_1 (slope_length INTEGER, type VARCHAR)
Name the slope length for gondola
SELECT MIN(capacity_in_persons_hour) FROM table_17814458_1 WHERE construction_year_s_ = "1983"
CREATE TABLE table_17814458_1 (capacity_in_persons_hour INTEGER, construction_year_s_ VARCHAR)
Name the least capacity for persons hour for 1983
SELECT COUNT(new_entries_this_round) FROM table_17814838_1 WHERE round = "Fourth round Proper"
CREATE TABLE table_17814838_1 (new_entries_this_round VARCHAR, round VARCHAR)
How many categories of new entries this round are there for the fourth round proper?
SELECT COUNT(runner_up) FROM table_178242_7 WHERE international_destination = "Japan"
CREATE TABLE table_178242_7 (runner_up VARCHAR, international_destination VARCHAR)
How many runner-ups were there when the show went to Japan?
SELECT COUNT(winner) FROM table_178242_7 WHERE runner_up = "Regina"
CREATE TABLE table_178242_7 (winner VARCHAR, runner_up VARCHAR)
How many won the prize when Regina was the runner-up?
SELECT season FROM table_178242_7 WHERE the_mole = "Milouska"
CREATE TABLE table_178242_7 (season VARCHAR, the_mole VARCHAR)
Which season is it when Milouska was the show's mole ?
SELECT actor_required FROM table_17827271_1 WHERE actor_in_original_production = "Robert Austin"
CREATE TABLE table_17827271_1 (actor_required VARCHAR, actor_in_original_production VARCHAR)
What were the requirements for the role played by Robert Austin in the original production?
SELECT actor_in_original_production FROM table_17827271_1 WHERE actor_required = "Female, older"
CREATE TABLE table_17827271_1 (actor_in_original_production VARCHAR, actor_required VARCHAR)
What actor played the "female, older" role in the original production?
SELECT flatspin FROM table_17827271_1 WHERE actor_in_original_production = "Robert Austin"
CREATE TABLE table_17827271_1 (flatspin VARCHAR, actor_in_original_production VARCHAR)
What FlatSpin actor played the same role as Robert Austin?
SELECT COUNT(roleplay) FROM table_17827271_1 WHERE actor_required = "Male, younger"
CREATE TABLE table_17827271_1 (roleplay VARCHAR, actor_required VARCHAR)
How many RolePlay actors played the role requiring a "male, younger" actor?