answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT award_ceremony FROM table_name_52 WHERE category = "outstanding actress in a musical" AND nominee = "kristin chenoweth"
What year was Kristin Chenoweth nominated in the category of outstanding actress in a musical?
CREATE TABLE table_name_52 (award_ceremony VARCHAR, category VARCHAR, nominee VARCHAR)
SELECT qual_2 FROM table_name_42 WHERE team = "forsythe racing" AND best = "1:09.515"
What is the qual 2 of team Forsythe racing, which has a 1:09.515 best?
CREATE TABLE table_name_42 (qual_2 VARCHAR, team VARCHAR, best VARCHAR)
SELECT MIN(v_mph_) FROM table_name_36 WHERE saffir_simpson_category = 4 AND year = 2005
What was the lowest V(mph) for a Saffir-Simpson of 4 in 2005?
CREATE TABLE table_name_36 (v_mph_ INTEGER, saffir_simpson_category VARCHAR, year VARCHAR)
SELECT COUNT(list_entry_number) FROM table_name_95 WHERE location = "platting road, lydgate"
How many list entry numbers are located in Platting Road, Lydgate?
CREATE TABLE table_name_95 (list_entry_number VARCHAR, location VARCHAR)
SELECT date_entered_service FROM table_11662133_3 WHERE ships_name = "Zeeland"
what's the date where ships name is zeeland entered service
CREATE TABLE table_11662133_3 (date_entered_service VARCHAR, ships_name VARCHAR)
SELECT instrumental FROM table_name_87 WHERE adverbial = "chven-s"
What instrumental has chven-s as the adverbial?
CREATE TABLE table_name_87 (instrumental VARCHAR, adverbial VARCHAR)
SELECT record FROM table_name_36 WHERE time = "5:00" AND opponent = "dennis bermudez"
What was the record when matt grice fought dennis bermudez with a time of 5:00?
CREATE TABLE table_name_36 (record VARCHAR, time VARCHAR, opponent VARCHAR)
SELECT MAX(wins) FROM table_name_20 WHERE tournament = "masters tournament" AND events < 15
How many wins were in the Masters Tournament with less than 15 events?
CREATE TABLE table_name_20 (wins INTEGER, tournament VARCHAR, events VARCHAR)
SELECT rank FROM table_name_30 WHERE 2010 = "5,040,000"
What was the rank of the park that had a value of 5,040,000 in 2010?
CREATE TABLE table_name_30 (rank VARCHAR)
SELECT record FROM table_name_91 WHERE date = "december 20"
What is the Record with a Date that is december 20?
CREATE TABLE table_name_91 (record VARCHAR, date VARCHAR)
SELECT rebounds FROM table_26360571_2 WHERE _number = 2
List the number of recovers for player #2.
CREATE TABLE table_26360571_2 (rebounds VARCHAR, _number VARCHAR)
SELECT AVG(pick__number) FROM table_name_54 WHERE position = "wide receiver" AND college = "southern miss" AND overall < 186
What was the Pick Number when the position was wide receiver, the college was Southern Miss with an overall less than 186?
CREATE TABLE table_name_54 (pick__number INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR)
SELECT title FROM table_name_38 WHERE transliteration = "fal'shivaya nota"
What Title's Transliteration is Fal'shivaya Nota?
CREATE TABLE table_name_38 (title VARCHAR, transliteration VARCHAR)
SELECT MAX(league) FROM table_name_7 WHERE title_playoff > 0
What is the highest League, when Title Playoff is greater than 0?
CREATE TABLE table_name_7 (league INTEGER, title_playoff INTEGER)
SELECT MIN(laps) FROM table_name_62 WHERE driver = "christian vietoris" AND grid < 6
What is the lowest laps driver Christian Vietoris with a grid smaller than 6 has?
CREATE TABLE table_name_62 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT home_team FROM table_name_16 WHERE crowd > 41 OFFSET 846
Who was the home team when attendance was over 41,846?
CREATE TABLE table_name_16 (home_team VARCHAR, crowd INTEGER)
SELECT withdrawn FROM table_name_93 WHERE name = "charles dickens"
Name the withdrawn for charles dickens
CREATE TABLE table_name_93 (withdrawn VARCHAR, name VARCHAR)
SELECT round FROM table_25505246_7 WHERE against = "Austria"
What kind of round was played when Hanne Skak Jensen faced Austria?
CREATE TABLE table_25505246_7 (round VARCHAR, against VARCHAR)
SELECT COUNT(artist) FROM table_28140141_1 WHERE show = "Thoroughly Modern Millie"
How many artists were there for the show thoroughly modern millie?
CREATE TABLE table_28140141_1 (artist VARCHAR, show VARCHAR)
SELECT year FROM table_name_89 WHERE location = "philadelphia municipal stadium"
What is Year, when Location is Philadelphia Municipal Stadium?
CREATE TABLE table_name_89 (year VARCHAR, location VARCHAR)
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead"
How many songs have a lead vocal?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT score FROM table_name_20 WHERE player = "nick price"
What is Nick Price's score?
CREATE TABLE table_name_20 (score VARCHAR, player VARCHAR)
SELECT second FROM table_name_10 WHERE team = "north america" AND third = "cathy overton-clapham"
Who is the second on the North America team for which Cathy Overton-Clapham the third?
CREATE TABLE table_name_10 (second VARCHAR, team VARCHAR, third VARCHAR)
SELECT COUNT(year) FROM table_name_36 WHERE notes = "5000 m" AND competition = "world junior championships in athletics"
what is the year when the notes is 5000 m and the competition is world junior championships in athletics?
CREATE TABLE table_name_36 (year VARCHAR, notes VARCHAR, competition VARCHAR)
SELECT result FROM table_name_77 WHERE location = "riverfront stadium" AND week = "8"
What was the result of the game at the Riverfront Stadium after week 8?
CREATE TABLE table_name_77 (result VARCHAR, location VARCHAR, week VARCHAR)
SELECT pinyin FROM table_name_44 WHERE county = "changhua"
Which Pinyin has a County of changhua?
CREATE TABLE table_name_44 (pinyin VARCHAR, county VARCHAR)
SELECT date FROM table_name_48 WHERE home = "houston rockets"
When did the Houston Rockets play Home?
CREATE TABLE table_name_48 (date VARCHAR, home VARCHAR)
SELECT points FROM table_14342592_3 WHERE player = "Clark"
How many points does Clark have?
CREATE TABLE table_14342592_3 (points VARCHAR, player VARCHAR)
SELECT MAX(first_elected) FROM table_1342149_42 WHERE district = "Tennessee 7"
In the District Tennessee 7 what is the number of first elected?
CREATE TABLE table_1342149_42 (first_elected INTEGER, district VARCHAR)
SELECT tournament FROM table_name_13 WHERE date = 1993 AND score_in_the_final = "6–2, 2–6, 7–5"
Which Tournament is in 1993 with a Score in the final of 6–2, 2–6, 7–5?
CREATE TABLE table_name_13 (tournament VARCHAR, date VARCHAR, score_in_the_final VARCHAR)
SELECT region FROM table_166346_1 WHERE production___bbl__day_ = "1,213,000 (21st)"
Which regions had a production (bbl/day) of 1,213,000 (21st)?
CREATE TABLE table_166346_1 (region VARCHAR, production___bbl__day_ VARCHAR)
SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2
What are the hometowns that are shared by at least two gymnasts?
CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)
SELECT directed_by FROM table_21312845_1 WHERE production_code > 4301103.585233785 AND written_by = "Curtis Kheel"
Who directed the episode with a production code greater than 4301103.585233785 that was written by Curtis Kheel?
CREATE TABLE table_21312845_1 (directed_by VARCHAR, production_code VARCHAR, written_by VARCHAR)
SELECT country FROM table_name_53 WHERE album = "best of" AND weeks_on_chart < 5
what is the country with the album best of and weeks on chart is less than 5?
CREATE TABLE table_name_53 (country VARCHAR, album VARCHAR, weeks_on_chart VARCHAR)
SELECT COUNT(nhl_team_s_) FROM table_1205598_1 WHERE metropolitan_area = "Phoenix, Arizona"
How many NHL teams are there in the Phoenix, Arizona area?
CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, metropolitan_area VARCHAR)
SELECT years_for_jazz FROM table_name_52 WHERE school_club_team = "southern methodist"
What years did the Utah Jazz Player from Southern Methodist, Play?
CREATE TABLE table_name_52 (years_for_jazz VARCHAR, school_club_team VARCHAR)
SELECT state__class_ FROM table_225099_3 WHERE reason_for_change = "Resigned May 15, 1820"
what is the state for reason for change is resigned may 15, 1820?
CREATE TABLE table_225099_3 (state__class_ VARCHAR, reason_for_change VARCHAR)
SELECT score FROM table_name_28 WHERE player = "ernie els"
What is the Score that has a Player of Ernie Els?
CREATE TABLE table_name_28 (score VARCHAR, player VARCHAR)
SELECT MIN(year) FROM table_26609690_1
What is the earliest year on the chart?
CREATE TABLE table_26609690_1 (year INTEGER)
SELECT COUNT(round) FROM table_name_94 WHERE position = "d" AND player = "andrew campbell"
What is the total number of Round, when Position is "D", and when Player is "Andrew Campbell"?
CREATE TABLE table_name_94 (round VARCHAR, position VARCHAR, player VARCHAR)
SELECT home_team AS score FROM table_16387953_1 WHERE home_team = "Adelaide"
What are the scores for games where the home team is Adelaide?
CREATE TABLE table_16387953_1 (home_team VARCHAR)
SELECT winner FROM table_name_49 WHERE stage = "3"
Who was the winner in stage 3?
CREATE TABLE table_name_49 (winner VARCHAR, stage VARCHAR)
SELECT COUNT(census_ranking) FROM table_170961_2 WHERE area_km_2 = "191.43"
at area 191.43 what is the total number of census ranking?
CREATE TABLE table_170961_2 (census_ranking VARCHAR, area_km_2 VARCHAR)
SELECT COUNT(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Atsushi" AND t1.lname = "Ohori"
How many papers have "Atsushi Ohori" published?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE papers (paperid VARCHAR)
SELECT SUM(burnley) FROM table_name_97 WHERE fylde < 1 AND rossendale > 0
How much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0?
CREATE TABLE table_name_97 (burnley INTEGER, fylde VARCHAR, rossendale VARCHAR)
SELECT score FROM table_name_98 WHERE country = "united states" AND player = "raymond floyd"
What is Score, when Country is "United States", and when Player is "Raymond Floyd"?
CREATE TABLE table_name_98 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT AVG(attendance) FROM table_name_10 WHERE scorers = "steven, johnston, walters, mccoist, i.ferguson"
Can you tell me the average Attendance that has the Scorers of steven, johnston, walters, mccoist, i.ferguson?
CREATE TABLE table_name_10 (attendance INTEGER, scorers VARCHAR)
SELECT loss FROM table_name_52 WHERE record = "32–34"
What was the loss of the game when the record was 32–34?
CREATE TABLE table_name_52 (loss VARCHAR, record VARCHAR)
SELECT winner FROM table_name_97 WHERE finalist = "andre agassi"
WHo is the Winner of andre agassi Finalist?
CREATE TABLE table_name_97 (winner VARCHAR, finalist VARCHAR)
SELECT stage FROM table_name_35 WHERE trofeo_fast_team = "gatorade"
During which stage was gatorade the Trofeo Fast Team?
CREATE TABLE table_name_35 (stage VARCHAR, trofeo_fast_team VARCHAR)
SELECT first_class_team FROM table_name_70 WHERE date_of_birth = "23 february 1973"
What is the first class team of the player born on 23 February 1973?
CREATE TABLE table_name_70 (first_class_team VARCHAR, date_of_birth VARCHAR)
SELECT COUNT(total) FROM table_name_72 WHERE silver > 6 AND nation = "norway" AND gold > 10
What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10?
CREATE TABLE table_name_72 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT score FROM table_name_35 WHERE winning_team = "wei chuan dragons"
Which Score that has a Winning team of wei chuan dragons?
CREATE TABLE table_name_35 (score VARCHAR, winning_team VARCHAR)
SELECT torque FROM table_name_72 WHERE engine = "6.3l v12"
What is the torque of the 6.3l v12 engine?
CREATE TABLE table_name_72 (torque VARCHAR, engine VARCHAR)
SELECT year_startup FROM table_name_18 WHERE operator = "albian sands" AND project_name = "jackpine mine (ph 2)"
What was the startup year for the Jackpine Mine (ph 2) project with an albian sands operator?
CREATE TABLE table_name_18 (year_startup VARCHAR, operator VARCHAR, project_name VARCHAR)
SELECT written_by FROM table_23799653_1 WHERE directed_by = "Karen Gaviola"
Who wrote the episode whose director is Karen Gaviola?
CREATE TABLE table_23799653_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT name, open_year FROM manufacturer WHERE num_of_shops > 10 OR Num_of_Factories < 10
Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.
CREATE TABLE manufacturer (name VARCHAR, open_year VARCHAR, num_of_shops VARCHAR, Num_of_Factories VARCHAR)
SELECT SUM(rating___percentage_) FROM table_name_62 WHERE owner = "cctv" AND position > 7
Name the sum of rating % for cctv and position more than 7
CREATE TABLE table_name_62 (rating___percentage_ INTEGER, owner VARCHAR, position VARCHAR)
SELECT attendance FROM table_name_63 WHERE week = 4
Overall attendance for week 4?
CREATE TABLE table_name_63 (attendance VARCHAR, week VARCHAR)
SELECT base_pairs FROM table_name_79 WHERE genes = 832
What base pair has 832 genes?
CREATE TABLE table_name_79 (base_pairs VARCHAR, genes VARCHAR)
SELECT score FROM table_name_53 WHERE runner_up = "goran ivanišević" AND tournament = "algarve"
what was the score when goran ivanišević was runner up and the tournament was in algarve?
CREATE TABLE table_name_53 (score VARCHAR, runner_up VARCHAR, tournament VARCHAR)
SELECT network FROM table_16884579_1 WHERE host_s_ = "Dré Steemans Ann Van Elsen"
Name the network for dré steemans ann van elsen
CREATE TABLE table_16884579_1 (network VARCHAR, host_s_ VARCHAR)
SELECT winner FROM table_name_41 WHERE year > 1989 AND owner = "stronach stable"
Who was the winner after 1989 when Stronach Stable was the owner?
CREATE TABLE table_name_41 (winner VARCHAR, year VARCHAR, owner VARCHAR)
SELECT number FROM table_name_2 WHERE builder = "baldwin locomotive works" AND works_number = 40864
Baldwin Locomotive Works, also with works number 40864, is listed as what number?
CREATE TABLE table_name_2 (number VARCHAR, builder VARCHAR, works_number VARCHAR)
SELECT SUM(crowd) FROM table_name_1 WHERE venue = "lake oval"
How many people watched the game at Lake Oval?
CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
SELECT rank FROM table_name_28 WHERE season = 1
What rank for season 1?
CREATE TABLE table_name_28 (rank VARCHAR, season VARCHAR)
SELECT call_sign FROM table_name_67 WHERE frequency = "0 105.7 fm"
What is the call sign for the frequency of 0 105.7 fm?
CREATE TABLE table_name_67 (call_sign VARCHAR, frequency VARCHAR)
SELECT authority FROM table_name_43 WHERE decile < 6 AND roll < 65
tell me the authority that has a decile less than 6 and roll less than 65.
CREATE TABLE table_name_43 (authority VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT cylinder_size FROM table_25695027_1 WHERE number_built = "88"
What was the cylinder size of this engine that was made with only 88 pieces?
CREATE TABLE table_25695027_1 (cylinder_size VARCHAR, number_built VARCHAR)
SELECT date FROM table_name_72 WHERE score = "3–6, 7–6(6), 5–7"
What is the Date of the Tournament with a Score of 3–6, 7–6(6), 5–7?
CREATE TABLE table_name_72 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_89 WHERE record = "53–104"
What was the date of the game when the record was 53–104?
CREATE TABLE table_name_89 (date VARCHAR, record VARCHAR)
SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1
What is the code of airport that has the highest number of flights?
CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR)
SELECT tournament FROM table_name_11 WHERE runner_s__up = "anthony wall"
For which tournament was Anthony Wall the runner-up?
CREATE TABLE table_name_11 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT AVG(laps) FROM table_name_85 WHERE time_retired = "+1 lap" AND driver = "mark blundell"
how many laps have a time/retired of +1 lap and mark blundell is the driver?
CREATE TABLE table_name_85 (laps INTEGER, time_retired VARCHAR, driver VARCHAR)
SELECT country FROM table_name_37 WHERE place = "t3" AND player = "fred couples"
Which country placed t3 and had the player Fred Couples?
CREATE TABLE table_name_37 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT name FROM table_name_80 WHERE district = "total:"
What is the name for district total:?
CREATE TABLE table_name_80 (name VARCHAR, district VARCHAR)
SELECT drawn FROM table_name_46 WHERE against < 20 AND points = 15
What is the Drawn has an Against smaller than 20 and Points of 15?
CREATE TABLE table_name_46 (drawn VARCHAR, against VARCHAR, points VARCHAR)
SELECT incumbent FROM table_1341577_22 WHERE first_elected = 1974
What is the incumbent for 1974?
CREATE TABLE table_1341577_22 (incumbent VARCHAR, first_elected VARCHAR)
SELECT weight__kg_ FROM table_1358608_4 WHERE race = "Ranvet Stakes"
What was the weight in kg on the day of the race at Ranvet Stakes?
CREATE TABLE table_1358608_4 (weight__kg_ VARCHAR, race VARCHAR)
SELECT singular_word FROM table_name_24 WHERE plural_word = "hands"
The plural word of hands uses what singular word?
CREATE TABLE table_name_24 (singular_word VARCHAR, plural_word VARCHAR)
SELECT score FROM table_name_80 WHERE player = "craig stadler"
What was Craig Stadler's score?
CREATE TABLE table_name_80 (score VARCHAR, player VARCHAR)
SELECT country FROM table_name_9 WHERE place = "t6" AND score = 75 - 70 = 145
Which country has t6 as a place and 75-70=145 as the score?
CREATE TABLE table_name_9 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT MIN(fum_rec) AS TD FROM table_15581223_8
Name the least fum rec td
CREATE TABLE table_15581223_8 (fum_rec INTEGER)
SELECT landfall FROM table_name_85 WHERE saffir_simpson_category = 1 AND year = 1999
Which landfall was in category 1 for Saffir-Simpson in 1999?
CREATE TABLE table_name_85 (landfall VARCHAR, saffir_simpson_category VARCHAR, year VARCHAR)
SELECT document_name, access_count FROM documents ORDER BY document_name
Find the name and access counts of all documents, in alphabetic order of the document name.
CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR)
SELECT record FROM table_name_64 WHERE date = "may 20"
What was the record on May 20?
CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR)
SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.
CREATE TABLE Students (student_id VARCHAR, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)
SELECT AVG(week) FROM table_name_9 WHERE date = "november 12, 1978"
What's the mean week number for November 12, 1978?
CREATE TABLE table_name_9 (week INTEGER, date VARCHAR)
SELECT machine FROM table_name_76 WHERE rider = "keith t. gawler"
What machine did Keith T. Gawler ride?
CREATE TABLE table_name_76 (machine VARCHAR, rider VARCHAR)
SELECT league FROM table_name_72 WHERE avg_attendance_† = "244"
What league has an average attendance of 244?
CREATE TABLE table_name_72 (league VARCHAR, avg_attendance_† VARCHAR)
SELECT reason_for_change FROM table_2147588_3 WHERE date_of_successors_formal_installation = "March 9, 1865"
What change caused a change of staff in March 9, 1865?
CREATE TABLE table_2147588_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT january FROM table_name_55 WHERE opponent = "toronto maple leafs"
Which January has an Opponent of toronto maple leafs?
CREATE TABLE table_name_55 (january VARCHAR, opponent VARCHAR)
SELECT team FROM table_name_76 WHERE game > 56 AND score = "l 85–90 (ot)"
What is the Team with a game of more than 56, and the score is l 85–90 (ot)?
CREATE TABLE table_name_76 (team VARCHAR, game VARCHAR, score VARCHAR)
SELECT date FROM table_name_87 WHERE venue = "mcg"
What date did VFL play MCG?
CREATE TABLE table_name_87 (date VARCHAR, venue VARCHAR)
SELECT t_wyka FROM table_name_1 WHERE precincts = "51/55"
Name the T. Wyka has a Precincts of 51/55?
CREATE TABLE table_name_1 (t_wyka VARCHAR, precincts VARCHAR)
SELECT MAX(pick__number) FROM table_14650373_1
What is the highest pick number?
CREATE TABLE table_14650373_1 (pick__number INTEGER)
SELECT team_name FROM table_22319599_1 WHERE school = "Rend Lake College"
If the school is Rend Lake College, what is the team name?
CREATE TABLE table_22319599_1 (team_name VARCHAR, school VARCHAR)
SELECT qaxmuğal FROM table_name_81 WHERE fıstıqlı = "keşqutan"
What is the Qaxmuğal village with a Fistiqli village keşqutan?
CREATE TABLE table_name_81 (qaxmuğal VARCHAR, fıstıqlı VARCHAR)
SELECT player FROM table_name_23 WHERE score = 69 - 68 - 71 = 208
Who is the player with a 69-68-71=208 score?
CREATE TABLE table_name_23 (player VARCHAR, score VARCHAR)
SELECT score FROM table_name_32 WHERE date = "june 15"
On the date of June 15 what was the score?
CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR)