answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT fourth_place FROM table_name_11 WHERE year = 1966
What is the Fourth place with a Year that is 1966?
CREATE TABLE table_name_11 (fourth_place VARCHAR, year VARCHAR)
SELECT MIN(year) FROM table_name_90 WHERE award = "drama desk award" AND nominated_work = "the mineola twins"
What is the earliest year with a Drama Desk award when the Mineola Twins was a nominated work?
CREATE TABLE table_name_90 (year INTEGER, award VARCHAR, nominated_work VARCHAR)
SELECT COUNT(written_by) FROM table_24910733_1 WHERE us_viewers__millions_ = "11.21"
How many writers are listed when the U.S viewers are 11.21 million?
CREATE TABLE table_24910733_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT venue FROM table_name_92 WHERE result = "draw"
Which venue has a Result of draw?
CREATE TABLE table_name_92 (venue VARCHAR, result VARCHAR)
SELECT visiting_team FROM table_name_59 WHERE date = "october 15, 2006"
Who was the visiting team on October 15, 2006?
CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR)
SELECT 2006 FROM table_name_74 WHERE 2007 = "1r"
What 2006 has 1r as the 2007?
CREATE TABLE table_name_74 (Id VARCHAR)
SELECT finish FROM table_11220799_2 WHERE first_air_date = "March 6, 2008"
What were the results of episodes with the first air date of March 6, 2008?
CREATE TABLE table_11220799_2 (finish VARCHAR, first_air_date VARCHAR)
SELECT notes FROM table_name_40 WHERE authors = "zhou clarke zhang"
Which Notes has Authors of zhou clarke zhang?
CREATE TABLE table_name_40 (notes VARCHAR, authors VARCHAR)
SELECT MAX(wickets) FROM table_name_33 WHERE best_bowling = "2/32" AND matches < 5
what is the highest wickets when the best bowling is 2/32 and matches is less than 5?
CREATE TABLE table_name_33 (wickets INTEGER, best_bowling VARCHAR, matches VARCHAR)
SELECT original_air_date FROM table_18712423_3 WHERE directed_by = "Ian Barry" AND written_by = "Philip Dalkin"
What is the original air date of the episode directed by Ian Barry and written by Philip Dalkin?
CREATE TABLE table_18712423_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT AVG(quantity) FROM table_name_86 WHERE axle_arrangement = "2′c h2"
Which Quantity has an Axle arrangement of 2′c h2?
CREATE TABLE table_name_86 (quantity INTEGER, axle_arrangement VARCHAR)
SELECT accolade FROM table_name_61 WHERE country = "usa" AND year < 2009
Which accolade has USA as the country, with a year less than 2009?
CREATE TABLE table_name_61 (accolade VARCHAR, country VARCHAR, year VARCHAR)
SELECT venue FROM table_name_53 WHERE scored = 1 AND competition = "2006 fifa world cup qualification"
At what venue did Sigurd Rushfeldt score 1 point in the 2006 FIFA World Cup Qualification competition?
CREATE TABLE table_name_53 (venue VARCHAR, scored VARCHAR, competition VARCHAR)
SELECT record FROM table_name_26 WHERE date = "september 4"
What was the record on September 4?
CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR)
SELECT 1 AS st_prize___$__ FROM table_name_95 WHERE location = "scotland"
What is the 1st prize of the tournament in Scotland?
CREATE TABLE table_name_95 (location VARCHAR)
SELECT country FROM table_name_68 WHERE rank = 2
What country is ranked #2?
CREATE TABLE table_name_68 (country VARCHAR, rank VARCHAR)
SELECT MAX(season__number) FROM table_15717093_1 WHERE series__number = 102
What season number corresponds to series number 102?
CREATE TABLE table_15717093_1 (season__number INTEGER, series__number VARCHAR)
SELECT record FROM table_23346303_3 WHERE opponent = "Central Connecticut"
what is the record where the opponent is central connecticut?
CREATE TABLE table_23346303_3 (record VARCHAR, opponent VARCHAR)
SELECT metric_value FROM table_name_4 WHERE unit = "dolia"
What Metric value has a Unit of dolia?
CREATE TABLE table_name_4 (metric_value VARCHAR, unit VARCHAR)
SELECT books FROM table_name_23 WHERE gender = "male" AND animal_name = "bounder"
What are the male Bounder books?
CREATE TABLE table_name_23 (books VARCHAR, gender VARCHAR, animal_name VARCHAR)
SELECT air_date FROM table_11244302_1 WHERE share = 11
Which air date had an 11 share
CREATE TABLE table_11244302_1 (air_date VARCHAR, share VARCHAR)
SELECT silver FROM table_name_53 WHERE year = 2000
Who won Silver in 2000?
CREATE TABLE table_name_53 (silver VARCHAR, year VARCHAR)
SELECT COUNT(total) FROM table_name_11 WHERE finish = "t21" AND to_par > 23
What is the total number of Total(s), when Finish is "T21", and when To Par is greater than 23?
CREATE TABLE table_name_11 (total VARCHAR, finish VARCHAR, to_par VARCHAR)
SELECT reason_for_change FROM table_2417345_4 WHERE successor = "William Milnes, Jr. (C)"
What was the reason for change when the successor was William Milnes, Jr. (C)?
CREATE TABLE table_2417345_4 (reason_for_change VARCHAR, successor VARCHAR)
SELECT record FROM table_name_36 WHERE date = "dec 16"
What was the record for Dec 16?
CREATE TABLE table_name_36 (record VARCHAR, date VARCHAR)
SELECT losingteam FROM table_11236195_2 WHERE score = "24-12"
Which losing team had a score of 24-12?
CREATE TABLE table_11236195_2 (losingteam VARCHAR, score VARCHAR)
SELECT replaced_by FROM table_10592536_8 WHERE team = "Wigan Athletic"
Who replaced when team is wigan athletic?
CREATE TABLE table_10592536_8 (replaced_by VARCHAR, team VARCHAR)
SELECT tournament FROM table_name_25 WHERE cuts_made < 9 AND events = 10
Which Tournament has a Cuts made smaller than 9, and an Events of 10?
CREATE TABLE table_name_25 (tournament VARCHAR, cuts_made VARCHAR, events VARCHAR)
SELECT original_berkeley_cast FROM table_24353141_1 WHERE original_broadway_cast = "Stark Sands"
Who was in the original berkley cast while stark sands was in the original broadway cast?
CREATE TABLE table_24353141_1 (original_berkeley_cast VARCHAR, original_broadway_cast VARCHAR)
SELECT game FROM table_name_26 WHERE road_team = "houston" AND date = "june 15"
Which game has houston as the road team, and june 15 as the date?
CREATE TABLE table_name_26 (game VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_88 WHERE opponent = "new york giants" AND week < 5
Which Attendance has an Opponent of new york giants, and a Week smaller than 5?
CREATE TABLE table_name_88 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT MAX(wins) FROM table_15829930_5 WHERE success_rate = "68.75%"
Name the maximum wins for 68.75%
CREATE TABLE table_15829930_5 (wins INTEGER, success_rate VARCHAR)
SELECT high_points FROM table_name_56 WHERE location_attendance = "staples center 18,964"
What is High Points, when Location Attendance is Staples Center 18,964?
CREATE TABLE table_name_56 (high_points VARCHAR, location_attendance VARCHAR)
SELECT rank FROM table_name_94 WHERE total > 17 AND silver < 13
Which Rank has a Total larger than 17, and a Silver smaller than 13?
CREATE TABLE table_name_94 (rank VARCHAR, total VARCHAR, silver VARCHAR)
SELECT MAX(inns) FROM table_name_64 WHERE seasons = "1987–2007" AND runs > 11622
Seasons of 1987–2007, and a Runs larger than 11622 is the highest inns?
CREATE TABLE table_name_64 (inns INTEGER, seasons VARCHAR, runs VARCHAR)
SELECT lead FROM table_name_86 WHERE alternate = "christina haller"
Who is the lead for the team with Christina Haller as alternate?
CREATE TABLE table_name_86 (lead VARCHAR, alternate VARCHAR)
SELECT score FROM table_23944006_4 WHERE championship = "San Diego"
Name the score for san diego
CREATE TABLE table_23944006_4 (score VARCHAR, championship VARCHAR)
SELECT MIN(year) FROM table_name_76 WHERE athlete = "markus thalmann" AND time = "23:28:24"
Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24?
CREATE TABLE table_name_76 (year INTEGER, athlete VARCHAR, time VARCHAR)
SELECT land___sqmi__ FROM table_18600760_12 WHERE township = "Lansing"
What is the land (sqmi) in lansing township?
CREATE TABLE table_18600760_12 (land___sqmi__ VARCHAR, township VARCHAR)
SELECT MIN(points) FROM table_name_86 WHERE entrant = "parmalat forti ford" AND year > 1995
What is the smallest amount of points for parmalat forti ford entrant later than 1995?
CREATE TABLE table_name_86 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT in_service FROM table_name_12 WHERE origin = "brazil" AND versions = "c-95"
How many C-95 aircrafts originating in Brazil are currently in service?
CREATE TABLE table_name_12 (in_service VARCHAR, origin VARCHAR, versions VARCHAR)
SELECT AVG(house_of_rep_seats) FROM table_name_52 WHERE abbr = "d66"
What is the average number of House of Representatives seats had an abbreviation of d66?
CREATE TABLE table_name_52 (house_of_rep_seats INTEGER, abbr VARCHAR)
SELECT host_interface FROM table_name_34 WHERE digital = "dvb-t (cx22702)" AND model = "nova-t pci (90002)"
Tell me the Host interface for digital of dvb-t (cx22702) and model of nova-t pci (90002)
CREATE TABLE table_name_34 (host_interface VARCHAR, digital VARCHAR, model VARCHAR)
SELECT max_torque_at_rpm FROM table_name_11 WHERE engine_name = "1.2 mpi"
What is the max torque of the 1.2 mpi engine?
CREATE TABLE table_name_11 (max_torque_at_rpm VARCHAR, engine_name VARCHAR)
SELECT score FROM table_name_6 WHERE result = "5-1"
Which item has a score of 5-1?
CREATE TABLE table_name_6 (score VARCHAR, result VARCHAR)
SELECT venue FROM table_name_47 WHERE away_team = "fitzroy"
In the match where fitzroy was the away team, where was the venue?
CREATE TABLE table_name_47 (venue VARCHAR, away_team VARCHAR)
SELECT AVG(ties) FROM table_name_73 WHERE team = "montreal victorias" AND games_played > 8
What is the average ties when the team is montreal victorias and the games played is more than 8?
CREATE TABLE table_name_73 (ties INTEGER, team VARCHAR, games_played VARCHAR)
SELECT city_of_license FROM table_name_8 WHERE frequency_mhz < 102.5
What is City of License, when Frequency MHz is less than 102.5?
CREATE TABLE table_name_8 (city_of_license VARCHAR, frequency_mhz INTEGER)
SELECT best_actor FROM table_15301258_1 WHERE best_film = "Uncle Boonmee Who Can Recall His Past Lives"
Name the best actor for uncle boonmee who can recall his past lives
CREATE TABLE table_15301258_1 (best_actor VARCHAR, best_film VARCHAR)
SELECT party FROM table_name_45 WHERE "name" = "name"
What is the name of the party called name?
CREATE TABLE table_name_45 (party VARCHAR)
SELECT country FROM table_name_28 WHERE player = "greg norman"
What country is Greg Norman from?
CREATE TABLE table_name_28 (country VARCHAR, player VARCHAR)
SELECT COUNT(uefa_cup) FROM table_name_44 WHERE total > 3
What is the total number of UEFA Cup(s), when Total is greater than 3?
CREATE TABLE table_name_44 (uefa_cup VARCHAR, total INTEGER)
SELECT tournament FROM table_name_75 WHERE winner = "nadal" AND "nadal" = 16
What tournament did Nadal win and had a nadal of 16?
CREATE TABLE table_name_75 (tournament VARCHAR, winner VARCHAR)
SELECT reg_season FROM table_2511876_1 WHERE year = 2001
Mame the reg season for 2001
CREATE TABLE table_2511876_1 (reg_season VARCHAR, year VARCHAR)
SELECT date FROM table_name_71 WHERE status = "five nations" AND against = 7
When has a Status of five nations, and a Against of 7?
CREATE TABLE table_name_71 (date VARCHAR, status VARCHAR, against VARCHAR)
SELECT COUNT(position_in_table) FROM table_24231638_3 WHERE date_of_vacancy = "14 February 2011"
How many times was the date of vacancy 14 february 2011?
CREATE TABLE table_24231638_3 (position_in_table VARCHAR, date_of_vacancy VARCHAR)
SELECT entrant FROM table_name_14 WHERE year < 1975 AND chassis = "lotus 20"
Who is entered earlier than 1975 and has a Lotus 20 chassis?
CREATE TABLE table_name_14 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT COUNT(overall) FROM table_name_38 WHERE pick = 1 AND name = "cecil martin"
With the pick of 1 Cecil Martin has what number as the overall?
CREATE TABLE table_name_38 (overall VARCHAR, pick VARCHAR, name VARCHAR)
SELECT date FROM table_name_14 WHERE year = 1986
what is the date in 1986?
CREATE TABLE table_name_14 (date VARCHAR, year VARCHAR)
SELECT race_name FROM table_name_37 WHERE circuit = "snetterton"
What is the name of the race for which the circuit was Snetterton?
CREATE TABLE table_name_37 (race_name VARCHAR, circuit VARCHAR)
SELECT score_in_the_final FROM table_name_95 WHERE outcome = "runner-up" AND date = 1970
What is the Score in the final with an Outcome with runner-up, and a Date with 1970?
CREATE TABLE table_name_95 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee
Show different nominees and the number of musicals they have been nominated.
CREATE TABLE musical (Nominee VARCHAR)
SELECT two_mora_word FROM table_name_53 WHERE NOT accented_mora = "low tone" AND gloss = "/˩kusuꜜri/ [kɯ̀sɯ́ɽì]"
What is the two-mora word with a low tone accented mora and a gloss of /˩kusuꜜri/ [kɯ̀sɯ́ɽì]?
CREATE TABLE table_name_53 (two_mora_word VARCHAR, gloss VARCHAR, accented_mora VARCHAR)
SELECT date_sent FROM table_name_65 WHERE constellation = "cygnus" AND designation_hd = "hd 190360"
What date sent has cygnus as a constellation, and hd 190360 as a designation HD?
CREATE TABLE table_name_65 (date_sent VARCHAR, constellation VARCHAR, designation_hd VARCHAR)
SELECT COUNT(tries_for) FROM table_name_81 WHERE points_for < 137 AND tries_against > 12
How many Tries has Points for smaller than 137, and Tries against larger than 12?
CREATE TABLE table_name_81 (tries_for VARCHAR, points_for VARCHAR, tries_against VARCHAR)
SELECT away FROM table_name_76 WHERE club = "sevilla"
what place has the club of sevilla
CREATE TABLE table_name_76 (away VARCHAR, club VARCHAR)
SELECT nickname FROM table_19210115_1 WHERE institution = "Drexel University"
What is the nickname of Drexel University?
CREATE TABLE table_19210115_1 (nickname VARCHAR, institution VARCHAR)
SELECT MIN(top_25) FROM table_name_2 WHERE wins < 0
What is the lowest Top-25 with Wins less than 0?
CREATE TABLE table_name_2 (top_25 INTEGER, wins INTEGER)
SELECT COUNT(weekly_rank) FROM table_17004367_3 WHERE total = 1980000
what is the number of weekly rank where the total is 1980000?
CREATE TABLE table_17004367_3 (weekly_rank VARCHAR, total VARCHAR)
SELECT record FROM table_name_43 WHERE location = "hemisfair arena"
Location of hemisfair arena had what record?
CREATE TABLE table_name_43 (record VARCHAR, location VARCHAR)
SELECT MIN(qtr_final__week_) FROM table_27529608_21 WHERE genre = "Dancing" AND age_s_ = "32"
What is the earliest quarterfinal week when the genre is dancing and the act is 32?
CREATE TABLE table_27529608_21 (qtr_final__week_ INTEGER, genre VARCHAR, age_s_ VARCHAR)
SELECT score FROM table_name_93 WHERE high_points = "p. pierce (31)"
For the game in which P. Pierce (31) scored the most points, what was the final score?
CREATE TABLE table_name_93 (score VARCHAR, high_points VARCHAR)
SELECT class FROM table_name_76 WHERE race = "charlotte camel gt 500"
What is the class of the Charlotte Camel gt 500 race?
CREATE TABLE table_name_76 (class VARCHAR, race VARCHAR)
SELECT Snatch, Clean_Jerk FROM body_builder ORDER BY Snatch
List the snatch score and clean jerk score of body builders in ascending order of snatch score.
CREATE TABLE body_builder (Snatch VARCHAR, Clean_Jerk VARCHAR)
SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'
What is the average edispl of the cars of model volvo?
CREATE TABLE CARS_DATA (edispl INTEGER, Id VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Model VARCHAR)
SELECT region_name FROM region WHERE NOT region_id IN (SELECT region_id FROM affected_region)
Show the name for regions not affected.
CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_name VARCHAR, region_id VARCHAR)
SELECT country FROM table_27279050_3 WHERE last_current_driver_s__3_november_2013 = "Daniel Abt ( 2012 )"
What is the country when last/current driver(s) 3 november 2013 is daniel abt ( 2012 )?
CREATE TABLE table_27279050_3 (country VARCHAR, last_current_driver_s__3_november_2013 VARCHAR)
SELECT pitcher FROM table_name_40 WHERE location = "kingdome" AND season = "1983"
Who is the pitcher from the 1983 season in location Kingdome?
CREATE TABLE table_name_40 (pitcher VARCHAR, location VARCHAR, season VARCHAR)
SELECT opponent FROM table_name_34 WHERE record = "4-4"
Who was the opponent the Buffalo Bills played when their record was 4-4?
CREATE TABLE table_name_34 (opponent VARCHAR, record VARCHAR)
SELECT against FROM table_name_94 WHERE opponents = "mădălina gojnea monica niculescu"
Who was against the opponents, mădălina gojnea monica niculescu?
CREATE TABLE table_name_94 (against VARCHAR, opponents VARCHAR)
SELECT player FROM table_name_69 WHERE finish = "1"
What player has 1 as the place?
CREATE TABLE table_name_69 (player VARCHAR, finish VARCHAR)
SELECT series_2 FROM table_name_35 WHERE series_3 = "deborah meaden"
Which Series 2 has a Series 3 of deborah meaden?
CREATE TABLE table_name_35 (series_2 VARCHAR, series_3 VARCHAR)
SELECT to_par FROM table_name_87 WHERE country = "united states" AND player = "hale irwin"
What to par is located in the united states and has the player by the name of hale irwin?
CREATE TABLE table_name_87 (to_par VARCHAR, country VARCHAR, player VARCHAR)
SELECT MAX(year) FROM table_12043148_2 WHERE glos_ & _wilts = "Warminster"
what is the latest year where glos & wilts is warminster?
CREATE TABLE table_12043148_2 (year INTEGER, glos_ VARCHAR, _wilts VARCHAR)
SELECT result FROM table_14959246_2 WHERE opponent = "Dallas Cowboys"
What was the final score of the game against the Dallas Cowboys?
CREATE TABLE table_14959246_2 (result VARCHAR, opponent VARCHAR)
SELECT location FROM table_16864968_9 WHERE attendance = 15046
Name the location for 15046 attendance
CREATE TABLE table_16864968_9 (location VARCHAR, attendance VARCHAR)
SELECT competition FROM table_name_31 WHERE result = "w" AND date = "june 30, 1966"
What competition has a result of W on June 30, 1966?
CREATE TABLE table_name_31 (competition VARCHAR, result VARCHAR, date VARCHAR)
SELECT AVG(losses) FROM table_name_42 WHERE against < 1018 AND wins < 14
Which Losses have an Against smaller than 1018, and Wins smaller than 14?
CREATE TABLE table_name_42 (losses INTEGER, against VARCHAR, wins VARCHAR)
SELECT home_team AS score FROM table_name_23 WHERE venue = "arden street oval"
In the game held at Arden Street Oval, what was the score of the home team?
CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(replaced_by) FROM table_22640051_3 WHERE date_of_appointment = "13 June 2009"
Name the total number of replaced by for 13 june 2009
CREATE TABLE table_22640051_3 (replaced_by VARCHAR, date_of_appointment VARCHAR)
SELECT T2.invoice_number, T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number ORDER BY COUNT(*) DESC LIMIT 1
What is the invoice number and invoice date for the invoice with most number of transactions?
CREATE TABLE Invoices (invoice_number VARCHAR, invoice_date VARCHAR); CREATE TABLE Financial_transactions (invoice_number VARCHAR)
SELECT game_site FROM table_name_20 WHERE week = 1
What is the Game site week 1?
CREATE TABLE table_name_20 (game_site VARCHAR, week VARCHAR)
SELECT release_price___usd__ FROM table_name_3 WHERE release_date = "2008 q3" AND part_number_s_ = "nu80579ez009c"
Release date of 2008 q3, and a Part number(s) of nu80579ez009c has what Release price ( USD )?
CREATE TABLE table_name_3 (release_price___usd__ VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)
SELECT COUNT(number_of_contestants) FROM table_name_65 WHERE winner = "alejandra espinoza"
How many contestants were there in a season where alejandra espinoza won?
CREATE TABLE table_name_65 (number_of_contestants VARCHAR, winner VARCHAR)
SELECT graemes_guest FROM table_17413485_1 WHERE episode = "1x03"
what is the name of the graemest guest of episode 1x03
CREATE TABLE table_17413485_1 (graemes_guest VARCHAR, episode VARCHAR)
SELECT MAX(laps) FROM table_name_49 WHERE points < 5 AND team = "garry rogers motorsport" AND grid < 23
What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23?
CREATE TABLE table_name_49 (laps INTEGER, grid VARCHAR, points VARCHAR, team VARCHAR)
SELECT COUNT(lane) FROM table_name_62 WHERE rank > 4 AND heat > 1 AND nationality = "australia" AND name = "ashley callus"
How many lanes featured a swimmer ranked above 4, in a heat later than 1, from australia, named ashley callus?
CREATE TABLE table_name_62 (lane VARCHAR, name VARCHAR, nationality VARCHAR, rank VARCHAR, heat VARCHAR)
SELECT MIN(points) FROM table_name_6 WHERE match < 12
What is the smallest number of points for a match less than 12?
CREATE TABLE table_name_6 (points INTEGER, match INTEGER)
SELECT poll_source FROM table_20032301_3 WHERE dates_administered = "June 14-16, 2010"
What poll source administered their poll on June 14-16, 2010?
CREATE TABLE table_20032301_3 (poll_source VARCHAR, dates_administered VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_6 WHERE country = "netherlands"
What was the film nomination in the Netherlands?
CREATE TABLE table_name_6 (film_title_used_in_nomination VARCHAR, country VARCHAR)