question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What year had a 100m freestyle event?
CREATE TABLE table_name_73 (year_set VARCHAR, event VARCHAR)
SELECT COUNT(year_set) FROM table_name_73 WHERE event = "100m freestyle"
What is the incumbent for 1932?
CREATE TABLE table_1342149_13 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1342149_13 WHERE first_elected = 1932
What is the Week of the game with a Result of w 48–20?
CREATE TABLE table_name_58 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_58 WHERE result = "w 48–20"
What is the Name of the racer with a heat higher than 2 and a lane less than 5, with a time of 1:01.53?
CREATE TABLE table_name_96 (name VARCHAR, time VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT name FROM table_name_96 WHERE heat > 2 AND lane < 5 AND time = "1:01.53"
What is the week for the stadium that had an attendance of 22,286?
CREATE TABLE table_name_26 (week INTEGER, attendance VARCHAR)
SELECT AVG(week) FROM table_name_26 WHERE attendance = "22,286"
Name the chapter with chinese of 釋水
CREATE TABLE table_name_28 (chapter VARCHAR, chinese VARCHAR)
SELECT chapter FROM table_name_28 WHERE chinese = "釋水"
Who are the sideline reporter(s) on NBC with al michaels on the play-by-play after 2013?
CREATE TABLE table_name_22 (sideline_reporter_s_ VARCHAR, year VARCHAR, network VARCHAR, play_by_play VARCHAR)
SELECT sideline_reporter_s_ FROM table_name_22 WHERE network = "nbc" AND play_by_play = "al michaels" AND year > 2013
When was the 1991 world group I with the opponent of Li Fang?
CREATE TABLE table_name_2 (date VARCHAR, edition VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_2 WHERE edition = "1991 world group i" AND opponent = "li fang"
What week corresponds to the last one to be played at the memorial stadium?
CREATE TABLE table_10647401_1 (week INTEGER, stadium VARCHAR)
SELECT MAX(week) FROM table_10647401_1 WHERE stadium = "Memorial stadium"
Name the total number of golden tickets being rosen shingle creek resort
CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, callback_venue VARCHAR)
SELECT COUNT(golden_tickets) FROM table_22897967_1 WHERE callback_venue = "Rosen Shingle Creek Resort"
What are the types and countries of competitions?
CREATE TABLE competition (Competition_type VARCHAR, Country VARCHAR)
SELECT Competition_type, Country FROM competition
What is the name and distance for aircraft with id 12?
CREATE TABLE Aircraft (name VARCHAR, distance VARCHAR, aid VARCHAR)
SELECT name, distance FROM Aircraft WHERE aid = 12
Who was the high rebounder against charlotte?
CREATE TABLE table_13619135_7 (high_rebounds VARCHAR, team VARCHAR)
SELECT high_rebounds FROM table_13619135_7 WHERE team = "Charlotte"
In what district would you find the candidates listed as jim cooper (d) unopposed?
CREATE TABLE table_1341577_43 (district VARCHAR, candidates VARCHAR)
SELECT district FROM table_1341577_43 WHERE candidates = "Jim Cooper (D) Unopposed"
Who is from the College of Cincinnati?
CREATE TABLE table_name_38 (name VARCHAR, college VARCHAR)
SELECT name FROM table_name_38 WHERE college = "cincinnati"
What is the team 2 with cobreloa as team 1?
CREATE TABLE table_name_2 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_2 WHERE team_1 = "cobreloa"
Which record has a score of 135–134?
CREATE TABLE table_name_7 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_7 WHERE score = "135–134"
Who did the Seahawks play when the listed attendance was 61615?
CREATE TABLE table_13258876_2 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_13258876_2 WHERE attendance = 61615
What team had 159 laps and a Time/Retired of 6:30:02.3733?
CREATE TABLE table_name_75 (team VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT team FROM table_name_75 WHERE laps = 159 AND time_retired = "6:30:02.3733"
What studio has directors John Lasseter and Andrew Stanton?
CREATE TABLE table_name_95 (studio VARCHAR, director_s_ VARCHAR)
SELECT studio FROM table_name_95 WHERE director_s_ = "john lasseter and andrew stanton"
What is the time/retired for brm with a grid of 13?
CREATE TABLE table_name_81 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_81 WHERE constructor = "brm" AND grid = 13
How many matches had the result of 6–3, 6–2?
CREATE TABLE table_11636213_7 (partnering VARCHAR, result VARCHAR)
SELECT COUNT(partnering) FROM table_11636213_7 WHERE result = "6–3, 6–2"
What was the score of the French Open?
CREATE TABLE table_name_7 (score_in_the_final VARCHAR, championship VARCHAR)
SELECT score_in_the_final FROM table_name_7 WHERE championship = "french open"
What is Country, when Class / Type is "Three masted full rigged ship"?
CREATE TABLE table_name_2 (country VARCHAR, class___type VARCHAR)
SELECT country FROM table_name_2 WHERE class___type = "three masted full rigged ship"
which area has a rank of 60?
CREATE TABLE table_22916979_2 (metropolitan_area VARCHAR, rank VARCHAR)
SELECT metropolitan_area FROM table_22916979_2 WHERE rank = 60
When it's the 2nd round of the open cup what is the playoffs?
CREATE TABLE table_1939235_1 (playoffs VARCHAR, open_cup VARCHAR)
SELECT playoffs FROM table_1939235_1 WHERE open_cup = "2nd Round"
What place did the party finish in the year when they earned 0.86% of the vote?
CREATE TABLE table_168482_1 (place VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT place FROM table_168482_1 WHERE _percentage_of_popular_vote = "0.86%"
How many tries for does the team with a try bonus of 1 and 35 points earned?
CREATE TABLE table_name_33 (tries_for VARCHAR, points VARCHAR, try_bonus VARCHAR)
SELECT tries_for FROM table_name_33 WHERE points = "35" AND try_bonus = "1"
What is the Mountains Classification for Winner Thor hushovd with Sprints Classification of no award?
CREATE TABLE table_name_94 (mountains_classification VARCHAR, winner VARCHAR, sprints_classification VARCHAR)
SELECT mountains_classification FROM table_name_94 WHERE winner = "thor hushovd" AND sprints_classification = "no award"
What is the average year with Nathan Robertson Gail Emms in mixed doubles?
CREATE TABLE table_name_71 (year INTEGER, mixed_doubles VARCHAR)
SELECT AVG(year) FROM table_name_71 WHERE mixed_doubles = "nathan robertson gail emms"
What episode had 1.42 million viewers?
CREATE TABLE table_23399481_3 (series__number VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT series__number FROM table_23399481_3 WHERE us_viewers__in_millions_ = "1.42"
On which date was the Tie no 2?
CREATE TABLE table_name_41 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_41 WHERE tie_no = "2"
What if the description of a ch-47d chinook?
CREATE TABLE table_10006830_1 (description VARCHAR, aircraft VARCHAR)
SELECT description FROM table_10006830_1 WHERE aircraft = "CH-47D Chinook"
How many times was the election joseph w. byrns, sr. (d) unopposed?
CREATE TABLE table_1342379_41 (result VARCHAR, candidates VARCHAR)
SELECT COUNT(result) FROM table_1342379_41 WHERE candidates = "Joseph W. Byrns, Sr. (D) Unopposed"
What is Score, when Competition is "Friendly", and when Date is "30 April"?
CREATE TABLE table_name_46 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT score FROM table_name_46 WHERE competition = "friendly" AND date = "30 april"
What are the main places for the streymoy region with an area of larger than 6.1?
CREATE TABLE table_name_91 (main_places VARCHAR, regions VARCHAR, area VARCHAR)
SELECT main_places FROM table_name_91 WHERE regions = "streymoy" AND area > 6.1
What is the title for episode number 30?
CREATE TABLE table_26952212_1 (title VARCHAR, no_in_total VARCHAR)
SELECT title FROM table_26952212_1 WHERE no_in_total = "30"
Which result has a Venue of away, and an Opponent of marbella?
CREATE TABLE table_name_35 (result VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_35 WHERE venue = "away" AND opponent = "marbella"
Which National team has a Year of total?
CREATE TABLE table_name_6 (national_team VARCHAR, year VARCHAR)
SELECT national_team FROM table_name_6 WHERE year = "total"
What is the overall total for players drafted from notre dame?
CREATE TABLE table_name_25 (overall INTEGER, college VARCHAR)
SELECT SUM(overall) FROM table_name_25 WHERE college = "notre dame"
How many tries for Nelson RFC?
CREATE TABLE table_name_99 (tries_for VARCHAR, club VARCHAR)
SELECT tries_for FROM table_name_99 WHERE club = "nelson rfc"
How many runner-ups were there when the show went to Japan?
CREATE TABLE table_178242_7 (runner_up VARCHAR, international_destination VARCHAR)
SELECT COUNT(runner_up) FROM table_178242_7 WHERE international_destination = "Japan"
What is the score on september 20?
CREATE TABLE table_name_6 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_6 WHERE date = "september 20"
Who was the opponent when the attendance was 31,002?
CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_86 WHERE attendance = "31,002"
What event had a prize of €900,000?
CREATE TABLE table_name_80 (event VARCHAR, prize VARCHAR)
SELECT event FROM table_name_80 WHERE prize = "€900,000"
What is the rank when the time is 6:50.48?
CREATE TABLE table_name_70 (rank VARCHAR, time VARCHAR)
SELECT rank FROM table_name_70 WHERE time = "6:50.48"
What was the score of the away team in the match at Princes Park?
CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_59 WHERE venue = "princes park"
Name the number of location attendance for l 141–143 (ot)
CREATE TABLE table_17102076_10 (location_attendance VARCHAR, score VARCHAR)
SELECT COUNT(location_attendance) FROM table_17102076_10 WHERE score = "L 141–143 (OT)"
How many played have 8 wins and more than 58 goals against?
CREATE TABLE table_name_20 (played VARCHAR, wins VARCHAR, goals_against VARCHAR)
SELECT COUNT(played) FROM table_name_20 WHERE wins = 8 AND goals_against > 58
Which city has an ICAO of ZSXZ?
CREATE TABLE table_name_61 (city VARCHAR, icao VARCHAR)
SELECT city FROM table_name_61 WHERE icao = "zsxz"
Which NGC number has an Object type of open cluster, and a Right ascension (J2000) of 06h01m06s?
CREATE TABLE table_name_61 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT MAX(ngc_number) FROM table_name_61 WHERE object_type = "open cluster" AND right_ascension___j2000__ = "06h01m06s"
Show the type of school and the number of buses for each type.
CREATE TABLE school (type VARCHAR, school_id VARCHAR); CREATE TABLE school_bus (school_id VARCHAR)
SELECT T2.type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type
What is listed as the average Date that has U-boats destroyed (KuK) of 2 with Tonnage of 1,514,050?
CREATE TABLE table_name_13 (date INTEGER, u_boats_destroyed__kuk_ VARCHAR, tonnage VARCHAR)
SELECT AVG(date) FROM table_name_13 WHERE u_boats_destroyed__kuk_ = "2" AND tonnage = "1,514,050"
What was the year that China will have a building completed?
CREATE TABLE table_name_79 (year_completion_expected VARCHAR, country VARCHAR)
SELECT year_completion_expected FROM table_name_79 WHERE country = "china"
What was the date of the game at Princes Park?
CREATE TABLE table_name_83 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_83 WHERE venue = "princes park"
What date was the race in 1968 run on?
CREATE TABLE table_22648285_1 (date VARCHAR, year VARCHAR)
SELECT date FROM table_22648285_1 WHERE year = 1968
What was the date when Footscray was the away team?
CREATE TABLE table_name_5 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_5 WHERE away_team = "footscray"
What is the highest overall of the player from Georgia?
CREATE TABLE table_name_54 (overall INTEGER, college VARCHAR)
SELECT MAX(overall) FROM table_name_54 WHERE college = "georgia"
When was the match with a result of sa by 10 wkts?
CREATE TABLE table_name_18 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_18 WHERE result = "sa by 10 wkts"
Which date has a Clock of 0.8-1.6ghz?
CREATE TABLE table_name_61 (date VARCHAR, clock VARCHAR)
SELECT date FROM table_name_61 WHERE clock = "0.8-1.6ghz"
Which regio has a label of zzt and a date of 27 september 2004?
CREATE TABLE table_name_5 (region VARCHAR, label VARCHAR, date VARCHAR)
SELECT region FROM table_name_5 WHERE label = "zzt" AND date = "27 september 2004"
What is the 2012 value with a 1.3 in 2010 and a 3.6 in 2008?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT 2012 FROM table_name_67 WHERE 2010 = "1.3" AND 2008 = "3.6"
Find the title of course that is provided by Statistics but not Psychology departments.
CREATE TABLE course (title VARCHAR, dept_name VARCHAR)
SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology'
When was the circuit portland international raceway?
CREATE TABLE table_name_28 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_28 WHERE circuit = "portland international raceway"
What was the score in round 7?
CREATE TABLE table_26847237_1 (score VARCHAR, round__number VARCHAR)
SELECT score FROM table_26847237_1 WHERE round__number = "Round 7"
What is every entry for Saturday August 27 when the entry for Thursday August 25 is 23' 56.90 94.528mph?
CREATE TABLE table_30058355_7 (sat_27_aug VARCHAR, thurs_25_aug VARCHAR)
SELECT sat_27_aug FROM table_30058355_7 WHERE thurs_25_aug = "23' 56.90 94.528mph"
Oklahoma State produced a player in which position in the draft?
CREATE TABLE table_name_26 (position VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_26 WHERE school_club_team = "oklahoma state"
For Ynysybwl RFC, what was the losing bonus for 416 points?
CREATE TABLE table_name_48 (losing_bonus VARCHAR, points_for VARCHAR, club VARCHAR)
SELECT losing_bonus FROM table_name_48 WHERE points_for = "416" AND club = "ynysybwl rfc"
What was the decile of Samuel Marsden Collegiate School in Whitby, when it had a roll higher than 163?
CREATE TABLE table_name_55 (decile VARCHAR, roll VARCHAR, area VARCHAR, name VARCHAR)
SELECT COUNT(decile) FROM table_name_55 WHERE area = "whitby" AND name = "samuel marsden collegiate school" AND roll > 163
What is the most number of losses for teams with 5 wins and an against value under 1607?
CREATE TABLE table_name_65 (losses INTEGER, wins VARCHAR, against VARCHAR)
SELECT MAX(losses) FROM table_name_65 WHERE wins = 5 AND against < 1607
What is Visitor, when Home is Philadelphia, and when Date is November 18?
CREATE TABLE table_name_11 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_11 WHERE home = "philadelphia" AND date = "november 18"
How many clubs are remaining when the winners from the previous round totals 4?
CREATE TABLE table_18328569_1 (clubs_remaining VARCHAR, winners_from_previous_round VARCHAR)
SELECT clubs_remaining FROM table_18328569_1 WHERE winners_from_previous_round = "4"
what is the margin of victory when the runner-up is amy alcott and the winning score is –9 (72-68-67=207)?
CREATE TABLE table_name_78 (margin_of_victory VARCHAR, runner_s__up VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_78 WHERE runner_s__up = "amy alcott" AND winning_score = –9(72 - 68 - 67 = 207)
How many gains were there for the player who had a loss greater than 57 and a long less than 55?
CREATE TABLE table_name_45 (gain VARCHAR, loss VARCHAR, long VARCHAR)
SELECT COUNT(gain) FROM table_name_45 WHERE loss > 57 AND long < 55
What Title's Start of Reign is 1993?
CREATE TABLE table_name_69 (title VARCHAR, start_of_reign VARCHAR)
SELECT title FROM table_name_69 WHERE start_of_reign = 1993
Who was the incumbent for the election in 1978?
CREATE TABLE table_27487712_1 (incumbent VARCHAR, elected VARCHAR)
SELECT incumbent FROM table_27487712_1 WHERE elected = 1978
What was the loss of the game when the record was 50-32?
CREATE TABLE table_name_81 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_81 WHERE record = "50-32"
What was nominated for the Best Movie category?
CREATE TABLE table_name_54 (work VARCHAR, category VARCHAR)
SELECT work FROM table_name_54 WHERE category = "best movie"
Show the names of pilots and models of aircrafts they have flied with.
CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE pilot (Pilot_name VARCHAR, Pilot_ID VARCHAR); CREATE TABLE aircraft (Model VARCHAR, Aircraft_ID VARCHAR)
SELECT T3.Pilot_name, T2.Model 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
What rank has a gross of $35,976,000?
CREATE TABLE table_name_44 (rank VARCHAR, gross VARCHAR)
SELECT rank FROM table_name_44 WHERE gross = "$35,976,000"
how many peaks where for the chinese episode named 萬凰之王
CREATE TABLE table_29633639_1 (peak VARCHAR, chinese_title VARCHAR)
SELECT COUNT(peak) FROM table_29633639_1 WHERE chinese_title = "萬凰之王"
What is College, when Pick is less than 145, and when Player is Jeff Wilkins?
CREATE TABLE table_name_34 (college VARCHAR, pick VARCHAR, player VARCHAR)
SELECT college FROM table_name_34 WHERE pick < 145 AND player = "jeff wilkins"
On 27 January 1968 who was the Home Team when the Away team was Carlisle United?
CREATE TABLE table_name_32 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_32 WHERE date = "27 january 1968" AND away_team = "carlisle united"
What year did Thorleif Haug win the Winter Olympics?
CREATE TABLE table_174491_1 (winter_olympics VARCHAR, winner VARCHAR)
SELECT winter_olympics FROM table_174491_1 WHERE winner = "Thorleif Haug"
What was the final score of the game played on July 10?
CREATE TABLE table_21796261_4 (final_score VARCHAR, date VARCHAR)
SELECT final_score FROM table_21796261_4 WHERE date = "July 10"
Which Record is on july 31?
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_23 WHERE date = "july 31"
What is Place, when Player is "Mike Souchak"?
CREATE TABLE table_name_68 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_68 WHERE player = "mike souchak"
What is listed for the Class that's got a Team of Cagiva and Points of 4?
CREATE TABLE table_name_17 (class VARCHAR, team VARCHAR, points VARCHAR)
SELECT class FROM table_name_17 WHERE team = "cagiva" AND points = 4
Opponent of new england patriots had what attendance?
CREATE TABLE table_name_13 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_13 WHERE opponent = "new england patriots"
for the name of joe surratt what is the last update?
CREATE TABLE table_name_75 (last_update VARCHAR, name VARCHAR)
SELECT last_update FROM table_name_75 WHERE name = "joe surratt"
Which format had a United States region and a date of August 11, 2009?
CREATE TABLE table_name_92 (format VARCHAR, region VARCHAR, date VARCHAR)
SELECT format FROM table_name_92 WHERE region = "united states" AND date = "august 11, 2009"
When the longitude is 147.1w what is the namesake of the feature?
CREATE TABLE table_16768245_2 (namesake VARCHAR, longitude VARCHAR)
SELECT namesake FROM table_16768245_2 WHERE longitude = "147.1W"
What is the total interview score a contestant from Indiana with an average smaller than 8.3 has?
CREATE TABLE table_name_36 (interview VARCHAR, state VARCHAR, average VARCHAR)
SELECT COUNT(interview) FROM table_name_36 WHERE state = "indiana" AND average < 8.3
who is the the mixed doubles with year being 1972
CREATE TABLE table_13857700_1 (mixed_doubles VARCHAR, year VARCHAR)
SELECT mixed_doubles FROM table_13857700_1 WHERE year = 1972
Which Home team score is on sunday 24 february?
CREATE TABLE table_name_74 (home_team VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_74 WHERE date = "sunday 24 february"
Who was South Melbourne's away team opponents?
CREATE TABLE table_name_70 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_70 WHERE home_team = "south melbourne"
Which Country has a To par of −2? Question 2
CREATE TABLE table_name_20 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_20 WHERE to_par = "−2"
What was the final score on week 14 ?
CREATE TABLE table_name_53 (final_score VARCHAR, week VARCHAR)
SELECT final_score FROM table_name_53 WHERE week = 14
Name the degree for otorhinolaryngology
CREATE TABLE table_19304764_2 (degree_diploma VARCHAR, discipline VARCHAR)
SELECT degree_diploma FROM table_19304764_2 WHERE discipline = "Otorhinolaryngology"
When the first quarter is procter & gamble 138,013, what is the rank?
CREATE TABLE table_name_15 (rank VARCHAR, first_quarter VARCHAR)
SELECT rank FROM table_name_15 WHERE first_quarter = "procter & gamble 138,013"