answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_92 WHERE week < 14 AND opponent = "san francisco 49ers"
Which date has a Week smaller than 14, and an Opponent of san francisco 49ers?
CREATE TABLE table_name_92 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT model FROM table_name_82 WHERE number_built < 6.526 AND chassis_code = "w109.015"
What model has a number built smaller than 6.526, and the Chassis code w109.015?
CREATE TABLE table_name_82 (model VARCHAR, number_built VARCHAR, chassis_code VARCHAR)
SELECT visitor FROM table_name_96 WHERE date = "march 21"
Who was the visitor on march 21?
CREATE TABLE table_name_96 (visitor VARCHAR, date VARCHAR)
SELECT episode FROM table_13943239_1 WHERE viewers__millions_ = "6.06"
What episode of the Pride of Britain Awards had an audience of 6.06 million viewers?
CREATE TABLE table_13943239_1 (episode VARCHAR, viewers__millions_ VARCHAR)
SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line'
Find the captain rank that has no captain in Third-rate ship of the line class.
CREATE TABLE captain (rank VARCHAR, CLASS VARCHAR)
SELECT name FROM table_name_61 WHERE pick__number = 25 AND overall = 207
Pick # of 25, and an Overall of 207 has what name?
CREATE TABLE table_name_61 (name VARCHAR, pick__number VARCHAR, overall VARCHAR)
SELECT nation FROM table_name_60 WHERE athlete = "bianca knight"
what nation is bianca knight the answer for?
CREATE TABLE table_name_60 (nation VARCHAR, athlete VARCHAR)
SELECT designated_home FROM table_name_53 WHERE television = "fox" AND year > 2007 AND date = "october 23"
Who were the home team during the game that aired on Fox after 2007 on October 23?
CREATE TABLE table_name_53 (designated_home VARCHAR, date VARCHAR, television VARCHAR, year VARCHAR)
SELECT MIN(_percentage_funded) FROM table_27155990_1 WHERE closing_date = "2012-05-18"
What was the minimum % funded of the project that was closed on 2012-05-18?
CREATE TABLE table_27155990_1 (_percentage_funded INTEGER, closing_date VARCHAR)
SELECT SUM(visitors), _2007 FROM table_name_10 WHERE type = "ski jumping hill"
How many visitors in 2007 were there for ski jumping hill?
CREATE TABLE table_name_10 (_2007 VARCHAR, visitors INTEGER, type VARCHAR)
SELECT MAX(lost) FROM table_name_94 WHERE drawn > 12 AND goals_against = 54
Which Lost has Drawn larger than 12, and Goals Against of 54?
CREATE TABLE table_name_94 (lost INTEGER, drawn VARCHAR, goals_against VARCHAR)
SELECT MIN(hong_kong) FROM table_name_52 WHERE brisbane = 0 AND kuala_lumpur > 0
What is the lowest Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value?
CREATE TABLE table_name_52 (hong_kong INTEGER, brisbane VARCHAR, kuala_lumpur VARCHAR)
SELECT capacity FROM table_name_95 WHERE opened < 1937 AND region = "champagne-ardenne"
What capacity opened lessed than 1937 and is located in the region of champagne-ardenne?
CREATE TABLE table_name_95 (capacity VARCHAR, opened VARCHAR, region VARCHAR)
SELECT name FROM table_name_13 WHERE authority = "state" AND roll = "72"
What is the Name of a state Authority that has a Roll of 72?
CREATE TABLE table_name_13 (name VARCHAR, authority VARCHAR, roll VARCHAR)
SELECT bats_throws FROM table_name_9 WHERE players = "ryan overland"
What side does Ryan Overland Bat/Throws from?
CREATE TABLE table_name_9 (bats_throws VARCHAR, players VARCHAR)
SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury'
Give me the names of members whose address is in Harford or Waterbury.
CREATE TABLE member (name VARCHAR, address VARCHAR)
SELECT player FROM table_28846752_9 WHERE economy = "5.29"
Who is the player when the economy is 5.29?
CREATE TABLE table_28846752_9 (player VARCHAR, economy VARCHAR)
SELECT record FROM table_name_55 WHERE date = "december 18"
Which Record has a Date on december 18?
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR)
SELECT result FROM table_22118197_1 WHERE portuguese_title = "Um Filme Falado"
What was the result of the film with the Portuguese title, Um Filme Falado?
CREATE TABLE table_22118197_1 (result VARCHAR, portuguese_title VARCHAR)
SELECT MIN(grid) FROM table_name_3 WHERE manufacturer = "yamaha"
What is the lowest grid number for Yamaha?
CREATE TABLE table_name_3 (grid INTEGER, manufacturer VARCHAR)
SELECT weight FROM table_name_31 WHERE club = "uralochka zlatoust" AND date_of_birth = "1981-02-24"
What is the Weight of the person born 1981-02-24 from the Uralochka Zlatoust club ?
CREATE TABLE table_name_31 (weight VARCHAR, club VARCHAR, date_of_birth VARCHAR)
SELECT season FROM table_name_6 WHERE rating = "+98"
Which season was one of the players rated +98?
CREATE TABLE table_name_6 (season VARCHAR, rating VARCHAR)
SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Katsuhiro" AND t1.lname = "Ueno"
Which institution does "Katsuhiro Ueno" belong to?
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE inst (name VARCHAR, instid VARCHAR)
SELECT MAX(_number) FROM table_11235334_2 WHERE air_date = "September 29, 2008"
what is the most # that aired on september 29, 2008?
CREATE TABLE table_11235334_2 (_number INTEGER, air_date VARCHAR)
SELECT poles FROM table_name_47 WHERE position = "8th"
Which poles were there for the 8th position?
CREATE TABLE table_name_47 (poles VARCHAR, position VARCHAR)
SELECT korean_dialect FROM table_name_18 WHERE rr_romaja = "jeolla"
What is the Korean dialect with a jeolla RR Romaja?
CREATE TABLE table_name_18 (korean_dialect VARCHAR, rr_romaja VARCHAR)
SELECT season FROM table_name_87 WHERE cup_apps = 6 AND cup_goals = 5
What season saw 6 cup apps and 5 cup goals?
CREATE TABLE table_name_87 (season VARCHAR, cup_apps VARCHAR, cup_goals VARCHAR)
SELECT wind FROM table_name_69 WHERE result = "21.69"
What kind of Wind has a Result of 21.69?
CREATE TABLE table_name_69 (wind VARCHAR, result VARCHAR)
SELECT date FROM table_name_83 WHERE home_team = "essendon"
What date did Essendon play as the home team?
CREATE TABLE table_name_83 (date VARCHAR, home_team VARCHAR)
SELECT played FROM table_name_50 WHERE points_difference = "+261"
Which Played has a Points difference of +261?
CREATE TABLE table_name_50 (played VARCHAR, points_difference VARCHAR)
SELECT winner FROM table_name_67 WHERE city = "punta del este"
What is the Winner of the Event in Punta del Este?
CREATE TABLE table_name_67 (winner VARCHAR, city VARCHAR)
SELECT name FROM table_name_84 WHERE lane = 6 AND mark = "2:05.58 sb"
Who was in lane 6 with a mark of 2:05.58 SB?
CREATE TABLE table_name_84 (name VARCHAR, lane VARCHAR, mark VARCHAR)
SELECT MAX(founded) FROM table_255188_1 WHERE joined = 1978
When was the University founded that joined in 1978?
CREATE TABLE table_255188_1 (founded INTEGER, joined VARCHAR)
SELECT district FROM table_1341453_7 WHERE incumbent = "Bill Thomas"
What district is bill thomas from?
CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR)
SELECT MAX(crowd) FROM table_name_98 WHERE home_team = "melbourne"
What is the largest crowd when melbourne plays at home?
CREATE TABLE table_name_98 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(grid) FROM table_name_38 WHERE time_retired = "+1 lap" AND driver = "johnny herbert"
What is the average grid for johnny herbert with a Time/Retired of +1 lap?
CREATE TABLE table_name_38 (grid INTEGER, time_retired VARCHAR, driver VARCHAR)
SELECT position_in_table FROM table_26914854_3 WHERE date_of_vacancy = "4 January 2011"
What is the position in table when the date of vacancy was 4 january 2011?
CREATE TABLE table_26914854_3 (position_in_table VARCHAR, date_of_vacancy VARCHAR)
SELECT association FROM table_name_30 WHERE horse_1 = "estribillo ii"
With which association did estribillo ii run as Horse 1?
CREATE TABLE table_name_30 (association VARCHAR, horse_1 VARCHAR)
SELECT AVG(rank) FROM table_name_70 WHERE gold < 0
What is the rank where the gold is 0?
CREATE TABLE table_name_70 (rank INTEGER, gold INTEGER)
SELECT won FROM table_17625749_3 WHERE lost = "5"
How many were won when 5 were lost?
CREATE TABLE table_17625749_3 (won VARCHAR, lost VARCHAR)
SELECT spectral_type FROM table_10432351_1 WHERE star__pismis24__number_ = "1SW"
What are all the spectral types for star mismis24-# is 1sw?
CREATE TABLE table_10432351_1 (spectral_type VARCHAR, star__pismis24__number_ VARCHAR)
SELECT SUM(games) FROM table_name_75 WHERE lost > 2 AND points < 0
What's the total of Games with a Lost that's larger than 2, and has Points that's smaller than 0?
CREATE TABLE table_name_75 (games INTEGER, lost VARCHAR, points VARCHAR)
SELECT MIN(total_horses) FROM table_name_65 WHERE total_cattle < 6274.1 AND oxen < 156.5 AND bulls = "40.0" AND cows < 3377
What was the lowest total number of horses that has a total cattle smaller than 6274.1, and a oxen smaller than 156.5, and a bulls of 40.0, and fewer than 3377 cows?
CREATE TABLE table_name_65 (total_horses INTEGER, cows VARCHAR, bulls VARCHAR, total_cattle VARCHAR, oxen VARCHAR)
SELECT MAX(game) FROM table_name_92 WHERE record = "21-30-11"
What is the highest Game, when Record is "21-30-11"?
CREATE TABLE table_name_92 (game INTEGER, record VARCHAR)
SELECT Name FROM Artwork WHERE NOT Artwork_ID IN (SELECT Artwork_ID FROM nomination)
List the name of artworks that are not nominated.
CREATE TABLE nomination (Name VARCHAR, Artwork_ID VARCHAR); CREATE TABLE Artwork (Name VARCHAR, Artwork_ID VARCHAR)
SELECT MAX(rebounds) FROM table_name_69 WHERE steals = 0.9 AND turnovers < 1.4
What is the maximum rebounds when there are 0.9 steals and fewer than 1.4 turnovers?
CREATE TABLE table_name_69 (rebounds INTEGER, steals VARCHAR, turnovers VARCHAR)
SELECT bleeding_time FROM table_14006_1 WHERE partial_thromboplastin_time = "Unaffected" AND condition = "Liver failure , early"
what's the bleeding time with partial thromboplastin time being unaffected and condition being liver failure , early
CREATE TABLE table_14006_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR)
SELECT mascot FROM table_name_7 WHERE principal__2013_2014_ = "frank hendricsen"
What was the mascot for the 2013-2014 principal named Frank Hendricsen?
CREATE TABLE table_name_7 (mascot VARCHAR, principal__2013_2014_ VARCHAR)
SELECT result FROM table_name_43 WHERE film_title_used_in_nomination = "kuei-mei, a woman"
What is Result, when Film Title Used In Nomination is "Kuei-Mei, A Woman"?
CREATE TABLE table_name_43 (result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT champion FROM table_name_33 WHERE israel_bowl = "iv"
Name the champion for israel bowl of iv
CREATE TABLE table_name_33 (champion VARCHAR, israel_bowl VARCHAR)
SELECT surface FROM table_name_1 WHERE opponents_in_the_final = "kathleen horvath marcella mesker"
On what surface was the tournament with opponents kathleen horvath marcella mesker in the finals?
CREATE TABLE table_name_1 (surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT score FROM table_name_93 WHERE country = "united states" AND player = "arnold palmer"
What is Score, when Country is United States, and when Player is "Arnold Palmer"?
CREATE TABLE table_name_93 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT arabs FROM table_25947046_1 WHERE annual_population_growth_rate = "1.7%"
What is the arabs when the annual population growth rate is 1.7%?
CREATE TABLE table_25947046_1 (arabs VARCHAR, annual_population_growth_rate VARCHAR)
SELECT licensee FROM table_1949746_1 WHERE city_of_license = "Portsmouth"
When portsmouth is the city of license who is the licensee?
CREATE TABLE table_1949746_1 (licensee VARCHAR, city_of_license VARCHAR)
SELECT score FROM table_name_49 WHERE date = "april 18"
What was the score on April 18?
CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR)
SELECT team FROM table_name_55 WHERE class = "c1" AND laps > 331 AND year > 1990
What team was c1 class, had over 331 laps after 1990?
CREATE TABLE table_name_55 (team VARCHAR, year VARCHAR, class VARCHAR, laps VARCHAR)
SELECT location FROM table_1176371_1 WHERE la_matches = 7 AND name_of_ground = "Ropery Lane"
Where is ropery lane and la matches 7 location?
CREATE TABLE table_1176371_1 (location VARCHAR, la_matches VARCHAR, name_of_ground VARCHAR)
SELECT AVG(round) FROM table_name_13 WHERE name = "bob randall"
What is the round for bob randall?
CREATE TABLE table_name_13 (round INTEGER, name VARCHAR)
SELECT year FROM table_name_16 WHERE circuit = "kyalami" AND winning_constructor = "ferrari"
What year did Ferrari win the Kyalami circuit?
CREATE TABLE table_name_16 (year VARCHAR, circuit VARCHAR, winning_constructor VARCHAR)
SELECT games_covered FROM table_name_41 WHERE round = "divisional finals"
What Games covered had a round of divisional finals?
CREATE TABLE table_name_41 (games_covered VARCHAR, round VARCHAR)
SELECT record FROM table_name_3 WHERE game = 11
what team has a score of 11
CREATE TABLE table_name_3 (record VARCHAR, game VARCHAR)
SELECT MIN(losses) FROM table_name_28 WHERE wins = 3 AND against > 1919
How many losses for the team with 3 wins and more than 1919 against?
CREATE TABLE table_name_28 (losses INTEGER, wins VARCHAR, against VARCHAR)
SELECT original_club FROM table_26218124_1 WHERE name = "Newcastle Falcons"
Which club was originally named the newcastle falcons?
CREATE TABLE table_26218124_1 (original_club VARCHAR, name VARCHAR)
SELECT MAX(game) FROM table_23285805_4 WHERE record = "5-5"
If the record is 5-5, what is the game maximum?
CREATE TABLE table_23285805_4 (game INTEGER, record VARCHAR)
SELECT COUNT(game) FROM table_27756164_2 WHERE high_rebounds = "Roy Hibbert (16)"
In how many different games did Roy Hibbert (16) did the most high rebounds?
CREATE TABLE table_27756164_2 (game VARCHAR, high_rebounds VARCHAR)
SELECT MAX(season) FROM table_name_34 WHERE team = "prema powerteam" AND series = "masters of formula three"
What is the most recent season for the Prema Powerteam with a Masters of Formula Three series?
CREATE TABLE table_name_34 (season INTEGER, team VARCHAR, series VARCHAR)
SELECT 2013 FROM table_name_29 WHERE 2012 = "2r" AND 2009 = "2r"
What shows for 2013 when the 2012 is 2r, and a 2009 is 2r?
CREATE TABLE table_name_29 (Id VARCHAR)
SELECT date FROM table_name_60 WHERE result = "win" AND round < 2 AND opponent = "myron greenberg"
Which Date has a Result of win, and a Round smaller than 2, and an Opponent of myron greenberg?
CREATE TABLE table_name_60 (date VARCHAR, opponent VARCHAR, result VARCHAR, round VARCHAR)
SELECT avg_g FROM table_name_74 WHERE season = "2009"
What was the Av/G of the 2009 season?
CREATE TABLE table_name_74 (avg_g VARCHAR, season VARCHAR)
SELECT MAX(drawn) FROM table_name_17 WHERE position = 14 AND goals_for > 66
What is the largest drawn number when 14 is the position, and goals for is more than 66?
CREATE TABLE table_name_17 (drawn INTEGER, position VARCHAR, goals_for VARCHAR)
SELECT COUNT(diff) FROM table_name_50 WHERE lost < 5 AND points < 32
What is the difference with a loss smaller than 5 and points lower than 32?
CREATE TABLE table_name_50 (diff VARCHAR, lost VARCHAR, points VARCHAR)
SELECT SUM(a_score) FROM table_name_74 WHERE e_score > 9.383 AND total < 19.716 AND t_score > 4
What was the total of A Score when the E Score was greater than 9.383, total was less than 19.716 and the T Score was larger than 4?
CREATE TABLE table_name_74 (a_score INTEGER, t_score VARCHAR, e_score VARCHAR, total VARCHAR)
SELECT original_air_date FROM table_22904780_1 WHERE written_by = "Russel Friend & Garrett Lerner"
List the 1st air date for the show where the writers are russel friend & garrett lerner.
CREATE TABLE table_22904780_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT COUNT(rank) FROM table_name_46 WHERE city = "sewri"
What is the rank for the city of sewri?
CREATE TABLE table_name_46 (rank VARCHAR, city VARCHAR)
SELECT college_junior_club_team FROM table_2781227_7 WHERE nhl_team = "Pittsburgh Penguins"
What college team did the pick for Pittsburgh Penguins come from?
CREATE TABLE table_2781227_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT manufacturer FROM table_name_53 WHERE laps < 28 AND grid < 9 AND rider = "jeremy mcwilliams"
Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams?
CREATE TABLE table_name_53 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT d_46_√ FROM table_name_94 WHERE d_41_√ = "d 38 √"
What is the D 46 √ with a D 41 √ with d 38 √?
CREATE TABLE table_name_94 (d_46_√ VARCHAR, d_41_√ VARCHAR)
SELECT 2 AS nd_party FROM table_name_17 WHERE election = "1857"
Which 2nd Party has a Election of 1857?
CREATE TABLE table_name_17 (election VARCHAR)
SELECT player FROM table_name_69 WHERE position = "shooting guard"
Which Player is the shooting guard?
CREATE TABLE table_name_69 (player VARCHAR, position VARCHAR)
SELECT SUM(draw) FROM table_name_59 WHERE lost = 0 AND goals_scored > 0
Count the Draw which has Lost of 0, and a Goals Scored larger than 0?
CREATE TABLE table_name_59 (draw INTEGER, lost VARCHAR, goals_scored VARCHAR)
SELECT date FROM table_name_1 WHERE visitor = "bulls"
When has a Visitor of bulls?
CREATE TABLE table_name_1 (date VARCHAR, visitor VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_11 WHERE player = "brendan locke"
What is Brendan Locke's College/Junior/Club Team (League)?
CREATE TABLE table_name_11 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT MIN(lost) FROM table_name_30 WHERE points_1 = "37" AND goals_against < 60
How many times did the team lose who had 1 of 37 points and less than 60 goals against?
CREATE TABLE table_name_30 (lost INTEGER, points_1 VARCHAR, goals_against VARCHAR)
SELECT MIN(year) FROM table_name_14 WHERE finish = 29 AND start < 24
What is the lowest Year, when Finish is "29", and when Start is less than 24?
CREATE TABLE table_name_14 (year INTEGER, finish VARCHAR, start VARCHAR)
SELECT AVG(gold) FROM table_name_37 WHERE nation = "brazil" AND total > 55
How many gold medals did Brazil win with a total of more than 55 medals?
CREATE TABLE table_name_37 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT COUNT(points) FROM table_name_51 WHERE tries = 0 AND appearance < 0
How many times is tries 0 and appearance less than 0?
CREATE TABLE table_name_51 (points VARCHAR, tries VARCHAR, appearance VARCHAR)
SELECT opponent FROM table_name_57 WHERE date = "july 21, 2008"
Which opponent was on July 21, 2008?
CREATE TABLE table_name_57 (opponent VARCHAR, date VARCHAR)
SELECT notes FROM table_name_52 WHERE rank = 1
What are the notes of the number 1 rank?
CREATE TABLE table_name_52 (notes VARCHAR, rank VARCHAR)
SELECT round FROM table_name_1 WHERE college = "connecticut"
In what Round was a player from College of Connecticut drafted?
CREATE TABLE table_name_1 (round VARCHAR, college VARCHAR)
SELECT away_team FROM table_name_74 WHERE home_team = "richmond"
I want to see the away team the has a home team of richmond
CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)
SELECT AVG(car__number) FROM table_name_93 WHERE make = "toyota" AND pos = 7
Which Car # has a Make of toyota, and a Pos of 7?
CREATE TABLE table_name_93 (car__number INTEGER, make VARCHAR, pos VARCHAR)
SELECT nationality FROM table_name_27 WHERE lane < 3 AND time = 49.04
for the time of 49.04 and lane less than 3, what is the nationality?
CREATE TABLE table_name_27 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT stereo FROM table_name_37 WHERE call = "wpeo"
Is WPEO in stereo?
CREATE TABLE table_name_37 (stereo VARCHAR, call VARCHAR)
SELECT MIN(long) FROM table_name_51 WHERE yards = 26
What was the lowest long with 26 yards?
CREATE TABLE table_name_51 (long INTEGER, yards VARCHAR)
SELECT date FROM table_name_88 WHERE opponent = "denver broncos"
Opponent of denver broncos happened on what date?
CREATE TABLE table_name_88 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(highest) FROM table_11206916_1 WHERE team = "Stenhousemuir"
The stenhousemuir team had how many highest attendances?
CREATE TABLE table_11206916_1 (highest VARCHAR, team VARCHAR)
SELECT pts FROM table_14139408_1 WHERE team = "Kopron team Scot"
what's the pts with team being kopron team scot
CREATE TABLE table_14139408_1 (pts VARCHAR, team VARCHAR)
SELECT location FROM table_name_14 WHERE winner = "shocker"
What is the location where shocker was the winner?
CREATE TABLE table_name_14 (location VARCHAR, winner VARCHAR)
SELECT T1.course_name, T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = "Computer Science"
Find the names and descriptions of courses that belong to the subject named "Computer Science".
CREATE TABLE Courses (course_name VARCHAR, course_description VARCHAR, subject_id VARCHAR); CREATE TABLE Subjects (subject_id VARCHAR, subject_name VARCHAR)
SELECT no_of_processors FROM table_27765443_2 WHERE period_of_operation = "October 2006 - January 2010"
Name the number of processors for october 2006 - january 2010
CREATE TABLE table_27765443_2 (no_of_processors VARCHAR, period_of_operation VARCHAR)