answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT AVG(touchdowns) FROM table_name_7 WHERE yards < 293 AND long > 39
What is the average Touchdowns, when Yards is less than 293, and when Long is greater than 39?
CREATE TABLE table_name_7 (touchdowns INTEGER, yards VARCHAR, long VARCHAR)
SELECT MAX(total_goals) FROM table_10240125_1
What is the highest value of Total Goals?
CREATE TABLE table_10240125_1 (total_goals INTEGER)
SELECT date FROM table_name_21 WHERE week = 17
What was week 17's date?
CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR)
SELECT captain_2 FROM table_name_87 WHERE result = "ireland by 8 runs"
Which Captain 2 has a Result of ireland by 8 runs?
CREATE TABLE table_name_87 (captain_2 VARCHAR, result VARCHAR)
SELECT player FROM table_name_46 WHERE pick__number < 205 AND team_from = "michigan state spartans"
Who was the player that was picked at a number less than 205 from the Michigan State Spartans?
CREATE TABLE table_name_46 (player VARCHAR, pick__number VARCHAR, team_from VARCHAR)
SELECT school_board FROM table_1506619_1 WHERE number_of_elementary_schools = 96
Where are all school boards associated with a number of elementary schools of 96?
CREATE TABLE table_1506619_1 (school_board VARCHAR, number_of_elementary_schools VARCHAR)
SELECT MIN(round) FROM table_name_38 WHERE player = "brunel christensen" AND pick < 293
Which Round has a Player of brunel christensen and a Pick smaller than 293?
CREATE TABLE table_name_38 (round INTEGER, player VARCHAR, pick VARCHAR)
SELECT score FROM table_name_75 WHERE opponents = "lukáš dlouhý leander paes"
What was the score for the opponent lukáš dlouhý leander paes?
CREATE TABLE table_name_75 (score VARCHAR, opponents VARCHAR)
SELECT model_number FROM table_name_69 WHERE part_number_s_ = "cl8064701510101"
What model number has part number cl8064701510101?
CREATE TABLE table_name_69 (model_number VARCHAR, part_number_s_ VARCHAR)
SELECT COUNT(rank__timeslot_) FROM table_20971444_3 WHERE share__18_49_ = 13
Name the rank timeslot for 18-49 share being 13
CREATE TABLE table_20971444_3 (rank__timeslot_ VARCHAR, share__18_49_ VARCHAR)
SELECT AVG(wins) FROM table_name_7 WHERE losses = 4 AND against < 1281
How many wins when there are 4 losses and against are fewer than 1281?
CREATE TABLE table_name_7 (wins INTEGER, losses VARCHAR, against VARCHAR)
SELECT team_1 FROM table_name_23 WHERE team_2 = "gombe united f.c."
What is Team 1 where Team 2 is gombe united f.c.?
CREATE TABLE table_name_23 (team_1 VARCHAR, team_2 VARCHAR)
SELECT score FROM table_name_24 WHERE date = "may 26"
What was the score of the game on May 26?
CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR)
SELECT 2012 FROM table_name_88 WHERE 2011 = "7.7%" AND 2008 = "7.9%"
What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?
CREATE TABLE table_name_88 (Id VARCHAR)
SELECT score FROM table_27723526_10 WHERE team = "Portland"
What was the score of the game against portland?
CREATE TABLE table_27723526_10 (score VARCHAR, team VARCHAR)
SELECT LNER AS class FROM table_name_31 WHERE class = "6db"
What LNER Class has a Class of 6db?
CREATE TABLE table_name_31 (LNER VARCHAR, class VARCHAR)
SELECT total_attendance FROM table_name_80 WHERE average_attendance < 4850 AND sport = "rink hockey"
What's the total attendance in rink hockey when the average attendance was smaller than 4850?
CREATE TABLE table_name_80 (total_attendance VARCHAR, average_attendance VARCHAR, sport VARCHAR)
SELECT engine FROM table_name_44 WHERE year = 1951 AND chassis = "alfa romeo 159m"
What type of engine does a 1951 alfa romeo 159m chasis have?
CREATE TABLE table_name_44 (engine VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT score FROM table_name_65 WHERE march > 15 AND points > 96 AND game < 76 AND opponent = "@ washington capitals"
Which Score has a March larger than 15, and Points larger than 96, and a Game smaller than 76, and an Opponent of @ washington capitals?
CREATE TABLE table_name_65 (score VARCHAR, opponent VARCHAR, game VARCHAR, march VARCHAR, points VARCHAR)
SELECT MAX(brown_votes) FROM table_24115349_6 WHERE coakley__percentage = "84.1%"
How many votes for brown in the place that had 84.1% for coakley?
CREATE TABLE table_24115349_6 (brown_votes INTEGER, coakley__percentage VARCHAR)
SELECT MIN(wins) FROM table_26815674_1
What is the lowest overall amount of wins?
CREATE TABLE table_26815674_1 (wins INTEGER)
SELECT netflix FROM table_15187735_4 WHERE series_ep = "4-11"
What is the netflix code where the series and episode are 4-11?
CREATE TABLE table_15187735_4 (netflix VARCHAR, series_ep VARCHAR)
SELECT COUNT(total) FROM table_name_20 WHERE bronze < 13 AND nation = "netherlands (ned)" AND gold > 4
How much Total has a Bronze smaller than 13, and a Nation of netherlands (ned), and a Gold larger than 4?
CREATE TABLE table_name_20 (total VARCHAR, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT competition FROM table_name_22 WHERE date = "13-11-2012"
Which competition was played on 13-11-2012?
CREATE TABLE table_name_22 (competition VARCHAR, date VARCHAR)
SELECT LOCATION FROM cinema WHERE openning_year >= 2010 GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
What is the location with the most cinemas opened in year 2010 or later?
CREATE TABLE cinema (LOCATION VARCHAR, openning_year VARCHAR)
SELECT genre FROM table_name_85 WHERE developer_s_ = "nintendo ead"
What is the genre of the game developed by Nintendo EAD?
CREATE TABLE table_name_85 (genre VARCHAR, developer_s_ VARCHAR)
SELECT segment_b FROM table_15187735_12 WHERE series_ep = "12-02"
What is Segment B for series episode 12-02?
CREATE TABLE table_15187735_12 (segment_b VARCHAR, series_ep VARCHAR)
SELECT year_s__won FROM table_name_91 WHERE player = "arnold palmer"
What is Year(s) Won, when Player is Arnold Palmer?
CREATE TABLE table_name_91 (year_s__won VARCHAR, player VARCHAR)
SELECT height__m_ FROM table_23670057_1 WHERE no = 7
Name the height for number 7
CREATE TABLE table_23670057_1 (height__m_ VARCHAR, no VARCHAR)
SELECT entries FROM table_2534387_10 WHERE elapsed_time = "6 h 23 min"
Name the entries for 6 h 23 min elapsed time
CREATE TABLE table_2534387_10 (entries VARCHAR, elapsed_time VARCHAR)
SELECT COUNT(attendance) FROM table_name_12 WHERE away_team = "southend manor" AND tie_no < 93
What is the attendance total when Southend Manor is the away team and there are less than 93 ties?
CREATE TABLE table_name_12 (attendance VARCHAR, away_team VARCHAR, tie_no VARCHAR)
SELECT theme FROM table_26250176_1 WHERE week__number = "Audition"
What is the theme for Audition week?
CREATE TABLE table_26250176_1 (theme VARCHAR, week__number VARCHAR)
SELECT category FROM table_name_50 WHERE recipients_and_nominees = "libby goldstein and junie lowry-johnson"
Which Category were Libby Goldstein and Junie Lowry-Johnson recipients and nominees for?
CREATE TABLE table_name_50 (category VARCHAR, recipients_and_nominees VARCHAR)
SELECT kind_of_the_song FROM table_name_50 WHERE number > 8 AND name_of_the_song = "實情"
What type of song is larger than 8 and named 實情?
CREATE TABLE table_name_50 (kind_of_the_song VARCHAR, number VARCHAR, name_of_the_song VARCHAR)
SELECT name, flag FROM ship WHERE NOT ship_id IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman')
Find the name and flag of ships that are not steered by any captain with Midshipman rank.
CREATE TABLE captain (name VARCHAR, flag VARCHAR, ship_id VARCHAR, rank VARCHAR); CREATE TABLE ship (name VARCHAR, flag VARCHAR, ship_id VARCHAR, rank VARCHAR)
SELECT soap_opera FROM table_name_33 WHERE years = "1960–1965, 1965–1983, 1984–2010"
What soap opera was on 1960–1965, 1965–1983, 1984–2010?
CREATE TABLE table_name_33 (soap_opera VARCHAR, years VARCHAR)
SELECT MAX(rank_qualifying) FROM table_26681728_1 WHERE location = "Ghent" AND year = 2011 AND score_qualifying = "14.850"
In Ghent in 2011, what was the rank-qualifying value when the score-qualifying value was 14.850
CREATE TABLE table_26681728_1 (rank_qualifying INTEGER, score_qualifying VARCHAR, location VARCHAR, year VARCHAR)
SELECT adelaide FROM table_name_20 WHERE melbourne = "yes" AND auckland = "no" AND perth = "yes"
Which Adelaide's Melbourne and Perth were yes when Auckland was no?
CREATE TABLE table_name_20 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR)
SELECT area__km²_ FROM table_298550_1 WHERE capital = "Port-au-Prince"
What is every entry for area if capital is Port-au-Prince?
CREATE TABLE table_298550_1 (area__km²_ VARCHAR, capital VARCHAR)
SELECT AVG(destroyed) FROM table_name_17 WHERE 1990 > 12 AND damaged > 1 AND to_iran < 4 AND survived = 6
What's the average destroyed with a 1990 over 12, more than 1 damaged, 6 survivors, and a to Iran less than 4?
CREATE TABLE table_name_17 (destroyed INTEGER, survived VARCHAR, to_iran VARCHAR, damaged VARCHAR)
SELECT date FROM table_name_40 WHERE game_site = "lincoln financial field"
On what date was the game at Lincoln Financial Field?
CREATE TABLE table_name_40 (date VARCHAR, game_site VARCHAR)
SELECT AVG(total) FROM table_name_44 WHERE finish = "t47"
What is the average Total, when Finish is "T47"?
CREATE TABLE table_name_44 (total INTEGER, finish VARCHAR)
SELECT COUNT(mens_doubles) FROM table_28138035_20 WHERE womens_singles = "Guo Yue"
How many people are shown for mens doubles when guo yue played womens singles?
CREATE TABLE table_28138035_20 (mens_doubles VARCHAR, womens_singles VARCHAR)
SELECT name FROM table_name_4 WHERE captain = "aaron heal"
What Name has the Captain Aaron Heal?
CREATE TABLE table_name_4 (name VARCHAR, captain VARCHAR)
SELECT MIN(attempts) FROM table_name_57 WHERE rank > 3 AND start > 1984 AND yds_att < 6.1
What is the lowest number of attempts for the player with a rank number larger than 3, who started after 1984 and had less than 6.1 yds/att?
CREATE TABLE table_name_57 (attempts INTEGER, yds_att VARCHAR, rank VARCHAR, start VARCHAR)
SELECT date FROM table_name_33 WHERE score = "4–2"
Whic Date has a Score of 4–2?
CREATE TABLE table_name_33 (date VARCHAR, score VARCHAR)
SELECT MAX(prize_money__) AS $__ FROM table_name_16 WHERE rank = 1
What is the prize money for the player ranked 1?
CREATE TABLE table_name_16 (prize_money__ INTEGER, rank VARCHAR)
SELECT surface FROM table_26202847_6 WHERE score_in_the_final = "2–6, 6–2, 6–0"
The score in the final is 2–6, 6–2, 6–0, on what surface?
CREATE TABLE table_26202847_6 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT MIN(no) FROM table_25084227_1 WHERE directed_by = "Michael Offer"
If the episode was directed by Michael Offer, what was the episode number?
CREATE TABLE table_25084227_1 (no INTEGER, directed_by VARCHAR)
SELECT venue FROM table_name_69 WHERE away_team = "hawthorn"
What was the venue when the away team was Hawthorn?
CREATE TABLE table_name_69 (venue VARCHAR, away_team VARCHAR)
SELECT opponent FROM table_18207285_2 WHERE attendance = 60425
Who was the game attended by 60425 people played against?
CREATE TABLE table_18207285_2 (opponent VARCHAR, attendance VARCHAR)
SELECT MAX(season) FROM table_25214321_1 WHERE winner = "Dado Dolabella"
In what season was the winner Dado Dolabella?
CREATE TABLE table_25214321_1 (season INTEGER, winner VARCHAR)
SELECT SUM(top_10) FROM table_name_98 WHERE wins > 2 AND top_25 < 16
What is the sum of Top 10 performances that have more than 2 wins and is higher than number 16 in the Top 25?
CREATE TABLE table_name_98 (top_10 INTEGER, wins VARCHAR, top_25 VARCHAR)
SELECT finish FROM table_name_82 WHERE manager = "tom kotchman" AND record = "43-33"
what is the finish when the manager is tom kotchman and record is 43-33?
CREATE TABLE table_name_82 (finish VARCHAR, manager VARCHAR, record VARCHAR)
SELECT COUNT(preston_north_end) FROM table_name_90 WHERE blackpool < 0
How much Preston North End has a Blackpool smaller than 0?
CREATE TABLE table_name_90 (preston_north_end VARCHAR, blackpool INTEGER)
SELECT MAX(total) FROM table_name_98 WHERE name = "andrea sinko" AND all_around > 9.65
What is the highest total that has andrea sinko as the name, with an all around greater than 9.65?
CREATE TABLE table_name_98 (total INTEGER, name VARCHAR, all_around VARCHAR)
SELECT website FROM table_1688640_4 WHERE car__number = "92"
Name the website for car number of 92
CREATE TABLE table_1688640_4 (website VARCHAR, car__number VARCHAR)
SELECT name FROM table_name_20 WHERE circuit = "lille"
Which Grand Prix has the Circuit of Lille?
CREATE TABLE table_name_20 (name VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_59 WHERE away_team = "collingwood"
When was the game at Collingwood?
CREATE TABLE table_name_59 (date VARCHAR, away_team VARCHAR)
SELECT name FROM table_29743928_3 WHERE country = "DR Congo"
What are the names of players from the dr congo?
CREATE TABLE table_29743928_3 (name VARCHAR, country VARCHAR)
SELECT enrollment FROM table_name_68 WHERE established > 2011
What is the enrollment of the university established in or after 2011?
CREATE TABLE table_name_68 (enrollment VARCHAR, established INTEGER)
SELECT COUNT(attendance) FROM table_name_4 WHERE result = "l 35-17"
Tell me the number of attendance that has a result of l 35-17
CREATE TABLE table_name_4 (attendance VARCHAR, result VARCHAR)
SELECT bowling FROM table_name_7 WHERE player = "min patel"
What was Min Patel's bowling?
CREATE TABLE table_name_7 (bowling VARCHAR, player VARCHAR)
SELECT COUNT(number_of_households) FROM table_1840495_2 WHERE per_capita_income = "$30,298"
With a per capita income of $30,298, what was the total number of households?
CREATE TABLE table_1840495_2 (number_of_households VARCHAR, per_capita_income VARCHAR)
SELECT away_team AS score FROM table_name_4 WHERE home_team = "geelong"
What was the score for the away team when geelong was the home team?
CREATE TABLE table_name_4 (away_team VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_45 WHERE country = "united states" AND to_par = 8
Can you tell me the Score that has the Country of united states, and the To par of 8?
CREATE TABLE table_name_45 (score VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT COUNT(title_and_source) FROM table_26538035_1 WHERE developer = "Clover Studio"
How many titles/sources have a developer of Clover Studio?
CREATE TABLE table_26538035_1 (title_and_source VARCHAR, developer VARCHAR)
SELECT format FROM table_name_90 WHERE label = "electropolis" AND date = "2002"
What is the Format with a Label of electropolis and a Date that is 2002?
CREATE TABLE table_name_90 (format VARCHAR, label VARCHAR, date VARCHAR)
SELECT school_year FROM table_14603212_1 WHERE class_aA = Franklin
For franklin of class aa, which school years does this occur?
CREATE TABLE table_14603212_1 (school_year VARCHAR, class_aA VARCHAR, Franklin VARCHAR)
SELECT _percentage_of_all_immigrants_2004 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2006 = "2.1%"
What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006?
CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2004 VARCHAR, _percentage_of_all_immigrants_2006 VARCHAR)
SELECT COUNT(growth_rate) FROM table_231623_3 WHERE density_per_kilometer = 1087
Name the growth rate for density of 1087
CREATE TABLE table_231623_3 (growth_rate VARCHAR, density_per_kilometer VARCHAR)
SELECT SUM(year) FROM table_name_59 WHERE studio_s_ = "walt disney pictures imagemovers digital"
What is Year is Walt Disney Pictures Imagemovers Digital?
CREATE TABLE table_name_59 (year INTEGER, studio_s_ VARCHAR)
SELECT gold FROM table_name_15 WHERE silver = "3" AND total = "5"
Which gold has 3 silver and a Total of 5?
CREATE TABLE table_name_15 (gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT MAX(average) FROM table_19210674_1 WHERE chinese_title = "古靈精探B"
What was the maximum average of the episode with a Chinese title 古靈精探b?
CREATE TABLE table_19210674_1 (average INTEGER, chinese_title VARCHAR)
SELECT date FROM table_name_3 WHERE home_team = "north melbourne"
Name the date which has a home team of north melbourne
CREATE TABLE table_name_3 (date VARCHAR, home_team VARCHAR)
SELECT launched FROM table_name_23 WHERE commissioned = "august 31, 1964"
Tell me the launched for august 31, 1964
CREATE TABLE table_name_23 (launched VARCHAR, commissioned VARCHAR)
SELECT year FROM table_1909647_2 WHERE team_s_ = "#14 FitzBradshaw Racing"
In what year did the #14 FitzBradshaw Racing compete?
CREATE TABLE table_1909647_2 (year VARCHAR, team_s_ VARCHAR)
SELECT score FROM table_name_81 WHERE attendance = "tbc" AND opponent = "sidley united"
What is the score when the attendance shows TBC, and Sidley United was the opponent?
CREATE TABLE table_name_81 (score VARCHAR, attendance VARCHAR, opponent VARCHAR)
SELECT opponent FROM table_name_97 WHERE score = "141–102"
Who was the opponent with a score of 141–102?
CREATE TABLE table_name_97 (opponent VARCHAR, score VARCHAR)
SELECT COUNT(year) FROM table_name_8 WHERE team = "audi sport team joest" AND pos = "3rd"
How many years was Audi Sport Team Joest in 3rd position?
CREATE TABLE table_name_8 (year VARCHAR, team VARCHAR, pos VARCHAR)
SELECT player FROM table_name_41 WHERE years_for_rockets = "2002-03"
Which player played for the Rockets in 2002-03?
CREATE TABLE table_name_41 (player VARCHAR, years_for_rockets VARCHAR)
SELECT film FROM table_name_66 WHERE year = 1971
What film was released in 1971?
CREATE TABLE table_name_66 (film VARCHAR, year VARCHAR)
SELECT surface FROM table_26202788_7 WHERE opponent_in_the_final = "Andy Roddick"
Andy Roddick is the opponent in the final on what surface?
CREATE TABLE table_26202788_7 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT SUM(played) FROM table_name_85 WHERE lost < 5 AND points > 41
How many games were played when the loss is less than 5 and points greater than 41?
CREATE TABLE table_name_85 (played INTEGER, lost VARCHAR, points VARCHAR)
SELECT opponent FROM table_20938922_2 WHERE week = 12
What was the player's team's opponent for Week 12?
CREATE TABLE table_20938922_2 (opponent VARCHAR, week VARCHAR)
SELECT country FROM table_name_20 WHERE player = "craig stadler"
What country was the game in when the player was Craig Stadler?
CREATE TABLE table_name_20 (country VARCHAR, player VARCHAR)
SELECT COUNT(position) FROM table_24540893_6 WHERE school = "SE Missouri State"
How many players attended SE missouri state?
CREATE TABLE table_24540893_6 (position VARCHAR, school VARCHAR)
SELECT rarotongan FROM table_name_15 WHERE tahitian = "/metua/"
What kind of Rarotongan has a Tahitian of /metua/?
CREATE TABLE table_name_15 (rarotongan VARCHAR, tahitian VARCHAR)
SELECT written_by FROM table_28089666_1 WHERE production_code = "1.01"
Who wrote episode with production code 1.01?
CREATE TABLE table_28089666_1 (written_by VARCHAR, production_code VARCHAR)
SELECT to_par FROM table_name_29 WHERE player = "fuzzy zoeller"
What is Fuzzy Zoeller's To par?
CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR)
SELECT venue FROM table_name_95 WHERE competition = "1966 fifa world cup qualification" AND date = "may 7, 1965"
What venue held the 1966 fifa world cup qualification on may 7, 1965?
CREATE TABLE table_name_95 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT vacator FROM table_225206_3 WHERE reason_for_change = "Failure to elect"
Who was the vacator when the reason for change was failure to elect?
CREATE TABLE table_225206_3 (vacator VARCHAR, reason_for_change VARCHAR)
SELECT runner_s__up FROM table_name_37 WHERE margin_of_victory = "3 strokes"
Name the runner-up for margin of victory of 3 strokes
CREATE TABLE table_name_37 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT qual FROM table_name_28 WHERE rank = "19"
What is the qual with a 19 rank?
CREATE TABLE table_name_28 (qual VARCHAR, rank VARCHAR)
SELECT candidates FROM table_1341453_32 WHERE incumbent = "Bill Pascrell"
Who were the candidates in the district whose incumbent is Bill Pascrell?
CREATE TABLE table_1341453_32 (candidates VARCHAR, incumbent VARCHAR)
SELECT d_43 FROM table_name_92 WHERE d_41 = "r 16"
What is the D43 associated with a D41 of r 16?
CREATE TABLE table_name_92 (d_43 VARCHAR, d_41 VARCHAR)
SELECT video FROM table_name_1 WHERE channel < 35.66 AND programming = "nhk world"
Which Video has a Channel smaller than 35.66, and a Programming of nhk world?
CREATE TABLE table_name_1 (video VARCHAR, channel VARCHAR, programming VARCHAR)
SELECT score FROM table_1028356_3 WHERE partner = "Jim Pugh"
What is the score with partner Jim Pugh?
CREATE TABLE table_1028356_3 (score VARCHAR, partner VARCHAR)
SELECT date FROM table_name_15 WHERE tournament = "versmold"
What date was versmold?
CREATE TABLE table_name_15 (date VARCHAR, tournament VARCHAR)
SELECT to_par FROM table_name_15 WHERE score = 67 - 68 = 135
What is the to par score of the player that had a score of 67-68=135?
CREATE TABLE table_name_15 (to_par VARCHAR, score VARCHAR)