answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT incumbent FROM table_1342013_20 WHERE first_elected = 1944
Who is the incumbent first elected in 1944?
CREATE TABLE table_1342013_20 (incumbent VARCHAR, first_elected VARCHAR)
SELECT MIN(score_final) FROM table_name_7 WHERE score_qualifying = 74.075
What was her lowest final score with a qualifying score of 74.075?
CREATE TABLE table_name_7 (score_final INTEGER, score_qualifying VARCHAR)
SELECT pick FROM table_name_38 WHERE school = "clemson"
What pick did Clemson choose?
CREATE TABLE table_name_38 (pick VARCHAR, school VARCHAR)
SELECT SUM(gold) FROM table_name_23 WHERE total = 5 AND bronze < 2
What is the sum of gold medals won by teams that won 5 total medals and fewer than 2 bronze medals?
CREATE TABLE table_name_23 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT player FROM table_2850912_12 WHERE college_junior_club_team = "Brynäs IF (Sweden)"
List the players for team brynäs if (sweden).
CREATE TABLE table_2850912_12 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT attendance FROM table_name_39 WHERE date = "august 22"
On August 22, how many people came to the game?
CREATE TABLE table_name_39 (attendance VARCHAR, date VARCHAR)
SELECT SUM(gold) FROM table_name_74 WHERE silver = 4 AND total > 6
What is the sum of the gold medals of the nation with 4 silvers and more than 6 total medals?
CREATE TABLE table_name_74 (gold INTEGER, silver VARCHAR, total VARCHAR)
SELECT rounds FROM table_name_82 WHERE entrant = "stanley brm"
Name the rounds for stanley brm
CREATE TABLE table_name_82 (rounds VARCHAR, entrant VARCHAR)
SELECT pick FROM table_name_2 WHERE college = "southeastern louisiana"
What Pick does the College Southeastern Louisiana have?
CREATE TABLE table_name_2 (pick VARCHAR, college VARCHAR)
SELECT winner FROM table_name_97 WHERE race_leader = "rest day"
Name the winner for rest day race leader
CREATE TABLE table_name_97 (winner VARCHAR, race_leader VARCHAR)
SELECT SUM(crowd) FROM table_name_84 WHERE venue = "princes park"
What is the average crowd size at Princes Park?
CREATE TABLE table_name_84 (crowd INTEGER, venue VARCHAR)
SELECT COUNT(round) FROM table_name_38 WHERE event = "k-1 mma romanex"
The K-1 MMA Romanex event went how many rounds?
CREATE TABLE table_name_38 (round VARCHAR, event VARCHAR)
SELECT innings FROM table_28846752_5 WHERE average = "19.60"
how many innings have an average of 19.60?
CREATE TABLE table_28846752_5 (innings VARCHAR, average VARCHAR)
SELECT opponent FROM table_name_16 WHERE date = "september 27, 1998"
Who was the opponent on september 27, 1998?
CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR)
SELECT film FROM table_name_76 WHERE year = 1996
What film was released in 1996?
CREATE TABLE table_name_76 (film VARCHAR, year VARCHAR)
SELECT date FROM table_16387953_1 WHERE ground = "Football Park"
On what dates where games played at Football Park?
CREATE TABLE table_16387953_1 (date VARCHAR, ground VARCHAR)
SELECT score_in_the_final FROM table_23235546_1 WHERE championship = "Australian Open" AND opponent_in_the_final = "Mats Wilander"
What was the score in the final when Mats Wilander was the opponent in the Australian Open?
CREATE TABLE table_23235546_1 (score_in_the_final VARCHAR, championship VARCHAR, opponent_in_the_final VARCHAR)
SELECT SUM(match) FROM table_name_14 WHERE runs = 100 AND year > 1994
Which Match has Runs of 100, and a Year larger than 1994?
CREATE TABLE table_name_14 (match INTEGER, runs VARCHAR, year VARCHAR)
SELECT home_team AS score FROM table_name_43 WHERE venue = "mcg"
Who is the home team that played at MCG?
CREATE TABLE table_name_43 (home_team VARCHAR, venue VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_81 WHERE to_par > 6 AND player = "johnny palmer"
What is the Johnny Palmer with a To larger than 6 Money sum?
CREATE TABLE table_name_81 (money___ INTEGER, to_par VARCHAR, player VARCHAR)
SELECT MAX(rounds) FROM table_name_40 WHERE truck_s_ = "chevrolet silverado" AND team = "rbr enterprises"
What is the most number of rounds that the Team from RBR Enterprises and having a Chevrolet Silverado ran?
CREATE TABLE table_name_40 (rounds INTEGER, truck_s_ VARCHAR, team VARCHAR)
SELECT date FROM table_name_10 WHERE venue = "stade général seyni kountché , niamey"
what is the date when the venue is stade général seyni kountché , niamey?
CREATE TABLE table_name_10 (date VARCHAR, venue VARCHAR)
SELECT nhl_team FROM table_name_29 WHERE player = "dave murphy"
What is the NHL team of dave murphy?
CREATE TABLE table_name_29 (nhl_team VARCHAR, player VARCHAR)
SELECT notes FROM table_name_74 WHERE country = "zimbabwe"
What are the notes for Zimbabwe?
CREATE TABLE table_name_74 (notes VARCHAR, country VARCHAR)
SELECT won FROM table_15467476_3 WHERE tries_against = "49"
How many games won for teams with 49 tries against?
CREATE TABLE table_15467476_3 (won VARCHAR, tries_against VARCHAR)
SELECT MAX(first_elected) FROM table_1341930_11 WHERE incumbent = "James C. Davis"
What is the most first elected for james c. davis?
CREATE TABLE table_1341930_11 (first_elected INTEGER, incumbent VARCHAR)
SELECT nature_of_role FROM table_23379776_5 WHERE year = 2009
What is every nature of role with year as 2009?
CREATE TABLE table_23379776_5 (nature_of_role VARCHAR, year VARCHAR)
SELECT diameter FROM table_name_28 WHERE year_of_issue = 1977
Which Diameter has a Year of Issue of 1977?
CREATE TABLE table_name_28 (diameter VARCHAR, year_of_issue VARCHAR)
SELECT score FROM table_name_91 WHERE opponent = "nashville predators"
What score has nashville predators as the opponent?
CREATE TABLE table_name_91 (score VARCHAR, opponent VARCHAR)
SELECT AVG(december) FROM table_name_18 WHERE opponent = "@ toronto maple leafs"
Can you tell me the average December rhat has the Opponent of @ toronto maple leafs?
CREATE TABLE table_name_18 (december INTEGER, opponent VARCHAR)
SELECT result FROM table_name_48 WHERE week = 4
What was the score of the Browns week 4 game?
CREATE TABLE table_name_48 (result VARCHAR, week VARCHAR)
SELECT MAX(wins) FROM table_name_46 WHERE goal_difference = 11 AND played > 30
What is the most wins for a position with more than 30 played and a goal difference of 11?
CREATE TABLE table_name_46 (wins INTEGER, goal_difference VARCHAR, played VARCHAR)
SELECT COUNT(silver) FROM table_name_11 WHERE bronze = "3" AND rank = "3" AND total > 6
What is the total number of silvers associated with 3 bronzes, a total over 6, and a rank of 3?
CREATE TABLE table_name_11 (silver VARCHAR, total VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT MAX(week) FROM table_name_92 WHERE result = "w 23-20" AND attendance < 34 OFFSET 127
Which Week is the highest one that has a Result of w 23-20, and an Attendance smaller than 34,127?
CREATE TABLE table_name_92 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT player FROM table_name_22 WHERE position = "end" AND school_club_team = "oregon state"
WHo has a Position of end and a School/Club Team of oregon state?
CREATE TABLE table_name_22 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT score FROM table_name_74 WHERE runner_up = "jimmy connors" AND year < 1979
In 1979 when Jimmy Connors was the runner-up what was the score?
CREATE TABLE table_name_74 (score VARCHAR, runner_up VARCHAR, year VARCHAR)
SELECT college FROM table_name_30 WHERE position = "nose tackle"
Which college has a nose tackle position?
CREATE TABLE table_name_30 (college VARCHAR, position VARCHAR)
SELECT country FROM table_name_29 WHERE left_office = "incumbent"
What is the country of the Representative that left office as incumbent?
CREATE TABLE table_name_29 (country VARCHAR, left_office VARCHAR)
SELECT outcome FROM table_name_62 WHERE partner = "brett steven"
What was the outcome of the final with a partner of Brett Steven?
CREATE TABLE table_name_62 (outcome VARCHAR, partner VARCHAR)
SELECT week FROM table_14520977_1 WHERE location = "Kingdome"
Name the week for kingdome
CREATE TABLE table_14520977_1 (week VARCHAR, location VARCHAR)
SELECT MAX(silver) FROM table_name_40 WHERE gold < 0
Which is the highest silver that has a gold less than 0?
CREATE TABLE table_name_40 (silver INTEGER, gold INTEGER)
SELECT railway_number_s_ FROM table_name_3 WHERE class = "aw"
What is the railway number of the aw class?
CREATE TABLE table_name_3 (railway_number_s_ VARCHAR, class VARCHAR)
SELECT location FROM table_name_46 WHERE opponent = "liam mccarty"
What's was the location for fight against Liam Mccarty?
CREATE TABLE table_name_46 (location VARCHAR, opponent VARCHAR)
SELECT date_of_inauguration FROM table_name_10 WHERE age_at_inauguration = "73years, 262days"
What is the Date of inauguration of the President with an Age at inauguration of 73years, 262days?
CREATE TABLE table_name_10 (date_of_inauguration VARCHAR, age_at_inauguration VARCHAR)
SELECT report FROM table_name_35 WHERE away_team = "townsville crocodiles"
What's the report about townsville crocodiles as an away team?
CREATE TABLE table_name_35 (report VARCHAR, away_team VARCHAR)
SELECT AVG(episode) FROM table_name_35 WHERE performer_4 = "jimmy mulville"
What is the average episode number where jimmy mulville was the 4th performer?
CREATE TABLE table_name_35 (episode INTEGER, performer_4 VARCHAR)
SELECT shooting FROM table_12407546_1 WHERE athlete__noc_ = "Luis Siri"
What's Luis Siri's shooting score?
CREATE TABLE table_12407546_1 (shooting VARCHAR, athlete__noc_ VARCHAR)
SELECT AVG(silver) FROM table_name_42 WHERE rank = "30" AND bronze > 0
What is the average Silver with rank 30 and a Bronze greater than 0
CREATE TABLE table_name_42 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT city_of_license FROM table_name_79 WHERE power = "1,400 watts"
what is the City of license that has a 1,400 watts Power
CREATE TABLE table_name_79 (city_of_license VARCHAR, power VARCHAR)
SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester = 'Fall' AND YEAR = 2003)
Find the names of students who have taken any course in the fall semester of year 2003.
CREATE TABLE student (name VARCHAR, id VARCHAR, semester VARCHAR, YEAR VARCHAR); CREATE TABLE takes (name VARCHAR, id VARCHAR, semester VARCHAR, YEAR VARCHAR)
SELECT date FROM table_name_31 WHERE away_team = "st kilda"
On what date is St Kilda the away team?
CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR)
SELECT city FROM table_name_47 WHERE building = "bucharest tower center (btc)"
What city is the bucharest tower center (btc) located in?
CREATE TABLE table_name_47 (city VARCHAR, building VARCHAR)
SELECT driver FROM table_name_6 WHERE rounds = "all" AND entrant = "motor racing developments"
Which driver was in all rounds as an entrant of Motor Racing Developments?
CREATE TABLE table_name_6 (driver VARCHAR, rounds VARCHAR, entrant VARCHAR)
SELECT head_id, name FROM head WHERE name LIKE '%Ha%'
Which head's name has the substring 'Ha'? List the id and name.
CREATE TABLE head (head_id VARCHAR, name VARCHAR)
SELECT game FROM table_21058836_1 WHERE opponent = "Santa Clara"
What game did the Bruins play Santa Clara?
CREATE TABLE table_21058836_1 (game VARCHAR, opponent VARCHAR)
SELECT player FROM table_name_18 WHERE versus = "sri lanka"
Who had a versus of sri lanka?
CREATE TABLE table_name_18 (player VARCHAR, versus VARCHAR)
SELECT winner_and_nominees FROM table_name_44 WHERE director = "cary joji fukunaga"
Who was the winner and nominees for the movie directed by cary joji fukunaga?
CREATE TABLE table_name_44 (winner_and_nominees VARCHAR, director VARCHAR)
SELECT MIN(first_game) FROM table_name_60 WHERE played > 11 AND lost = 12
When was the earliest first game with 11 played and 12 games lost?
CREATE TABLE table_name_60 (first_game INTEGER, played VARCHAR, lost VARCHAR)
SELECT opponents_in_the_final FROM table_name_61 WHERE surface = "carpet" AND tournament = "milan , italy"
What is Opponents In The Final, when Surface is "Carpet", and when Tournament is "Milan , Italy"?
CREATE TABLE table_name_61 (opponents_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT performance FROM table_name_39 WHERE test_standard = "bs en779" AND particulate_size_approaching_100_percentage_retention = ">2µm" AND class = "f6"
Which Performance has a Test Standard of bs en779, and a Particulate size approaching 100% retention of >2µm, and a Class of f6?
CREATE TABLE table_name_39 (performance VARCHAR, class VARCHAR, test_standard VARCHAR, particulate_size_approaching_100_percentage_retention VARCHAR)
SELECT branches_involved FROM table_1921_1 WHERE location = "Afghanistan"
What is every branch involved in Afghanistan?
CREATE TABLE table_1921_1 (branches_involved VARCHAR, location VARCHAR)
SELECT uk_co_presenter FROM table_14345690_15 WHERE co_presenter = "Joe Swash" AND series = "Eleven (2011)"
Who is the UK co-presenters that have Joe Swash as a co-presenter of the series Eleven (2011)?
CREATE TABLE table_14345690_15 (uk_co_presenter VARCHAR, co_presenter VARCHAR, series VARCHAR)
SELECT original_air_date FROM table_17625876_1 WHERE no_in_season = 1
Name the original air date for number in season being 1
CREATE TABLE table_17625876_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT college_junior_club_team FROM table_2850912_4 WHERE nhl_team = "Buffalo Sabres"
Which junior team is associated with an NHL pick by the Buffalo Sabres?
CREATE TABLE table_2850912_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT COUNT(goals_conceded) FROM table_18018214_4 WHERE points = 31
In the game with 31 points, how many goals were conceded?
CREATE TABLE table_18018214_4 (goals_conceded VARCHAR, points VARCHAR)
SELECT surface FROM table_name_78 WHERE tournament = "lahore" AND score = "4–6 6–3 6–4"
On what surface did a score of 4–6 6–3 6–4 occur at the Tournament of Lahore?
CREATE TABLE table_name_78 (surface VARCHAR, tournament VARCHAR, score VARCHAR)
SELECT builder FROM table_20236726_2 WHERE serial_no = 377
Name the builder for serial number being 377
CREATE TABLE table_20236726_2 (builder VARCHAR, serial_no VARCHAR)
SELECT 1997 FROM table_name_22 WHERE 2003 = "0 / 4"
What is 1997, when 2003 is 0 / 4?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT score FROM table_name_23 WHERE home_team = "cairns taipans"
what is the score when the home team is cairns taipans?
CREATE TABLE table_name_23 (score VARCHAR, home_team VARCHAR)
SELECT place FROM table_name_46 WHERE country = "united states" AND score = 72 - 70 - 69 = 211
The golfer from the United states with a score of 72-70-69=211 is in what place?
CREATE TABLE table_name_46 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT district FROM table_name_31 WHERE college_or_campus_name = "anna university college of engineering kanchipuram"
What District has a College or Campus Name of anna university college of engineering kanchipuram?
CREATE TABLE table_name_31 (district VARCHAR, college_or_campus_name VARCHAR)
SELECT to_par FROM table_name_87 WHERE country = "united states" AND score = 74 - 69 - 71 - 74 = 288
What is the To par for the place in the United States and a score of 74-69-71-74=288?
CREATE TABLE table_name_87 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT SUM(laps) FROM table_name_94 WHERE rider = "alex baldolini"
How many laps did the rider Alex Baldolini take?
CREATE TABLE table_name_94 (laps INTEGER, rider VARCHAR)
SELECT guest_host FROM table_name_10 WHERE episode_number = 7
What kind of Guest Host has a Episode Number of 7?
CREATE TABLE table_name_10 (guest_host VARCHAR, episode_number VARCHAR)
SELECT play_by_play FROM table_name_38 WHERE studio_host = "john ryder" AND year = "2007-08"
Studio host of john ryder, and a Year of 2007-08 had what play by play?
CREATE TABLE table_name_38 (play_by_play VARCHAR, studio_host VARCHAR, year VARCHAR)
SELECT COUNT(period) FROM table_24565004_11 WHERE goals¹ = 15
How many periods had 15 goals?
CREATE TABLE table_24565004_11 (period VARCHAR, goals¹ VARCHAR)
SELECT AVG(high_temperature), day_of_week FROM weekly_weather GROUP BY day_of_week
What is the average high temperature for each day of week?
CREATE TABLE weekly_weather (day_of_week VARCHAR, high_temperature INTEGER)
SELECT COUNT(females___percentage_) FROM table_name_45 WHERE state = "karnataka" AND males_rank > 16
How many Females (%) have a State of karnataka, and Males Rank larger than 16?
CREATE TABLE table_name_45 (females___percentage_ VARCHAR, state VARCHAR, males_rank VARCHAR)
SELECT COUNT(decile) FROM table_name_49 WHERE authority = "state" AND area = "fairlie" AND roll < 206
What is the total Decile that has a state authority, fairlie area and roll smarter than 206?
CREATE TABLE table_name_49 (decile VARCHAR, roll VARCHAR, authority VARCHAR, area VARCHAR)
SELECT call_sign FROM table_name_26 WHERE frequency_mhz < 95.9 AND erp_w = 10
What's the Call sign with a Frequency MHz thats smaller than 95.9 and an ERP W of 10?
CREATE TABLE table_name_26 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
SELECT MAX(area__km_2__) FROM table_28891101_3 WHERE lga_name = "Ahoada East"
What is the area when the Iga name is Ahoada East?
CREATE TABLE table_28891101_3 (area__km_2__ INTEGER, lga_name VARCHAR)
SELECT original_airdate FROM table_19517621_4 WHERE written_by = "Michelle Offen"
What was the original air date of the episode written by Michelle Offen?
CREATE TABLE table_19517621_4 (original_airdate VARCHAR, written_by VARCHAR)
SELECT length__ft_ FROM table_2665085_1 WHERE park = "Kemah Boardwalk"
How long is the rollar coaster on Kemah Boardwalk
CREATE TABLE table_2665085_1 (length__ft_ VARCHAR, park VARCHAR)
SELECT AVG(rd__number) FROM table_name_82 WHERE player = "steve hazlett" AND pl_gp < 0
When Steve Hazlett is the Player, and the PI GP is under 0, what is the average Rd #?
CREATE TABLE table_name_82 (rd__number INTEGER, player VARCHAR, pl_gp VARCHAR)
SELECT player FROM table_name_93 WHERE total < 284 AND country = "south africa"
What player from South Africa had a total less than 284?
CREATE TABLE table_name_93 (player VARCHAR, total VARCHAR, country VARCHAR)
SELECT mission FROM table_name_47 WHERE apogee = "707 km"
What kind of Mission has a Apogee of 707 km?
CREATE TABLE table_name_47 (mission VARCHAR, apogee VARCHAR)
SELECT surface FROM table_name_43 WHERE date = "september 13, 2009"
What surface was the game played on for the September 13, 2009 match?
CREATE TABLE table_name_43 (surface VARCHAR, date VARCHAR)
SELECT original_air_date FROM table_24639086_3 WHERE viewers__in_millions_ = "2.48"
If the amount of viewers is 2.48 million, what is the original air date?
CREATE TABLE table_24639086_3 (original_air_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT gold FROM table_name_15 WHERE year = 1998
Who won the gold medal in 1998?
CREATE TABLE table_name_15 (gold VARCHAR, year VARCHAR)
SELECT us_viewers__millions_ FROM table_27714573_1 WHERE directed_by = "Michael Lembeck"
how many millions of north american viewers had the episode whose director was Michael Lembeck?
CREATE TABLE table_27714573_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT pba_team FROM table_name_10 WHERE college = "ateneo" AND pick = 17
What PBA team is the player from Ateneo college and a pick of 17?
CREATE TABLE table_name_10 (pba_team VARCHAR, college VARCHAR, pick VARCHAR)
SELECT COUNT(poor_law_union) FROM table_30120559_1 WHERE area__acres__ = 332
Name the poor law union for area being 332
CREATE TABLE table_30120559_1 (poor_law_union VARCHAR, area__acres__ VARCHAR)
SELECT MIN(overall) FROM table_name_23 WHERE player = "dan jennings" AND round > 9
What is the lowest Overall, when Player is "Dan Jennings", and when Round is greater than 9?
CREATE TABLE table_name_23 (overall INTEGER, player VARCHAR, round VARCHAR)
SELECT AVG(2008) FROM table_name_20 WHERE airport = "hurghada international airport"
Which 2008 has an Airport of hurghada international airport?
CREATE TABLE table_name_20 (airport VARCHAR)
SELECT COUNT(school_club_team_country) FROM table_11734041_10 WHERE player = "Kimball, Toby Toby Kimball"
Kimball, toby toby kimball is a player; How many times at school/ club team/country was the player present?
CREATE TABLE table_11734041_10 (school_club_team_country VARCHAR, player VARCHAR)
SELECT COUNT(wins) FROM table_name_29 WHERE season > 2008 AND podiums > 6
How many wins had a podium larger than 6 after season 2008?
CREATE TABLE table_name_29 (wins VARCHAR, season VARCHAR, podiums VARCHAR)
SELECT draws FROM table_name_76 WHERE losses = "did not qualify"
What is Draws, when Losses is "Did Not Qualify"?
CREATE TABLE table_name_76 (draws VARCHAR, losses VARCHAR)
SELECT COUNT(Champions) AS league FROM table_17505751_5 WHERE league = 5 AND position = "Forward"
when the position is forward and the league is 5 what number is the Champion league
CREATE TABLE table_17505751_5 (Champions VARCHAR, league VARCHAR, position VARCHAR)
SELECT became_consort FROM table_name_92 WHERE marriage = "4 april 1721"
Name the became consort for marriage of 4 april 1721
CREATE TABLE table_name_92 (became_consort VARCHAR, marriage VARCHAR)
SELECT MIN(grid) FROM table_name_30 WHERE laps > 78
With Laps greater than 78, what is the lowest Grid?
CREATE TABLE table_name_30 (grid INTEGER, laps INTEGER)