answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(attendance) FROM table_name_83 WHERE date = "may 29"
How many were in Attendance on the Date May 29?
CREATE TABLE table_name_83 (attendance VARCHAR, date VARCHAR)
SELECT mens_doubles FROM table_28138035_26 WHERE womens_singles = "Wu Yang"
Who won the mens doubles when wu yang won the womens singles?
CREATE TABLE table_28138035_26 (mens_doubles VARCHAR, womens_singles VARCHAR)
SELECT finish FROM table_name_21 WHERE start = "25" AND laps > 46
What was the finish with the start of 25 and a lap larger than 46?
CREATE TABLE table_name_21 (finish VARCHAR, start VARCHAR, laps VARCHAR)
SELECT fineness FROM table_name_28 WHERE year < 2007
What was the fineness prior to 2007?
CREATE TABLE table_name_28 (fineness VARCHAR, year INTEGER)
SELECT result FROM table_name_25 WHERE week < 7 AND game_site = "los angeles memorial coliseum"
Name the result for week less than 7 and game sites of los angeles memorial coliseum
CREATE TABLE table_name_25 (result VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT county FROM table_name_74 WHERE latitude > 48.581299 AND ansi_code > 1037103 AND geo_id = 3801985060
what is the county when the latitude is more than 48.581299, ansi code is more than 1037103 and the geo id is 3801985060?
CREATE TABLE table_name_74 (county VARCHAR, geo_id VARCHAR, latitude VARCHAR, ansi_code VARCHAR)
SELECT high_points FROM table_name_2 WHERE team = "charlotte"
Name the high points for charlotte
CREATE TABLE table_name_2 (high_points VARCHAR, team VARCHAR)
SELECT qual FROM table_name_1 WHERE year = "1957"
Name the qual for 1957
CREATE TABLE table_name_1 (qual VARCHAR, year VARCHAR)
SELECT similarity FROM table_15417439_1 WHERE genus_species = "Sus scrofa"
How similar is the genus/species sus scrofa?
CREATE TABLE table_15417439_1 (similarity VARCHAR, genus_species VARCHAR)
SELECT champion FROM table_name_52 WHERE runner_up = "christopher miles"
Name the champion for christopher miles runner-up
CREATE TABLE table_name_52 (champion VARCHAR, runner_up VARCHAR)
SELECT Name FROM technician WHERE Team <> "NYY"
List the name of technicians whose team is not "NYY".
CREATE TABLE technician (Name VARCHAR, Team VARCHAR)
SELECT driver FROM table_name_99 WHERE chassis = "d6"
Who is driver of the d6 chassis?
CREATE TABLE table_name_99 (driver VARCHAR, chassis VARCHAR)
SELECT Festival_Name FROM festival_detail WHERE YEAR = 2007
What are the names of festivals held in year 2007?
CREATE TABLE festival_detail (Festival_Name VARCHAR, YEAR VARCHAR)
SELECT erp_w FROM table_name_15 WHERE frequency_mhz = "88.5 fm"
Which ERP W has a Frequency MHz of 88.5 FM?
CREATE TABLE table_name_15 (erp_w VARCHAR, frequency_mhz VARCHAR)
SELECT Age, COUNT(*) FROM editor GROUP BY Age
What are the different ages of editors? Show each age along with the number of editors of that age.
CREATE TABLE editor (Age VARCHAR)
SELECT MAX(silver) FROM table_name_95 WHERE bronze < 3 AND gold < 1 AND total = 1 AND nation = "ireland"
What is the highest number of silver medals that Ireland earned when they scored less than 3 bronze medals and earned 1 medal?
CREATE TABLE table_name_95 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT MIN(points) FROM table_name_73 WHERE losses = 2 AND position > 1
What is the lowest number of points of the team with 2 losses and a lower than 1 position?
CREATE TABLE table_name_73 (points INTEGER, losses VARCHAR, position VARCHAR)
SELECT MIN(mpg_uk_combined) FROM table_name_42 WHERE mpg_uk_urban__cold_ = 25.4 AND l_100km_extra_urban < 6.9 AND l_100km_urban__cold_ > 11.1
What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is less than 6.9 and the L/100km urban is more than 11.1?
CREATE TABLE table_name_42 (mpg_uk_combined INTEGER, l_100km_urban__cold_ VARCHAR, mpg_uk_urban__cold_ VARCHAR, l_100km_extra_urban VARCHAR)
SELECT date FROM table_name_86 WHERE psoe = "36.1%"
Which date has a PSOE of 36.1%?
CREATE TABLE table_name_86 (date VARCHAR, psoe VARCHAR)
SELECT MIN(wins) FROM table_15327489_1
Name the most wins
CREATE TABLE table_15327489_1 (wins INTEGER)
SELECT high_points FROM table_name_49 WHERE score = "w 110-81"
Which High points have a Score of w 110-81?
CREATE TABLE table_name_49 (high_points VARCHAR, score VARCHAR)
SELECT 1980 FROM table_name_48 WHERE 1984 = "1r" AND 1981 = "1r"
What is the 1980 value with a 1r in 1984 and a 1r in 1981?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT games FROM table_name_71 WHERE medal = "bronze" AND sport = "weightlifting" AND event = "94kg men's weightlifting"
At which games was a bronze medal won in the 94kg men's weightlifting event?
CREATE TABLE table_name_71 (games VARCHAR, event VARCHAR, medal VARCHAR, sport VARCHAR)
SELECT team FROM table_1405704_1 WHERE chassis = "McLaren" AND engine = "Offenhauser"
What team has a vehicle with an Offenhauser engine and a McLaren chassis?
CREATE TABLE table_1405704_1 (team VARCHAR, chassis VARCHAR, engine VARCHAR)
SELECT directed_by FROM table_10701133_1 WHERE us_viewers__million_ = "12.90"
Who directed the episode where u.s. viewers (million) is 12.90?
CREATE TABLE table_10701133_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT to_par FROM table_name_68 WHERE place = "t5" AND player = "mark mccumber"
WHAT IS THE TO PAR WITH T5 PLACE, AND PLAYER MARK MCCUMBER?
CREATE TABLE table_name_68 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT SUM(sets_lost) FROM table_name_26 WHERE loss < 3 AND rank > 1
How many sets lost have a loss smaller than 3 and a rank larger than 1?
CREATE TABLE table_name_26 (sets_lost INTEGER, loss VARCHAR, rank VARCHAR)
SELECT company, headquarters FROM company ORDER BY market_value DESC
Show all company names and headquarters in the descending order of market value.
CREATE TABLE company (company VARCHAR, headquarters VARCHAR, market_value VARCHAR)
SELECT radio_commentator FROM table_17766232_7 WHERE final_television_commentator = "John Dunn"
Who was the radio commentator when the final television commentator was John Dunn?
CREATE TABLE table_17766232_7 (radio_commentator VARCHAR, final_television_commentator VARCHAR)
SELECT original_air_date FROM table_name_85 WHERE series__number > 78 AND written_by = "jenee v. giles"
What was the original air date of a series number after 78, written by Jenee V. Giles?
CREATE TABLE table_name_85 (original_air_date VARCHAR, series__number VARCHAR, written_by VARCHAR)
SELECT venue FROM table_name_19 WHERE home_team = "south melbourne"
What is the home field of the South Melbourne team?
CREATE TABLE table_name_19 (venue VARCHAR, home_team VARCHAR)
SELECT years_as_tallest FROM table_name_78 WHERE name = "tenth presbyterian church"
How many years as tallest building was the Tenth Presbyterian Church?
CREATE TABLE table_name_78 (years_as_tallest VARCHAR, name VARCHAR)
SELECT drawn FROM table_name_2 WHERE points_for = "782"
Which Drawn has Points for of 782?
CREATE TABLE table_name_2 (drawn VARCHAR, points_for VARCHAR)
SELECT tournament FROM table_name_59 WHERE 2006 = "a" AND 2011 = "3r"
What is the tournament with a 2006 value of A and a 2011 value of 3r?
CREATE TABLE table_name_59 (tournament VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_46 WHERE cyrillic_name_other_names = "Ватин"
What was the largest ethnic group in 2002 of the settlement with the cyrillic name of ватин?
CREATE TABLE table_2562572_46 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT home FROM table_name_32 WHERE visitor = "phoenix"
Who did team phoenix visit in their home?
CREATE TABLE table_name_32 (home VARCHAR, visitor VARCHAR)
SELECT venue FROM table_name_98 WHERE competition = "venice marathon"
Which Venue has a Competition of venice marathon?
CREATE TABLE table_name_98 (venue VARCHAR, competition VARCHAR)
SELECT MAX(aircraft_kilometers) FROM table_105344_2 WHERE departures = 17096
Of the years that had exactly 17096 departures, what is the greatest number of aircraft kilometers flown?
CREATE TABLE table_105344_2 (aircraft_kilometers INTEGER, departures VARCHAR)
SELECT l2_cache FROM table_name_48 WHERE model_number = "mobile pentium 333"
What is the L2 cache for the Mobile Pentium 333?
CREATE TABLE table_name_48 (l2_cache VARCHAR, model_number VARCHAR)
SELECT matches_won FROM table_29302711_12 WHERE name = "Colin Dibley"
how many matches did colin dibley win
CREATE TABLE table_29302711_12 (matches_won VARCHAR, name VARCHAR)
SELECT harris FROM table_159614_2 WHERE party = "Labour"
What is the percentage of the Labour Party on the Harris Poll
CREATE TABLE table_159614_2 (harris VARCHAR, party VARCHAR)
SELECT township FROM table_name_20 WHERE land___sqmi__ > 36.112 AND geo_id > 3801985060 AND latitude = 46.062384
what is the township when the land (sqmi) is more than 36.112, the geo id is higher than 3801985060 and the latitude is 46.062384?
CREATE TABLE table_name_20 (township VARCHAR, latitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR)
SELECT gold FROM table_name_14 WHERE silver = "1"
In the Year Yugoslavia won 1 Silver, how many Gold medals did they win?
CREATE TABLE table_name_14 (gold VARCHAR, silver VARCHAR)
SELECT catalogue FROM table_name_86 WHERE song_title = "it's now or never"
What catalogue is the song It's Now or Never?
CREATE TABLE table_name_86 (catalogue VARCHAR, song_title VARCHAR)
SELECT venue FROM table_name_6 WHERE away_team = "hawthorn"
Where did Hawthorn play an away game?
CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR)
SELECT basketball FROM table_16423070_4 WHERE track_ & _field = "Ashland" AND cross_country = "Ashland"
who won basketball when ashland won track & field and cross country
CREATE TABLE table_16423070_4 (basketball VARCHAR, cross_country VARCHAR, track_ VARCHAR, _field VARCHAR)
SELECT final_rank FROM table_13114949_3 WHERE event = "Uneven Bars" AND competition = "U.S. Championships"
what is the final-rank for the uneven bars and the competition is u.s. championships?
CREATE TABLE table_13114949_3 (final_rank VARCHAR, event VARCHAR, competition VARCHAR)
SELECT opponent FROM table_14608759_1 WHERE week = 9
In week 9 who were the opponent?
CREATE TABLE table_14608759_1 (opponent VARCHAR, week VARCHAR)
SELECT result FROM table_name_42 WHERE draws = "3"
What was the result for the team with 3 draws?
CREATE TABLE table_name_42 (result VARCHAR, draws VARCHAR)
SELECT place FROM table_name_60 WHERE player = "jay hebert"
What place is Jay Hebert?
CREATE TABLE table_name_60 (place VARCHAR, player VARCHAR)
SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 2
How many Gold does the Nation in Rank 12 with less than 2 Total medals have?
CREATE TABLE table_name_45 (gold INTEGER, rank VARCHAR, total VARCHAR)
SELECT term_end FROM table_name_37 WHERE party = "national religious party" AND minister = "shlomo-yisrael ben-meir"
When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party?
CREATE TABLE table_name_37 (term_end VARCHAR, party VARCHAR, minister VARCHAR)
SELECT civilian_deaths FROM table_name_19 WHERE total_deaths__not_including_foreigners_ = "178"
How many civilians died in the conflict that left 178, excluding foreigners, dead?
CREATE TABLE table_name_19 (civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR)
SELECT title FROM table_name_52 WHERE appointed_by = "james k. polk"
What is the title of the representative appointed by James K. Polk?
CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR)
SELECT total_points FROM table_name_29 WHERE games = "30" AND bonus_points = "9" AND match_points = "68"
What are the total points that had 68 match points, 9 bonus points and 30 games?
CREATE TABLE table_name_29 (total_points VARCHAR, match_points VARCHAR, games VARCHAR, bonus_points VARCHAR)
SELECT bullet FROM table_name_51 WHERE shoulder = "12.5 (.491)"
What bullet does the gun with a shoulder measurement of 12.5 (.491)?
CREATE TABLE table_name_51 (bullet VARCHAR, shoulder VARCHAR)
SELECT away_captain FROM table_name_81 WHERE venue = "kingsmead"
Who is the away captain for Kingsmead?
CREATE TABLE table_name_81 (away_captain VARCHAR, venue VARCHAR)
SELECT state__class_ FROM table_224840_3 WHERE vacator = "John Laurance (F)"
in which state where John Laurance (f) as a vacator?
CREATE TABLE table_224840_3 (state__class_ VARCHAR, vacator VARCHAR)
SELECT date_of_vacancy FROM table_name_75 WHERE manner_of_departure = "mutual consent" AND date_of_appointment = "2 november 2009"
What is the vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent?
CREATE TABLE table_name_75 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT SUM(year) FROM table_name_95 WHERE winner = "ivanovic" AND "ivanovic" > 4 AND round = "r16"
What year did Ivanovic win with Ivanovic greater than 4 and round of R16?
CREATE TABLE table_name_95 (year INTEGER, round VARCHAR, winner VARCHAR)
SELECT report FROM table_name_93 WHERE set_3 = "21–25"
Which report has a Set 3 value of 21–25?
CREATE TABLE table_name_93 (report VARCHAR, set_3 VARCHAR)
SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1
which gender got the highest average uncertain ratio.
CREATE TABLE candidate (people_id VARCHAR, unsure_rate INTEGER); CREATE TABLE people (sex VARCHAR, people_id VARCHAR)
SELECT SUM(total) FROM table_name_35 WHERE rank = "total" AND silver < 10
what is the total when the rank is total and the silver is less than 10?
CREATE TABLE table_name_35 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT date FROM table_name_2 WHERE record = "1-0"
What is the date of the Cubs game when the Cubs had a record of 1-0?
CREATE TABLE table_name_2 (date VARCHAR, record VARCHAR)
SELECT COUNT(country) FROM table_28281704_1 WHERE city = "Athens"
Name the country for athens
CREATE TABLE table_28281704_1 (country VARCHAR, city VARCHAR)
SELECT album FROM table_name_93 WHERE year < 2008 AND title = "we're not made in the usa"
What album came out before 2008 called We're not Made in the USA?
CREATE TABLE table_name_93 (album VARCHAR, year VARCHAR, title VARCHAR)
SELECT player FROM table_name_11 WHERE money___$__ = 137 AND score = 73 - 70 - 73 - 74 = 290
Which Player has a Money ($) of 137, and a Score of 73-70-73-74=290?
CREATE TABLE table_name_11 (player VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT home_team FROM table_name_87 WHERE venue = "windy hill"
What is the home team for Windy Hill?
CREATE TABLE table_name_87 (home_team VARCHAR, venue VARCHAR)
SELECT production_code FROM table_2818164_7 WHERE written_by = "Matt Robinson"
What is the production code that was written by matt robinson?
CREATE TABLE table_2818164_7 (production_code VARCHAR, written_by VARCHAR)
SELECT production_code FROM table_23799417_1 WHERE directed_by = "Matt Shakman"
What is the production code directed by Matt Shakman?
CREATE TABLE table_23799417_1 (production_code VARCHAR, directed_by VARCHAR)
SELECT republican_ticket FROM table_name_67 WHERE democratic_ticket = "m. william bray"
Who's the Republican ticket with a Democratic ticket of m. william bray?
CREATE TABLE table_name_67 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT name FROM table_name_70 WHERE opponent = "ssc-r"
When SSC-R is the opponent what is the name?
CREATE TABLE table_name_70 (name VARCHAR, opponent VARCHAR)
SELECT director FROM table_name_77 WHERE title = "bunker hill bunny"
Who directed Bunker Hill Bunny?
CREATE TABLE table_name_77 (director VARCHAR, title VARCHAR)
SELECT year FROM table_name_99 WHERE comp = "33"
What year was the comp 33?
CREATE TABLE table_name_99 (year VARCHAR, comp VARCHAR)
SELECT third FROM table_name_11 WHERE second = "agnieszka ogrodniczek"
Which Third has a Second of agnieszka ogrodniczek?
CREATE TABLE table_name_11 (third VARCHAR, second VARCHAR)
SELECT country FROM table_name_19 WHERE swimsuit = 9.46
What is the country of the contestant with a swimsuit of 9.46?
CREATE TABLE table_name_19 (country VARCHAR, swimsuit VARCHAR)
SELECT AVG(wins) FROM table_name_31 WHERE position = "20th" AND f_laps > 0
What is the average wins with a 20th position and more than 0 f/laps?
CREATE TABLE table_name_31 (wins INTEGER, position VARCHAR, f_laps VARCHAR)
SELECT nupowr_183 FROM table_3002894_4 WHERE nupowr_117 = "0,4, or 8 MB"
When 0,4, or 8 mb is the nupowr 117 what is the nupowr 183?
CREATE TABLE table_3002894_4 (nupowr_183 VARCHAR, nupowr_117 VARCHAR)
SELECT weight FROM table_name_45 WHERE name = "billy miller category:articles with hcards"
What is the Weight for the Name Billy Miller Category:Articles with hcards?
CREATE TABLE table_name_45 (weight VARCHAR, name VARCHAR)
SELECT venue FROM table_name_71 WHERE away_team = "round 2"
Where did the away team have round 2?
CREATE TABLE table_name_71 (venue VARCHAR, away_team VARCHAR)
SELECT SUM(points) FROM table_name_75 WHERE difference = "13" AND lost > 3
What was the total number of Points when the value Difference was 13, and when the value Lost was greater than 3?
CREATE TABLE table_name_75 (points INTEGER, difference VARCHAR, lost VARCHAR)
SELECT MIN(series__number) FROM table_26261072_1 WHERE written_by = "Brenda Hampton" AND directed_by = "Burt Brinckerhoff"
Name the least series number written by brenda hampton and directed by burt brinckerhoff
CREATE TABLE table_26261072_1 (series__number INTEGER, written_by VARCHAR, directed_by VARCHAR)
SELECT SUM(round) FROM table_name_9 WHERE pick = 7
WHAT IS THE ROUND WITH PICK OF 7?
CREATE TABLE table_name_9 (round INTEGER, pick VARCHAR)
SELECT DISTINCT (BillingCountry) FROM INVOICE
What are the distinct billing countries of the invoices?
CREATE TABLE INVOICE (BillingCountry VARCHAR)
SELECT series FROM table_name_8 WHERE team = "dick johnson racing"
What series was Dick Johnson Racing the team?
CREATE TABLE table_name_8 (series VARCHAR, team VARCHAR)
SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000
What are the star rating descriptions of the hotels with price above 10000?
CREATE TABLE HOTELS (star_rating_code VARCHAR, price_range INTEGER); CREATE TABLE Ref_Hotel_Star_Ratings (star_rating_description VARCHAR, star_rating_code VARCHAR)
SELECT MAX(task_no) FROM table_name_16 WHERE head_of_household = "cathy"
What is the latest task number for which Cathy is head of household?
CREATE TABLE table_name_16 (task_no INTEGER, head_of_household VARCHAR)
SELECT MAX(crowd) FROM table_name_10 WHERE away_team = "north melbourne"
What is the highest crowd with north melbourne as away team?
CREATE TABLE table_name_10 (crowd INTEGER, away_team VARCHAR)
SELECT country FROM table_name_54 WHERE place = "t10" AND player = "len mattiace"
Which country has is Len Mattiace in T10 place?
CREATE TABLE table_name_54 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT SUM(height) FROM table_name_50 WHERE position = "c" AND player = "yiannis bourousis"
Which Height has a Position of c, and a Player of yiannis bourousis?
CREATE TABLE table_name_50 (height INTEGER, position VARCHAR, player VARCHAR)
SELECT MAX(position) FROM table_13018091_1 WHERE club = "Sheffield Eagles"
What position did the sheffield eagles finish in?
CREATE TABLE table_13018091_1 (position INTEGER, club VARCHAR)
SELECT MAX(games) FROM table_name_23 WHERE points = 100 AND goals_for < 356
What are the most games when the points are 100 and goals for less than 356?
CREATE TABLE table_name_23 (games INTEGER, points VARCHAR, goals_for VARCHAR)
SELECT flno FROM Flight ORDER BY distance LIMIT 3
Show the flight number of flights with three lowest distances.
CREATE TABLE Flight (flno VARCHAR, distance VARCHAR)
SELECT works_number FROM table_name_39 WHERE date = "1916" AND number = "153"
What is the Works Number that has a Number of 153 in 1916?
CREATE TABLE table_name_39 (works_number VARCHAR, date VARCHAR, number VARCHAR)
SELECT MIN(attendance) FROM table_name_67 WHERE h___a = "h" AND opponents = "roma"
What is the smallest number of people to attend a game with an H/A of h and the opponent was Roma?
CREATE TABLE table_name_67 (attendance INTEGER, h___a VARCHAR, opponents VARCHAR)
SELECT week_4 FROM table_name_26 WHERE week_3 = "laura nicole"
What is the week 3, prior to the when the week 4 was Laura Nicole?
CREATE TABLE table_name_26 (week_4 VARCHAR, week_3 VARCHAR)
SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY COUNT(*) DESC LIMIT 1
Show the most common apartment type code among apartments with more than 1 bathroom.
CREATE TABLE Apartments (apt_type_code VARCHAR, bathroom_count INTEGER)
SELECT AVG(subject) FROM table_name_56 WHERE plural = "am(ô)ra (we)"
What subject has a plural of am(ô)ra (we)?
CREATE TABLE table_name_56 (subject INTEGER, plural VARCHAR)
SELECT home_team FROM table_name_94 WHERE attendance = "112" AND away_team = "kentish town"
What is Home Team, when Attendance is "112", and when Away Team is "Kentish Town"?
CREATE TABLE table_name_94 (home_team VARCHAR, attendance VARCHAR, away_team VARCHAR)
SELECT total FROM table_name_70 WHERE nation = "czech republic"
What is the total number of medals by the Czech republic?
CREATE TABLE table_name_70 (total VARCHAR, nation VARCHAR)