answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT position FROM table_name_1 WHERE team = "morristown minutemen"
Which position was morristown minutemen in?
CREATE TABLE table_name_1 (position VARCHAR, team VARCHAR)
SELECT MAX(week) FROM table_name_61 WHERE attendance = "73,572"
What is the week with attendance of 73,572?
CREATE TABLE table_name_61 (week INTEGER, attendance VARCHAR)
SELECT COUNT(rainfall_by_depth__mm_year_) FROM table_25983027_1 WHERE infiltration__km_3__year_ = "9.3"
How many regions had rainfall infiltration (km 3/year) of 9.3?
CREATE TABLE table_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, infiltration__km_3__year_ VARCHAR)
SELECT position FROM table_2886617_8 WHERE nhl_team = "Toronto Maple Leafs"
What position did the draft pick for Toronto Maple Leafs play?
CREATE TABLE table_2886617_8 (position VARCHAR, nhl_team VARCHAR)
SELECT AVG(final_rank) FROM table_name_8 WHERE lose > 10 AND point < 43
Tell me the average final rank for loe more than 10 and point less than 43
CREATE TABLE table_name_8 (final_rank INTEGER, lose VARCHAR, point VARCHAR)
SELECT nickname FROM table_11658094_3 WHERE enrollment = 2386
What is the nickname of the school with an enrollment of 2386?
CREATE TABLE table_11658094_3 (nickname VARCHAR, enrollment VARCHAR)
SELECT MAX(laps) FROM table_name_3 WHERE grid < 4 AND time_retired = "+ 1 lap"
What is the high lap total that has a grid of less than 4 and a Time/Retired of + 1 lap?
CREATE TABLE table_name_3 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT trans_1 FROM table_name_28 WHERE total_time = "2:00:40.20"
How long did the trans 1 take when 2:00:40.20 is the total time?
CREATE TABLE table_name_28 (trans_1 VARCHAR, total_time VARCHAR)
SELECT uk_base FROM table_name_9 WHERE troop_carrier_group = "441st tcg" AND serial = "14"
Which UK base has 441st tcg Troop carrier group and 14 as their seir serial?
CREATE TABLE table_name_9 (uk_base VARCHAR, troop_carrier_group VARCHAR, serial VARCHAR)
SELECT goals FROM table_name_6 WHERE player = "mike eruzione"
How many goals does Mike Eruzione have in total?
CREATE TABLE table_name_6 (goals VARCHAR, player VARCHAR)
SELECT ground FROM table_name_59 WHERE away_team = "sydney"
What was the ground for away team sydney?
CREATE TABLE table_name_59 (ground VARCHAR, away_team VARCHAR)
SELECT high_rebounds FROM table_name_29 WHERE date = "april 14"
What was the high rebounds from the date of April 14?
CREATE TABLE table_name_29 (high_rebounds VARCHAR, date VARCHAR)
SELECT opponent FROM table_27877656_7 WHERE edition = "2009 Europe/Africa Group IIIB" AND opponent_team = "Armenia"
For armenia as opponent team and edition is 2009 europe/africa group iiib mention all the opponent
CREATE TABLE table_27877656_7 (opponent VARCHAR, edition VARCHAR, opponent_team VARCHAR)
SELECT first_elected FROM table_1805191_10 WHERE district = "Florida 19"
When is the first elected in the Florida 19 district?
CREATE TABLE table_1805191_10 (first_elected VARCHAR, district VARCHAR)
SELECT gswr_class FROM table_name_80 WHERE year = "1893"
Which GSWR Class is from 1893?
CREATE TABLE table_name_80 (gswr_class VARCHAR, year VARCHAR)
SELECT COUNT(total) FROM table_name_74 WHERE bronze > 1 AND nation = "west germany" AND gold > 2
What is the total number of medals for West Germany with more than 1 bronze medal and more than 2 gold medals?
CREATE TABLE table_name_74 (total VARCHAR, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT transfer_fee FROM table_name_23 WHERE name = "rory loy"
What is the transfer fee for rory loy?
CREATE TABLE table_name_23 (transfer_fee VARCHAR, name VARCHAR)
SELECT home FROM table_name_27 WHERE attendance = 3305
Who was the home team with 3305 in attendance?
CREATE TABLE table_name_27 (home VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_7 WHERE winning_score = −6(69 - 69 - 73 - 71 = 282)
When was the winning score −6 (69-69-73-71=282)?
CREATE TABLE table_name_7 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_16388398_1 WHERE ground = "Manuka Oval"
When was the game played on Manuka Oval?
CREATE TABLE table_16388398_1 (date VARCHAR, ground VARCHAR)
SELECT high_points FROM table_27756014_6 WHERE team = "Houston"
Who scored the most points when the Bucks played against Houston?
CREATE TABLE table_27756014_6 (high_points VARCHAR, team VARCHAR)
SELECT length FROM table_30062172_3 WHERE round = 1 AND gt3_winner = "David Ashburn Richard Westbrook"
When david ashburn richard westbrook is the gt3 winner and 1 is the round what is the length?
CREATE TABLE table_30062172_3 (length VARCHAR, round VARCHAR, gt3_winner VARCHAR)
SELECT COUNT(series_percent) FROM table_name_63 WHERE total_attempted < 49 AND percent_made = 0.777
what is the total series percent that has total attempted less than 49, and a percent made of 0.777
CREATE TABLE table_name_63 (series_percent VARCHAR, total_attempted VARCHAR, percent_made VARCHAR)
SELECT laps FROM table_name_82 WHERE grid > 14 AND time = "+33.150"
How many laps did the rider with a grid larger than 14 and a time of +33.150 have?
CREATE TABLE table_name_82 (laps VARCHAR, grid VARCHAR, time VARCHAR)
SELECT date FROM table_name_48 WHERE record = "33.952"
What is the Date that has a Record of 33.952?
CREATE TABLE table_name_48 (date VARCHAR, record VARCHAR)
SELECT segment_c FROM table_name_54 WHERE segment_b = "fish food"
Which Segment C has a Segment B of fish food?
CREATE TABLE table_name_54 (segment_c VARCHAR, segment_b VARCHAR)
SELECT date FROM table_name_25 WHERE week = "11"
When does week 11 start?
CREATE TABLE table_name_25 (date VARCHAR, week VARCHAR)
SELECT score FROM table_name_6 WHERE tie_no = "21"
What was the score for a no. 21 tie?
CREATE TABLE table_name_6 (score VARCHAR, tie_no VARCHAR)
SELECT MIN AS $50___1_2_oz FROM table_name_59 WHERE year = 1997 AND $25___1_4_oz > 27 OFFSET 100
WHAT IS THE LOWEST $50-1/2 OZ COIN WITH A 1997 YEAR AND $25-1/4 OZ LARGER THAN $27,100?
CREATE TABLE table_name_59 (MIN VARCHAR, year VARCHAR, $25___1_4_oz VARCHAR)
SELECT denis_nizhegorodov___rus__ FROM table_24059973_3 WHERE world_record = "North American record"
When north american record is the world record who is the denis nizhegorodov ( rus )?
CREATE TABLE table_24059973_3 (denis_nizhegorodov___rus__ VARCHAR, world_record VARCHAR)
SELECT type FROM table_2562572_25 WHERE cyrillic_name_other_names = "Оџаци"
When оџаци is the cyrillic name other names what is the type?
CREATE TABLE table_2562572_25 (type VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT stage FROM table_name_90 WHERE route = "boulogne-billancourt"
Which stage took the tour through Boulogne-Billancourt?
CREATE TABLE table_name_90 (stage VARCHAR, route VARCHAR)
SELECT home FROM table_name_34 WHERE date = "april 14"
Where was the home court on April 14?
CREATE TABLE table_name_34 (home VARCHAR, date VARCHAR)
SELECT MAX(district) FROM table_26131768_4 WHERE representative = "Barbara Sears"
If the Representative is Barbara sears, what is the district number?
CREATE TABLE table_26131768_4 (district INTEGER, representative VARCHAR)
SELECT COUNT(written_by) FROM table_29219286_1 WHERE directed_by = "Ernest Dickerson" AND no_in_season = 9
How many people wrote episode 9 in the season that was directed by Ernest Dickerson?
CREATE TABLE table_29219286_1 (written_by VARCHAR, directed_by VARCHAR, no_in_season VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city_of_license = "portales, new mexico"
What is average frequency MHZ when is in portales, new mexico?
CREATE TABLE table_name_13 (frequency_mhz INTEGER, city_of_license VARCHAR)
SELECT trofeo_fast_team FROM table_name_58 WHERE winner = "roberto visentini"
Name the Trofeo Fast team for roberto visentini
CREATE TABLE table_name_58 (trofeo_fast_team VARCHAR, winner VARCHAR)
SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games"
What was the platform when the developer was Telltale Games?
CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR)
SELECT founded FROM table_name_97 WHERE club = "no coast derby girls"
Which Founded that has a Club of no coast derby girls?
CREATE TABLE table_name_97 (founded VARCHAR, club VARCHAR)
SELECT leading_scorer FROM table_name_44 WHERE date = "20 february 2008"
Who was the leading scorer of the game on 20 February 2008?
CREATE TABLE table_name_44 (leading_scorer VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT StuID) FROM Sportsinfo
How many students play sports?
CREATE TABLE Sportsinfo (StuID VARCHAR)
SELECT MIN(experts_view) FROM table_1855342_5 WHERE willing_to_take_risks = 25
When 25 are willing to take risks, what is the experts view?
CREATE TABLE table_1855342_5 (experts_view INTEGER, willing_to_take_risks VARCHAR)
SELECT studio FROM table_name_74 WHERE role = "john scott"
Name the studio for john scott
CREATE TABLE table_name_74 (studio VARCHAR, role VARCHAR)
SELECT innovation FROM table_23050383_1 WHERE economic_incentive_regime = "7.14"
What is the innovation when the economic incentive grime is 7.14?
CREATE TABLE table_23050383_1 (innovation VARCHAR, economic_incentive_regime VARCHAR)
SELECT notes FROM table_name_48 WHERE rank < 2
What were the notes for the player who finished with a rank smaller than 2?
CREATE TABLE table_name_48 (notes VARCHAR, rank INTEGER)
SELECT гә_гә_[ɡʷ] FROM table_202365_2 WHERE ҕь_ҕь_[ʁʲ_ɣʲ] = "Ҭә ҭә [tʷʰ]"
what is гә гә [ɡʷ] when ҕь ҕь [ʁʲ/ɣʲ] is ҭә ҭә [tʷʰ]?
CREATE TABLE table_202365_2 (гә_гә_ VARCHAR, ɡʷ VARCHAR, ҕь_ҕь_ VARCHAR, ʁʲ_ɣʲ VARCHAR)
SELECT team_1 FROM table_name_13 WHERE agg = "1-1 1"
Which Team 1 has an aggregate score of 1-1 1?
CREATE TABLE table_name_13 (team_1 VARCHAR, agg VARCHAR)
SELECT COUNT(pick__number) FROM table_name_80 WHERE reg_gp > 0
What is the total of pick numbers with a Reg GP larger than 0?
CREATE TABLE table_name_80 (pick__number VARCHAR, reg_gp INTEGER)
SELECT try_bonus FROM table_12886178_4 WHERE tries_against = "83"
What's the try bonus count for the club whose tries against count is 83?
CREATE TABLE table_12886178_4 (try_bonus VARCHAR, tries_against VARCHAR)
SELECT score FROM table_17432028_1 WHERE record = "2-5"
Name the score for record of 2-5
CREATE TABLE table_17432028_1 (score VARCHAR, record VARCHAR)
SELECT ceased_to_be_duke_of_girona FROM table_name_91 WHERE heir_of = "peter iv"
WHAT IS THE Ceased to be Duke of Girona THAT HAS PETER IV?
CREATE TABLE table_name_91 (ceased_to_be_duke_of_girona VARCHAR, heir_of VARCHAR)
SELECT film_name FROM table_name_50 WHERE year > 1972 AND language = "hindi" AND lyricist = "ravindra jain" AND music_director = "ravindra jain"
What 1972 Hindi film had Ravindra Jain directing the music?
CREATE TABLE table_name_50 (film_name VARCHAR, music_director VARCHAR, lyricist VARCHAR, year VARCHAR, language VARCHAR)
SELECT 2008 FROM table_name_87 WHERE 2006 = "2nd"
What is the 2008 value that was 2nd in 2006?
CREATE TABLE table_name_87 (Id VARCHAR)
SELECT venue FROM table_name_3 WHERE away_team = "collingwood"
Where was Collingwood's away game played?
CREATE TABLE table_name_3 (venue VARCHAR, away_team VARCHAR)
SELECT AVG(fa_cup) FROM table_name_72 WHERE name = "whelan" AND total > 7
What is the average number of goals scored in the FA Cup by Whelan where he had more than 7 total goals?
CREATE TABLE table_name_72 (fa_cup INTEGER, name VARCHAR, total VARCHAR)
SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004
List the campus that have between 600 and 1000 faculty lines in year 2004.
CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (campus VARCHAR, faculty VARCHAR)
SELECT playing_for FROM table_name_95 WHERE opponent = "deportes savio" AND date = "2010-03-11"
who is playing for when the opponent is deportes savio and the date is 2010-03-11?
CREATE TABLE table_name_95 (playing_for VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT MIN(year) FROM table_24901152_2 WHERE championship = "Australian Open"
When Australian open is the championship what is the lowest year?
CREATE TABLE table_24901152_2 (year INTEGER, championship VARCHAR)
SELECT MAX(round) FROM table_name_63 WHERE pick > 114 AND player = "jerry corcoran"
What round was jerry corcoran drafted in as pick number 114?
CREATE TABLE table_name_63 (round INTEGER, pick VARCHAR, player VARCHAR)
SELECT constructor FROM table_name_52 WHERE engine_† = "cosworth cr-2" AND driver = "luciano burti"
What constructor has an engine of cosworth cr-2 and a driver of luciano burti?
CREATE TABLE table_name_52 (constructor VARCHAR, engine_† VARCHAR, driver VARCHAR)
SELECT MAX(points) FROM table_name_30 WHERE played > 5
What is the highest Points, when Played is greater than 5?
CREATE TABLE table_name_30 (points INTEGER, played INTEGER)
SELECT MIN(population__2011_) FROM table_189893_1
What is the lowest population(2011)?
CREATE TABLE table_189893_1 (population__2011_ INTEGER)
SELECT COUNT(opponent) FROM table_25428629_1 WHERE location = "Yangon, Myanmar"
If the location is Yangon, Myanmar, what is the opponent total number?
CREATE TABLE table_25428629_1 (opponent VARCHAR, location 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 SUM(games) FROM table_name_68 WHERE team = "lietuvos rytas vilnius" AND rebounds < 43
How many Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds?
CREATE TABLE table_name_68 (games INTEGER, team VARCHAR, rebounds VARCHAR)
SELECT actor FROM table_name_64 WHERE character = "rachel mckenna"
who is the actor that played rachel mckenna?
CREATE TABLE table_name_64 (actor VARCHAR, character VARCHAR)
SELECT MAX(first_elected) FROM table_name_37 WHERE counties_represented = "baltimore county, howard" AND committee = "environmental matters (vice-chair)"
When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)?
CREATE TABLE table_name_37 (first_elected INTEGER, counties_represented VARCHAR, committee VARCHAR)
SELECT region FROM table_name_58 WHERE total_gdp__€_bn__ = "€11,745.353"
What is the Region that has a Total GDP (€ bn ) of €11,745.353?
CREATE TABLE table_name_58 (region VARCHAR, total_gdp__€_bn__ VARCHAR)
SELECT AVG(played) FROM table_name_79 WHERE drawn = 1 AND against = 24
What is the average number played of the team with 1 drawn and 24 against?
CREATE TABLE table_name_79 (played INTEGER, drawn VARCHAR, against VARCHAR)
SELECT season FROM table_name_90 WHERE races = 6 AND team = "australia"
What season has 6 races and the team is Australia?
CREATE TABLE table_name_90 (season VARCHAR, races VARCHAR, team VARCHAR)
SELECT eliminated_contestant FROM table_name_25 WHERE date_premiered__2009_ = "october 10"
What eliminated contestant has October 10, 2009 as the date premiered?
CREATE TABLE table_name_25 (eliminated_contestant VARCHAR, date_premiered__2009_ VARCHAR)
SELECT start FROM table_name_15 WHERE rank = "7" AND laps > 100
What was the start result with a Rank of 7 and more than 100 laps?
CREATE TABLE table_name_15 (start VARCHAR, rank VARCHAR, laps VARCHAR)
SELECT opponent FROM table_name_13 WHERE october < 20 AND points = 8
What opponent has october less than 20, and 8 for points?
CREATE TABLE table_name_13 (opponent VARCHAR, october VARCHAR, points VARCHAR)
SELECT record FROM table_name_51 WHERE location = "boston garden" AND opponent = "new york knicks"
What was the record when the New York Knicks played at the Boston Garden?
CREATE TABLE table_name_51 (record VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT opponent_in_the_final FROM table_name_1 WHERE year > 2008 AND championship = "paul hunter classic"
What is the Opponent in the final after 2008 at the Paul Hunter Classic?
CREATE TABLE table_name_1 (opponent_in_the_final VARCHAR, year VARCHAR, championship VARCHAR)
SELECT AVG(wins) FROM table_name_31 WHERE byes < 0
What is the average of wins when the byes are less than 0?
CREATE TABLE table_name_31 (wins INTEGER, byes INTEGER)
SELECT surface FROM table_name_54 WHERE place = "lappeenranta"
Which Surface has a Place of lappeenranta?
CREATE TABLE table_name_54 (surface VARCHAR, place VARCHAR)
SELECT MAX(sfc_in_g__kn) AS ·s_ FROM table_name_12 WHERE engine_type = "rolls-royce/snecma olympus 593" AND sfc_in_lb__lbf·h_ < 1.195
What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?
CREATE TABLE table_name_12 (sfc_in_g__kn INTEGER, engine_type VARCHAR, sfc_in_lb__lbf·h_ VARCHAR)
SELECT AVG(round) FROM table_name_8 WHERE player = "adrien clarke"
What is the average Round number of Player Adrien Clarke?
CREATE TABLE table_name_8 (round INTEGER, player VARCHAR)
SELECT constructor FROM table_name_48 WHERE grand_prix = "brazilian grand prix"
What is the constructor for Brazilian Grand Prix?
CREATE TABLE table_name_48 (constructor VARCHAR, grand_prix VARCHAR)
SELECT county FROM table_name_64 WHERE elevation__m_ < 1833 AND isolation__km_ > 18 AND peak = "store lenangstind"
What country has an Elevation less than 1833 and an Isolation (km) larger than 18, and a Peak of store lenangstind?
CREATE TABLE table_name_64 (county VARCHAR, peak VARCHAR, elevation__m_ VARCHAR, isolation__km_ VARCHAR)
SELECT record FROM table_name_77 WHERE march = 26
Which record's march was 26?
CREATE TABLE table_name_77 (record VARCHAR, march VARCHAR)
SELECT no_in_series FROM table_23242958_1 WHERE written_by = "David Zuckerman"
What number episode in the series was written by David Zuckerman?
CREATE TABLE table_23242958_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT SUM(points) FROM table_name_25 WHERE games < 5
Name the sum of points with games less than 5
CREATE TABLE table_name_25 (points INTEGER, games INTEGER)
SELECT AVG(points) FROM table_name_88 WHERE against < 53 AND drawn < 10 AND played < 38
Against smaller than 53, and a Drawn smaller than 10, and a Played smaller than 38 has what average points?
CREATE TABLE table_name_88 (points INTEGER, played VARCHAR, against VARCHAR, drawn VARCHAR)
SELECT home_team FROM table_name_5 WHERE tie_no = "10"
What is the name of the home time with a 10 tie no?
CREATE TABLE table_name_5 (home_team VARCHAR, tie_no VARCHAR)
SELECT MIN(first_elected) FROM table_1342393_42 WHERE incumbent = "Tom Connally"
What was the total number of votes for Tom Connally
CREATE TABLE table_1342393_42 (first_elected INTEGER, incumbent VARCHAR)
SELECT score FROM table_name_92 WHERE record = "19–13–3"
What was the score of the game when the record was 19–13–3?
CREATE TABLE table_name_92 (score VARCHAR, record VARCHAR)
SELECT player FROM table_name_58 WHERE pick > 33 AND round > 2
What Player was picked after Round 2 with a Pick number larger than 33?
CREATE TABLE table_name_58 (player VARCHAR, pick VARCHAR, round VARCHAR)
SELECT barrel_twist FROM table_12834315_4 WHERE colt_model_no = "MT6400"
Name the barrel twist for colt model mt6400
CREATE TABLE table_12834315_4 (barrel_twist VARCHAR, colt_model_no VARCHAR)
SELECT loss FROM table_name_15 WHERE date = "july 16"
Who did the Blue Jays lose to on July 16?
CREATE TABLE table_name_15 (loss VARCHAR, date VARCHAR)
SELECT SUM(draft) FROM table_name_56 WHERE round > 9
What is the sum of Draft, when Round is greater than 9?
CREATE TABLE table_name_56 (draft INTEGER, round INTEGER)
SELECT position FROM table_182410_10 WHERE digital_terrestrial_channel = "5 44 (+1)"
What is the position of digital channel 5 44 (+1)?
CREATE TABLE table_182410_10 (position VARCHAR, digital_terrestrial_channel VARCHAR)
SELECT player FROM table_name_19 WHERE total = 160
Which player has a total of 160?
CREATE TABLE table_name_19 (player VARCHAR, total VARCHAR)
SELECT COUNT(title) FROM table_29273115_1 WHERE production_code = "IP02003"
How many different titles does the episode with production code IP02003 have?
CREATE TABLE table_29273115_1 (title VARCHAR, production_code VARCHAR)
SELECT area__km²_ FROM table_28367242_1 WHERE corporate_name = "Powell River, The Corporation of the City of"
What is the area of the corporation named the powell river, the corporation of the city of?
CREATE TABLE table_28367242_1 (area__km²_ VARCHAR, corporate_name VARCHAR)
SELECT candidates FROM table_1342198_3 WHERE district = "Alabama 1"
Who ran for office in the Alabama 1 district?
CREATE TABLE table_1342198_3 (candidates VARCHAR, district VARCHAR)
SELECT founded FROM table_name_99 WHERE location = "paul smiths, new york"
What is the Founded year of the school located in Paul Smiths, New York?
CREATE TABLE table_name_99 (founded VARCHAR, location VARCHAR)
SELECT score FROM table_name_25 WHERE place = "t5" AND nation = "united states"
What was the score in a place of t5 in the United States?
CREATE TABLE table_name_25 (score VARCHAR, place VARCHAR, nation VARCHAR)
SELECT result FROM table_2668243_8 WHERE incumbent = "Henry Daniel"
What was the result for Henry Daniel's race?
CREATE TABLE table_2668243_8 (result VARCHAR, incumbent VARCHAR)