question
stringlengths
17
201
answer
stringlengths
21
400
context
stringlengths
32
286
What is the result for thomas s. mcmillan?
SELECT result FROM table_1342359_39 WHERE incumbent = "Thomas S. McMillan"
CREATE TABLE table_1342359_39 (result VARCHAR, incumbent VARCHAR)
What is Accolade, when Country is "United States", and when Year is "1999"?
SELECT accolade FROM table_name_8 WHERE country = "united states" AND year = 1999
CREATE TABLE table_name_8 (accolade VARCHAR, country VARCHAR, year VARCHAR)
How many numbers of dances for place 1?
SELECT COUNT(number_of_dances) FROM table_26375386_28 WHERE place = 1
CREATE TABLE table_26375386_28 (number_of_dances VARCHAR, place VARCHAR)
What venue did he finish 7th?
SELECT venue FROM table_name_55 WHERE position = "7th"
CREATE TABLE table_name_55 (venue VARCHAR, position VARCHAR)
Who is the 92.5 with the press of 282.5?
SELECT 925 FROM table_name_26 WHERE press = "282.5"
CREATE TABLE table_name_26 (press VARCHAR)
Name the result for 1998
SELECT result FROM table_25030512_24 WHERE first_elected = "1998"
CREATE TABLE table_25030512_24 (result VARCHAR, first_elected VARCHAR)
How many council taxes are collected for renting arrears ?
SELECT COUNT(*) FROM rent_arrears
CREATE TABLE rent_arrears (Id VARCHAR)
On which date is Taylor Field the location?
SELECT date FROM table_23612439_2 WHERE location = "Taylor Field"
CREATE TABLE table_23612439_2 (date VARCHAR, location VARCHAR)
What was the average Game, when the attendance was higher than 56,040?
SELECT AVG(game) FROM table_name_46 WHERE attendance > 56 OFFSET 040
CREATE TABLE table_name_46 (game INTEGER, attendance INTEGER)
Which Home has a Visitor of ny rangers, and a Series of flyers win 4–3?
SELECT home FROM table_name_42 WHERE visitor = "ny rangers" AND series = "flyers win 4–3"
CREATE TABLE table_name_42 (home VARCHAR, visitor VARCHAR, series VARCHAR)
How many episodes had a viewership of 2.65 million?
SELECT COUNT(no_in_season) FROM table_18274425_1 WHERE us_viewers__millions_ = "2.65"
CREATE TABLE table_18274425_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
What year was Patricia Mcgourty nominated for a Tony award?
SELECT year FROM table_name_41 WHERE nominee = "patricia mcgourty" AND award = "tony award"
CREATE TABLE table_name_41 (year VARCHAR, nominee VARCHAR, award VARCHAR)
Which title has a US release of august 1996?
SELECT title FROM table_name_56 WHERE us_release = "august 1996"
CREATE TABLE table_name_56 (title VARCHAR, us_release VARCHAR)
Show names for all employees who do not have certificate of Boeing 737-800.
SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800"
CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Employee (name VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
What are all the episodes with an episode run time of 24:01?
SELECT episode FROM table_1429629_1 WHERE run_time = "24:01"
CREATE TABLE table_1429629_1 (episode VARCHAR, run_time VARCHAR)
What fuel system was used in 1960-62?
SELECT fuel_system FROM table_name_95 WHERE years = "1960-62"
CREATE TABLE table_name_95 (fuel_system VARCHAR, years VARCHAR)
What is the average position of Eesti PΓ΅levkivi JΓ΅hvi when they had less than 13 points and worse than a -12 goal differential?
SELECT AVG(position) FROM table_name_54 WHERE points < 13 AND goals_ + __ > -12
CREATE TABLE table_name_54 (position INTEGER, points VARCHAR, goals_ VARCHAR, __ VARCHAR)
Which Year has a Competition of commonwealth youth games?
SELECT AVG(year) FROM table_name_94 WHERE competition = "commonwealth youth games"
CREATE TABLE table_name_94 (year INTEGER, competition VARCHAR)
What is Zoe and Matt's result?
SELECT result FROM table_19744915_16 WHERE couple = "Zoe and Matt"
CREATE TABLE table_19744915_16 (result VARCHAR, couple VARCHAR)
What did United States score in the place t6?
SELECT score FROM table_name_21 WHERE country = "united states" AND place = "t6"
CREATE TABLE table_name_21 (score VARCHAR, country VARCHAR, place VARCHAR)
What is the name of the nurse has the most appointments?
SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE nurse (name VARCHAR, employeeid VARCHAR); CREATE TABLE appointment (prepnurse VARCHAR)
How many wins are with Dodge vehicles?
SELECT COUNT(miles__km_) FROM table_2241841_1 WHERE manufacturer = "Dodge"
CREATE TABLE table_2241841_1 (miles__km_ VARCHAR, manufacturer VARCHAR)
What was the overall record for the Pandas in the 2003-04 season?
SELECT overall FROM table_27069503_2 WHERE season = "2003-04"
CREATE TABLE table_27069503_2 (overall VARCHAR, season VARCHAR)
Name the result for ursinus college
SELECT result FROM table_21094951_1 WHERE opponent = "Ursinus College"
CREATE TABLE table_21094951_1 (result VARCHAR, opponent VARCHAR)
Please show the most common occupation of players.
SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE player (Occupation VARCHAR)
what is the pick # for william loftus?
SELECT pick__number FROM table_name_68 WHERE player = "william loftus"
CREATE TABLE table_name_68 (pick__number VARCHAR, player VARCHAR)
What did Taiwan score?
SELECT score FROM table_name_1 WHERE country = "taiwan"
CREATE TABLE table_name_1 (score VARCHAR, country VARCHAR)
Which team had a run 4 of 1:24.4?
SELECT team FROM table_name_7 WHERE run_4 = "1:24.4"
CREATE TABLE table_name_7 (team VARCHAR, run_4 VARCHAR)
Who is the rb player from team oakland?
SELECT player FROM table_name_69 WHERE position = "rb" AND team = "oakland"
CREATE TABLE table_name_69 (player VARCHAR, position VARCHAR, team VARCHAR)
What are the full name (first and last name) and salary for all employees who does not have any value for commission?
SELECT first_name, last_name, salary FROM employees WHERE commission_pct = "null"
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary VARCHAR, commission_pct VARCHAR)
How many points were scored by car number 10 that ended with a collision?
SELECT points FROM table_name_20 WHERE time_retired = "collision" AND car_no = "10"
CREATE TABLE table_name_20 (points VARCHAR, time_retired VARCHAR, car_no VARCHAR)
Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989?
SELECT surname FROM table_name_64 WHERE throws = "r" AND position = "p" AND dob = "26 april 1989"
CREATE TABLE table_name_64 (surname VARCHAR, dob VARCHAR, throws VARCHAR, position VARCHAR)
What's the nationality for Nicholas III?
SELECT nationality FROM table_name_97 WHERE elevator = "nicholas iii"
CREATE TABLE table_name_97 (nationality VARCHAR, elevator VARCHAR)
Who was the first elected for the republican party?
SELECT first_elected FROM table_name_82 WHERE party = "republican"
CREATE TABLE table_name_82 (first_elected VARCHAR, party VARCHAR)
What was the original airdate of the episode with production number 2x03?
SELECT original_airdate FROM table_26293875_3 WHERE prod_no = "2x03"
CREATE TABLE table_26293875_3 (original_airdate VARCHAR, prod_no VARCHAR)
What is the Tries against when lost shows 12 for pontycymmer rfc?
SELECT tries_against FROM table_name_79 WHERE lost = "12" AND club = "pontycymmer rfc"
CREATE TABLE table_name_79 (tries_against VARCHAR, lost VARCHAR, club VARCHAR)
What college team did Milan Kostolny play for?
SELECT college_junior_club_team FROM table_2886617_8 WHERE player = "Milan Kostolny"
CREATE TABLE table_2886617_8 (college_junior_club_team VARCHAR, player VARCHAR)
How many were first elected when the incumbent was Morgan M. Moulder?
SELECT COUNT(first_elected) FROM table_1342198_25 WHERE incumbent = "Morgan M. Moulder"
CREATE TABLE table_1342198_25 (first_elected VARCHAR, incumbent VARCHAR)
Which player has the score 72-67-69=208?
SELECT player FROM table_name_95 WHERE score = 72 - 67 - 69 = 208
CREATE TABLE table_name_95 (player VARCHAR, score VARCHAR)
What is the companion for the author Dave Stone?
SELECT companion_s_ FROM table_name_7 WHERE author = "dave stone"
CREATE TABLE table_name_7 (companion_s_ VARCHAR, author VARCHAR)
How many parks are there in Atlanta city?
SELECT COUNT(*) FROM park WHERE city = 'Atlanta'
CREATE TABLE park (city VARCHAR)
How many votes did Northern Ireland cast if the total was 35?
SELECT northern_ireland FROM table_10128185_2 WHERE total = 35
CREATE TABLE table_10128185_2 (northern_ireland VARCHAR, total VARCHAR)
What Notes after 1983 have a Position of 18th?
SELECT notes FROM table_name_64 WHERE year > 1983 AND position = "18th"
CREATE TABLE table_name_64 (notes VARCHAR, year VARCHAR, position VARCHAR)
Which manager had less than 287 losses, less than 80 wins, a win percentage of 0.296, and was employed in 1904?
SELECT manager FROM table_name_96 WHERE losses < 287 AND wins < 80 AND years = "1904" AND wpct = 0.296
CREATE TABLE table_name_96 (manager VARCHAR, wpct VARCHAR, years VARCHAR, losses VARCHAR, wins VARCHAR)
Which Place has a To par of –8?
SELECT place FROM table_name_19 WHERE to_par = "–8"
CREATE TABLE table_name_19 (place VARCHAR, to_par VARCHAR)
Which competition in Budapest, Hungary gave a result of 8th?
SELECT competition FROM table_name_1 WHERE position = "8th" AND venue = "budapest, hungary"
CREATE TABLE table_name_1 (competition VARCHAR, position VARCHAR, venue VARCHAR)
What is the total gold from New zealand and a rank less than 14?
SELECT SUM(gold) FROM table_name_18 WHERE nation = "new zealand" AND rank < 14
CREATE TABLE table_name_18 (gold INTEGER, nation VARCHAR, rank VARCHAR)
List all season numbers with production codes of 5m21.
SELECT season__number FROM table_23287683_1 WHERE production_code = "5M21"
CREATE TABLE table_23287683_1 (season__number VARCHAR, production_code VARCHAR)
Who was the leading scorer against the visiting team Bulls?
SELECT leading_scorer FROM table_name_96 WHERE visitor = "bulls"
CREATE TABLE table_name_96 (leading_scorer VARCHAR, visitor VARCHAR)
What Years have a Goal of 82?
SELECT years FROM table_name_24 WHERE goals = 82
CREATE TABLE table_name_24 (years VARCHAR, goals VARCHAR)
What pick did the Minnesota Twins have?
SELECT AVG(pick) FROM table_name_68 WHERE team = "minnesota twins"
CREATE TABLE table_name_68 (pick INTEGER, team VARCHAR)
Which Byes has an Against smaller than 1297, and a Club of avoca, and Wins larger than 12?
SELECT AVG(byes) FROM table_name_45 WHERE against < 1297 AND club = "avoca" AND wins > 12
CREATE TABLE table_name_45 (byes INTEGER, wins VARCHAR, against VARCHAR, club VARCHAR)
First elected in 1807 1817 in what district?
SELECT district FROM table_2668336_17 WHERE first_elected = "1807 1817"
CREATE TABLE table_2668336_17 (district VARCHAR, first_elected VARCHAR)
What is the most gold where silver is 0?
SELECT MAX(gold) FROM table_name_42 WHERE silver < 0
CREATE TABLE table_name_42 (gold INTEGER, silver INTEGER)
What is the number of GEO IDs for areas in Riggin township with water area over 0.587 sq mi and ANSI codes over 1759257?
SELECT COUNT(geo_id) FROM table_name_28 WHERE water__sqmi_ > 0.587 AND township = "riggin" AND ansi_code > 1759257
CREATE TABLE table_name_28 (geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR, township VARCHAR)
How many times was the overall attendance 17807?
SELECT COUNT(overall_attendance) FROM table_2771237_1 WHERE average_attendance = 17807
CREATE TABLE table_2771237_1 (overall_attendance VARCHAR, average_attendance VARCHAR)
What change caused a change of staff in March 9, 1865?
SELECT reason_for_change FROM table_2147588_3 WHERE date_of_successors_formal_installation = "March 9, 1865"
CREATE TABLE table_2147588_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)
Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie awards
SELECT cole FROM table_name_94 WHERE year < 2009 AND dylan = "nominated" AND work = "big daddy" AND award = "mtv movie awards"
CREATE TABLE table_name_94 (cole VARCHAR, award VARCHAR, work VARCHAR, year VARCHAR, dylan VARCHAR)
What is the season number of the episode seen by 10.11 million people in the US?
SELECT no_in_season FROM table_19995378_1 WHERE us_viewers__millions_ = "10.11"
CREATE TABLE table_19995378_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
What's the 2nd leg result in the round where Panionios is team #2?
SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number2 = "Panionios"
CREATE TABLE table_19130829_4 (team__number2 VARCHAR)
What is the 2008 population in 함ν₯ (Ham Hyung)?
SELECT SUM(population__2008_) FROM table_name_55 WHERE korean = "함ν₯"
CREATE TABLE table_name_55 (population__2008_ INTEGER, korean VARCHAR)
What team has a 118 Point for?
SELECT team FROM table_name_24 WHERE points_for = "118"
CREATE TABLE table_name_24 (team VARCHAR, points_for VARCHAR)
What was the Proposed date of the entry that has a CERCLIS ID of al0001058056?
SELECT proposed FROM table_name_56 WHERE cerclis_id = "al0001058056"
CREATE TABLE table_name_56 (proposed VARCHAR, cerclis_id VARCHAR)
What was roberto travern's record when he fought against john salter?
SELECT record FROM table_name_60 WHERE opponent = "john salter"
CREATE TABLE table_name_60 (record VARCHAR, opponent VARCHAR)
On what Week was the Result W 34–24?
SELECT AVG(week) FROM table_name_22 WHERE result = "w 34–24"
CREATE TABLE table_name_22 (week INTEGER, result VARCHAR)
What was the maximum number of wins?
SELECT MAX(wins) FROM table_22081847_1
CREATE TABLE table_22081847_1 (wins INTEGER)
What is the lowest played 2 number with less than 83 losses and less than 65 draws with Chernomorets Novorossiysk in season 8?
SELECT MIN(played_2) FROM table_name_65 WHERE lost > 83 AND seasons = 8 AND club_1 = "chernomorets novorossiysk" AND drawn < 65
CREATE TABLE table_name_65 (played_2 INTEGER, drawn VARCHAR, club_1 VARCHAR, lost VARCHAR, seasons VARCHAR)
How many points did ginger have when she was ranked 5th on a 350cc class bike?
SELECT COUNT(points) FROM table_name_73 WHERE class = "350cc" AND rank = "5th"
CREATE TABLE table_name_73 (points VARCHAR, class VARCHAR, rank VARCHAR)
Which Laps have a Finish of 15?
SELECT laps FROM table_name_30 WHERE finish = "15"
CREATE TABLE table_name_30 (laps VARCHAR, finish VARCHAR)
What position does the player from kent state play?
SELECT position FROM table_24540893_6 WHERE school = "Kent State"
CREATE TABLE table_24540893_6 (position VARCHAR, school VARCHAR)
What team did the Flames play against when 526 people attended the game?
SELECT opponent FROM table_name_11 WHERE attendance = 526
CREATE TABLE table_name_11 (opponent VARCHAR, attendance VARCHAR)
The canadian airdate of 11 february 2008 applied to what series number?
SELECT COUNT(no_in_series) FROM table_10935205_1 WHERE canadian_airdate = "11 February 2008"
CREATE TABLE table_10935205_1 (no_in_series VARCHAR, canadian_airdate VARCHAR)
What was the record after the game on November 10?
SELECT record FROM table_27755784_6 WHERE date = "November 10"
CREATE TABLE table_27755784_6 (record VARCHAR, date VARCHAR)
Name the school/s with is size of 604.
SELECT school FROM table_1984697_85 WHERE size = 604
CREATE TABLE table_1984697_85 (school VARCHAR, size VARCHAR)
What platform came out before 2009 with the game wii sports?
SELECT platform_s_ FROM table_name_38 WHERE year < 2009 AND game = "wii sports"
CREATE TABLE table_name_38 (platform_s_ VARCHAR, year VARCHAR, game VARCHAR)
What is the value in 2008 when 1R is 2009 and 3R?
SELECT 2008 FROM table_name_77 WHERE 2009 = "1r" AND 2006 = "3r"
CREATE TABLE table_name_77 (Id VARCHAR)
What institution won 2nd more recently than 2007 with Peter Agre as Chief Judge?
SELECT institution FROM table_name_67 WHERE year > 2007 AND award = "2nd" AND chief_judge = "peter agre"
CREATE TABLE table_name_67 (institution VARCHAR, chief_judge VARCHAR, year VARCHAR, award VARCHAR)
How many Podiums have a Class of 250cc, and an F laps of 0?
SELECT SUM(podiums) FROM table_name_18 WHERE class = "250cc" AND f_laps = 0
CREATE TABLE table_name_18 (podiums INTEGER, class VARCHAR, f_laps VARCHAR)
Which championship has a margin of 8 strokes?
SELECT championship FROM table_name_89 WHERE margin = "8 strokes"
CREATE TABLE table_name_89 (championship VARCHAR, margin VARCHAR)
How much Converted has a Number of 35, and a Withdrawn smaller than 1952?
SELECT COUNT(converted) FROM table_name_71 WHERE number = "35" AND withdrawn < 1952
CREATE TABLE table_name_71 (converted VARCHAR, number VARCHAR, withdrawn VARCHAR)
Where did the Paris Marathon occur?
SELECT venue FROM table_name_47 WHERE competition = "paris marathon"
CREATE TABLE table_name_47 (venue VARCHAR, competition VARCHAR)
Which engine was on a car with G tires, a chassis model of 003 002 004 005 006, driven by Jackie Stewart?
SELECT engine FROM table_name_98 WHERE tyre = "g" AND chassis = "003 002 004 005 006" AND driver = "jackie stewart"
CREATE TABLE table_name_98 (engine VARCHAR, driver VARCHAR, tyre VARCHAR, chassis VARCHAR)
On February 26, who was the leading scorer?
SELECT leading_scorer FROM table_name_30 WHERE date = "february 26"
CREATE TABLE table_name_30 (leading_scorer VARCHAR, date VARCHAR)
Name the most points for 1-3-1 record
SELECT MAX(points) FROM table_27539272_4 WHERE record = "1-3-1"
CREATE TABLE table_27539272_4 (points INTEGER, record VARCHAR)
What is the highest Kuala Lumpur value with a Durban value less than 1 and a Mar Del Plata value greater than 0?
SELECT MAX(kuala_lumpur) FROM table_name_82 WHERE durban < 1 AND mar_del_plata > 0
CREATE TABLE table_name_82 (kuala_lumpur INTEGER, durban VARCHAR, mar_del_plata VARCHAR)
What did the away team score at Moorabbin Oval?
SELECT away_team AS score FROM table_name_24 WHERE venue = "moorabbin oval"
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
What is the notes for the hypo-meeting tournament in 2012?
SELECT notes FROM table_name_95 WHERE tournament = "hypo-meeting" AND year = 2012
CREATE TABLE table_name_95 (notes VARCHAR, tournament VARCHAR, year VARCHAR)
What is the largest number of gold medals for Canada with more than 7 bronze medals?
SELECT MAX(gold) FROM table_name_31 WHERE nation = "canada" AND bronze > 7
CREATE TABLE table_name_31 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
What is the record of the game played on 2/17/1974?
SELECT record FROM table_name_55 WHERE date = "2/17/1974"
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR)
What average week has october 8, 1950 as the date?
SELECT AVG(week) FROM table_name_8 WHERE date = "october 8, 1950"
CREATE TABLE table_name_8 (week INTEGER, date VARCHAR)
How many Kent State University's are there?
SELECT COUNT(location) FROM table_26351260_1 WHERE institution = "Kent State University"
CREATE TABLE table_26351260_1 (location VARCHAR, institution VARCHAR)
What is the lowest enrollment that has Lafayette as the location?
SELECT MIN(enrollment) FROM table_name_46 WHERE location = "lafayette"
CREATE TABLE table_name_46 (enrollment INTEGER, location VARCHAR)
The match that lasted 2:43 has what record?
SELECT record FROM table_name_38 WHERE time = "2:43"
CREATE TABLE table_name_38 (record VARCHAR, time VARCHAR)
What is the issued serial given in 1966?
SELECT serials_issued FROM table_name_71 WHERE issued = 1966
CREATE TABLE table_name_71 (serials_issued VARCHAR, issued VARCHAR)
Which band plays Self Versus Self - Immersion?
SELECT band FROM table_name_17 WHERE album_or_song = "self versus self - immersion"
CREATE TABLE table_name_17 (band VARCHAR, album_or_song VARCHAR)
What's the most laps when grid is 16?
SELECT MAX(laps) FROM table_name_93 WHERE grid = 16
CREATE TABLE table_name_93 (laps INTEGER, grid VARCHAR)
Tell me the bore and stroke for Engine of 351-2v cleveland v8
SELECT bore_ & _stroke FROM table_name_9 WHERE engine = "351-2v cleveland v8"
CREATE TABLE table_name_9 (bore_ VARCHAR, _stroke VARCHAR, engine VARCHAR)
What is the number for D 44 √ when D 47 √ is r 7?
SELECT d_44_√ FROM table_name_19 WHERE d_47_√ = "r 7"
CREATE TABLE table_name_19 (d_44_√ VARCHAR, d_47_√ VARCHAR)
Which Year completed has a Dam type of earthfill embankment, and a Dam constructed of khancoban dam?
SELECT MAX(year_completed) FROM table_name_25 WHERE dam_type = "earthfill embankment" AND dam_constructed = "khancoban dam"
CREATE TABLE table_name_25 (year_completed INTEGER, dam_type VARCHAR, dam_constructed VARCHAR)
What year was the expansion in the city of San Juan?
SELECT COUNT(year) FROM table_name_31 WHERE city = "san juan"
CREATE TABLE table_name_31 (year VARCHAR, city VARCHAR)