output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT country FROM table_name_55 WHERE year = "1899"
CREATE TABLE table_name_55 (country VARCHAR, year VARCHAR), Which country had a tower destroyed in 1899?
SELECT opponent FROM table_name_66 WHERE record = "28–45"
CREATE TABLE table_name_66 (opponent VARCHAR, record VARCHAR), Who was the opponent at the game when the record was 28–45?
SELECT entrant FROM table_name_33 WHERE pts = "4" AND chassis = "brm p25"
CREATE TABLE table_name_33 (entrant VARCHAR, pts VARCHAR, chassis VARCHAR), Which entrant has 4 points and BRM p25 for the Chassis?
SELECT entrant FROM table_name_97 WHERE year < 1953
CREATE TABLE table_name_97 (entrant VARCHAR, year INTEGER), Who is the entrant when the year is less than 1953?
SELECT pts FROM table_name_57 WHERE chassis = "brm p25"
CREATE TABLE table_name_57 (pts VARCHAR, chassis VARCHAR), How many points were scored when the Chassis is BRM p25?
SELECT episode_title FROM table_name_81 WHERE original_airdate = "october 8, 1988"
CREATE TABLE table_name_81 (episode_title VARCHAR, original_airdate VARCHAR), Name the episode that aired october 8, 1988
SELECT original_airdate FROM table_name_23 WHERE identity_ies_ = "mr. buckston"
CREATE TABLE table_name_23 (original_airdate VARCHAR, identity_ies_ VARCHAR), Name the original airdate for mr. buckston
SELECT name FROM table_name_2 WHERE round = 23
CREATE TABLE table_name_2 (name VARCHAR, round VARCHAR), What is the name of the player taken in round 23?
SELECT engine FROM table_name_76 WHERE year = "1999"
CREATE TABLE table_name_76 (engine VARCHAR, year VARCHAR), What engine was used in 1999?
SELECT rank FROM table_name_66 WHERE chassis = "reynard 94i" AND year = "1996"
CREATE TABLE table_name_66 (rank VARCHAR, chassis VARCHAR, year VARCHAR), What rank did the chassis reynard 94i have in 1996?
SELECT rank FROM table_name_93 WHERE year = "2000" AND chassis = "dallara"
CREATE TABLE table_name_93 (rank VARCHAR, year VARCHAR, chassis VARCHAR), What rank did the dallara chassis finish in 2000?
SELECT engine FROM table_name_51 WHERE rank = "7th" AND chassis = "reynard 95i"
CREATE TABLE table_name_51 (engine VARCHAR, rank VARCHAR, chassis VARCHAR), Which engine finished 7th with the reynard 95i chassis?
SELECT MAX(year) FROM table_name_78 WHERE wins = 15 AND loses < 5
CREATE TABLE table_name_78 (year INTEGER, wins VARCHAR, loses VARCHAR), What highest Year has Wins 15 and Losses less than 5?
SELECT AVG(year) FROM table_name_24 WHERE loses = 4 AND wins < 18 AND draws > 1
CREATE TABLE table_name_24 (year INTEGER, draws VARCHAR, loses VARCHAR, wins VARCHAR), What average Year has Losses 4, and Wins less than 18, and Draws greater than 1?
SELECT AVG(wins) FROM table_name_92 WHERE loses = 2 AND draws < 0
CREATE TABLE table_name_92 (wins INTEGER, loses VARCHAR, draws VARCHAR), What average Wins has Losses 2, and Draws less than 0?
SELECT AVG(loses) FROM table_name_40 WHERE draws < 0
CREATE TABLE table_name_40 (loses INTEGER, draws INTEGER), What average Loses has Draws less than 0?
SELECT SUM(loses) FROM table_name_18 WHERE year > 1972 AND competition = "nswrfl" AND draws = 0 AND wins = 16
CREATE TABLE table_name_18 (loses INTEGER, wins VARCHAR, draws VARCHAR, year VARCHAR, competition VARCHAR), What sum of Losses has Year greater than 1972, and Competition of nswrfl, and Draws 0, and Wins 16?
SELECT height FROM table_name_59 WHERE current_club = "alta gestión fuenlabrada"
CREATE TABLE table_name_59 (height VARCHAR, current_club VARCHAR), What is the height of the player who currently plays for Alta Gestión Fuenlabrada?
SELECT position FROM table_name_94 WHERE player = "mario kasun"
CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR), What position does Mario Kasun play?
SELECT MAX(lost) FROM table_name_91 WHERE win__percentage = "20%" AND opponent = "david nalbandian"
CREATE TABLE table_name_91 (lost INTEGER, win__percentage VARCHAR, opponent VARCHAR), What is the largest number Lost to david nalbandian with a Win Rate of 20%?
SELECT MIN(matches) FROM table_name_59 WHERE win__percentage = "28.68%" AND lost < 97
CREATE TABLE table_name_59 (matches INTEGER, win__percentage VARCHAR, lost VARCHAR), What is the smallest number of Matches with less than 97 losses and a Win rate of 28.68%?
SELECT COUNT(lost) FROM table_name_61 WHERE highest_ranking = "– –"
CREATE TABLE table_name_61 (lost VARCHAR, highest_ranking VARCHAR), What is the total number of Lost for the Highest Ranking of – –?
SELECT MAX(lane) FROM table_name_74 WHERE name = "inna nikitina"
CREATE TABLE table_name_74 (lane INTEGER, name VARCHAR), what lane did inna nikitina have?
SELECT name FROM table_name_68 WHERE heat = 4 AND lane > 7
CREATE TABLE table_name_68 (name VARCHAR, heat VARCHAR, lane VARCHAR), what is the name that saw 4 heats and a lane higher than 7?
SELECT MAX(nbr_number) FROM table_name_29 WHERE class = "j" AND road_number = 1211
CREATE TABLE table_name_29 (nbr_number INTEGER, class VARCHAR, road_number VARCHAR), What is the highest NBR number that corresponds to the J class and the road number of 1211?
SELECT COUNT(road_number) FROM table_name_18 WHERE year < 1922
CREATE TABLE table_name_18 (road_number VARCHAR, year INTEGER), How many road numbers are before 1922?
SELECT original_operator FROM table_name_65 WHERE class = "25nc"
CREATE TABLE table_name_65 (original_operator VARCHAR, class VARCHAR), Which original operator is in the 25nc class?
SELECT class FROM table_name_9 WHERE year > 1939 AND road_number < 3508
CREATE TABLE table_name_9 (class VARCHAR, year VARCHAR, road_number VARCHAR), Which class starts after 1939 and has a road number smaller than 3508?
SELECT lb & scr_no FROM table_name_7 WHERE sr_no = "8597–8600"
CREATE TABLE table_name_7 (lb VARCHAR, scr_no VARCHAR, sr_no VARCHAR), Name the LB&SCR number that has SR number of 8597–8600
SELECT time FROM table_name_55 WHERE writer_s_ = "aaron schroeder and wally gold"
CREATE TABLE table_name_55 (time VARCHAR, writer_s_ VARCHAR), What is the time of songs that have the writer Aaron Schroeder and Wally Gold?
SELECT chart_peak FROM table_name_46 WHERE release_date = "6/17/61" AND track > 20 AND writer_s_ = "woody harris"
CREATE TABLE table_name_46 (chart_peak VARCHAR, writer_s_ VARCHAR, release_date VARCHAR, track VARCHAR), On songs that have a release date of 6/17/61, a track larger than 20, and a writer of Woody Harris, what is the chart peak?
SELECT catalogue FROM table_name_86 WHERE song_title = "it's now or never"
CREATE TABLE table_name_86 (catalogue VARCHAR, song_title VARCHAR), What catalogue is the song It's Now or Never?
SELECT writer_s_ FROM table_name_27 WHERE catalogue = "lsp 2231" AND track < 17
CREATE TABLE table_name_27 (writer_s_ VARCHAR, catalogue VARCHAR, track VARCHAR), On songs with track numbers smaller than number 17 and catalogues of LSP 2231, who are the writer(s)?
SELECT year FROM table_name_6 WHERE start = "13"
CREATE TABLE table_name_6 (year VARCHAR, start VARCHAR), What year did he start at 13?
SELECT finish FROM table_name_26 WHERE qual = "123.660"
CREATE TABLE table_name_26 (finish VARCHAR, qual VARCHAR), What was the finish place with a qual of 123.660?
SELECT rank FROM table_name_86 WHERE qual = "115.095"
CREATE TABLE table_name_86 (rank VARCHAR, qual VARCHAR), What was the rank with the qual of 115.095?
SELECT runner_s__up FROM table_name_1 WHERE margin = "1 stroke"
CREATE TABLE table_name_1 (runner_s__up VARCHAR, margin VARCHAR), Who was the runner-up when the margin was 1 stroke?
SELECT score FROM table_name_72 WHERE year = "2004"
CREATE TABLE table_name_72 (score VARCHAR, year VARCHAR), What was the score in the year 2004?
SELECT runner_s__up FROM table_name_58 WHERE year = "2008"
CREATE TABLE table_name_58 (runner_s__up VARCHAR, year VARCHAR), Who was the runner-up when the year was 2008?
SELECT year FROM table_name_3 WHERE score = "204 (-6)"
CREATE TABLE table_name_3 (year VARCHAR, score VARCHAR), In what year was the score 204 (-6)?
SELECT country FROM table_name_45 WHERE margin = "2 strokes" AND score = "276 (-4)"
CREATE TABLE table_name_45 (country VARCHAR, margin VARCHAR, score VARCHAR), What was the country when the margin was 2 strokes, and when the score was 276 (-4)?
SELECT overall_record FROM table_name_28 WHERE school = "milford"
CREATE TABLE table_name_28 (overall_record VARCHAR, school VARCHAR), What is the Overall Record for the School in Milford?
SELECT MAX(first_prize___) AS $__ FROM table_name_49 WHERE year = 1997
CREATE TABLE table_name_49 (first_prize___ INTEGER, year VARCHAR), What was the top first place prize in 1997?
SELECT SUM(purse___) AS $__ FROM table_name_27 WHERE score = "272 (-16)" AND winner = "frank nobilo" AND year > 1996
CREATE TABLE table_name_27 (purse___ INTEGER, year VARCHAR, score VARCHAR, winner VARCHAR), What was the total purse in the years after 1996 with a score of 272 (-16) when frank nobilo won?
SELECT AVG(rank) FROM table_name_55 WHERE lane < 3 AND nationality = "australia"
CREATE TABLE table_name_55 (rank INTEGER, lane VARCHAR, nationality VARCHAR), What is the average Rank for a lane smaller than 3 with a nationality of Australia?
SELECT COUNT(lane) FROM table_name_86 WHERE rank > 2 AND name = "louise ørnstedt"
CREATE TABLE table_name_86 (lane VARCHAR, rank VARCHAR, name VARCHAR), what is the number of lane with a rank more than 2 for Louise ørnstedt?
SELECT nationality FROM table_name_52 WHERE rank > 6 AND time = "2:14.95"
CREATE TABLE table_name_52 (nationality VARCHAR, rank VARCHAR, time VARCHAR), What shows for nationality when there is a rank larger than 6, and a Time of 2:14.95?
SELECT COUNT(total_region) FROM table_name_40 WHERE eidsvold = 970 AND biggenden > 1 OFFSET 570
CREATE TABLE table_name_40 (total_region VARCHAR, eidsvold VARCHAR, biggenden VARCHAR), What is the Total Region number of hte one that has Eidsvold at 970 and Biggenden larger than 1,570?
SELECT AVG(year) FROM table_name_41 WHERE mixed_doubles = "alfredo salazar fina salazar"
CREATE TABLE table_name_41 (year INTEGER, mixed_doubles VARCHAR), What is the average year with alfredo salazar fina salazar in mixed doubles?
SELECT venue FROM table_name_48 WHERE extra = "team competition" AND result = "1st"
CREATE TABLE table_name_48 (venue VARCHAR, extra VARCHAR, result VARCHAR), Which venue had an extra of Team Competition and a result of 1st?
SELECT venue FROM table_name_96 WHERE result = "23rd"
CREATE TABLE table_name_96 (venue VARCHAR, result VARCHAR), Which venue led to a result of 23rd?
SELECT venue FROM table_name_68 WHERE extra = "junior race"
CREATE TABLE table_name_68 (venue VARCHAR, extra VARCHAR), Which venue had an extra of Junior Race?
SELECT venue FROM table_name_51 WHERE extra = "long race" AND result = "13th"
CREATE TABLE table_name_51 (venue VARCHAR, extra VARCHAR, result VARCHAR), Which venue led to a result of 13th and had an extra of Long Race?
SELECT terry_mcauliffe FROM table_name_86 WHERE dates_administered = "may 31 – june 2"
CREATE TABLE table_name_86 (terry_mcauliffe VARCHAR, dates_administered VARCHAR), What is the percentage of Terry McAuliffe that has a Date Administered on May 31 – june 2
SELECT source FROM table_name_80 WHERE terry_mcauliffe = "36%"
CREATE TABLE table_name_80 (source VARCHAR, terry_mcauliffe VARCHAR), Which Source has Terry McAuliffe of 36%
SELECT terry_mcauliffe FROM table_name_8 WHERE dates_administered = "june 6–7"
CREATE TABLE table_name_8 (terry_mcauliffe VARCHAR, dates_administered VARCHAR), Which Terry McAuliffe is it that has a Dates Administered on June 6–7?
SELECT source FROM table_name_64 WHERE brian_moran = "19%"
CREATE TABLE table_name_64 (source VARCHAR, brian_moran VARCHAR), Which Source has a Brian Moran of 19%?
SELECT visiting_team FROM table_name_21 WHERE host_team = "buffalo bills"
CREATE TABLE table_name_21 (visiting_team VARCHAR, host_team VARCHAR), What team played on the road against the Buffalo Bills at home ?
SELECT week FROM table_name_79 WHERE host_team = "baltimore ravens"
CREATE TABLE table_name_79 (week VARCHAR, host_team VARCHAR), Which week did the Baltimore Ravens play at home ?
SELECT final_score FROM table_name_53 WHERE week = 14
CREATE TABLE table_name_53 (final_score VARCHAR, week VARCHAR), What was the final score on week 14 ?
SELECT date FROM table_name_79 WHERE host_team = "baltimore ravens"
CREATE TABLE table_name_79 (date VARCHAR, host_team VARCHAR), When did the Baltimore Ravens play at home ?
SELECT final_score FROM table_name_46 WHERE week = 3
CREATE TABLE table_name_46 (final_score VARCHAR, week VARCHAR), What was the final score in week 3 ?
SELECT party FROM table_name_79 WHERE member = "ralph jacobi"
CREATE TABLE table_name_79 (party VARCHAR, member VARCHAR), To what party does Ralph Jacobi belong?
SELECT term_in_office FROM table_name_74 WHERE member = "hon les johnson"
CREATE TABLE table_name_74 (term_in_office VARCHAR, member VARCHAR), When was Hon Les Johnson in office?
SELECT party FROM table_name_23 WHERE state = "vic" AND electorate = "wannon"
CREATE TABLE table_name_23 (party VARCHAR, state VARCHAR, electorate VARCHAR), Which party had a member from the state of Vic and an Electorate called Wannon?
SELECT party FROM table_name_45 WHERE member = "mick young"
CREATE TABLE table_name_45 (party VARCHAR, member VARCHAR), What party is Mick Young a member of?
SELECT tyres FROM table_name_70 WHERE class = "c" AND year < 1983
CREATE TABLE table_name_70 (tyres VARCHAR, class VARCHAR, year VARCHAR), Which tires were in Class C in years before 1983?
SELECT MIN(year) FROM table_name_77 WHERE co_drivers = "roger enever"
CREATE TABLE table_name_77 (year INTEGER, co_drivers VARCHAR), What is the earliest year that had a co-driver of Roger Enever?
SELECT date FROM table_name_55 WHERE goal = 3
CREATE TABLE table_name_55 (date VARCHAR, goal VARCHAR), Which date has 3 as the goal?
SELECT label FROM table_name_79 WHERE date = "october 25, 1984" AND format = "stereo lp"
CREATE TABLE table_name_79 (label VARCHAR, date VARCHAR, format VARCHAR), What Label released on October 25, 1984, in the format of Stereo LP?
SELECT catalog FROM table_name_72 WHERE label = "sony music direct"
CREATE TABLE table_name_72 (catalog VARCHAR, label VARCHAR), What are the catalogs of releases from Sony Music Direct?
SELECT region FROM table_name_58 WHERE format = "cd" AND catalog = "32xa-119"
CREATE TABLE table_name_58 (region VARCHAR, format VARCHAR, catalog VARCHAR), What is the region of the release of a CD with catalog 32xa-119?
SELECT catalog FROM table_name_59 WHERE date = "january 23, 2002"
CREATE TABLE table_name_59 (catalog VARCHAR, date VARCHAR), What is the catalog of the release from January 23, 2002?
SELECT region FROM table_name_55 WHERE date = "may 27, 2009"
CREATE TABLE table_name_55 (region VARCHAR, date VARCHAR), What was the region of the release from May 27, 2009?
SELECT region FROM table_name_54 WHERE label = "alfa records" AND catalog = "alca-282"
CREATE TABLE table_name_54 (region VARCHAR, label VARCHAR, catalog VARCHAR), What is the region of the Alfa Records release with catalog ALCA-282?
SELECT to_par FROM table_name_14 WHERE country = "united states" AND score = 72 - 67 - 80 - 71 = 290
CREATE TABLE table_name_14 (to_par VARCHAR, country VARCHAR, score VARCHAR), What is the to par for the player from the United States with a 72-67-80-71=290 score?
SELECT rank FROM table_name_31 WHERE laps < 130 AND year = "1951"
CREATE TABLE table_name_31 (rank VARCHAR, laps VARCHAR, year VARCHAR), Name the rank for laps less than 130 and year of 1951
SELECT year FROM table_name_14 WHERE laps = 200 AND rank = "24"
CREATE TABLE table_name_14 (year VARCHAR, laps VARCHAR, rank VARCHAR), Name the year for laps of 200 and rank of 24
SELECT rank FROM table_name_29 WHERE finish = "12" AND year = "1963"
CREATE TABLE table_name_29 (rank VARCHAR, finish VARCHAR, year VARCHAR), Name the rank with finish of 12 and year of 1963
SELECT rank FROM table_name_5 WHERE laps = 200 AND qual = "148.374"
CREATE TABLE table_name_5 (rank VARCHAR, laps VARCHAR, qual VARCHAR), Name the rank with laps of 200 and qual of 148.374
SELECT finish FROM table_name_17 WHERE laps > 200
CREATE TABLE table_name_17 (finish VARCHAR, laps INTEGER), Name the finish with Laps more than 200
SELECT rank FROM table_name_18 WHERE laps = 151
CREATE TABLE table_name_18 (rank VARCHAR, laps VARCHAR), Name the rank for 151 Laps
SELECT year FROM table_name_61 WHERE qual = "totals"
CREATE TABLE table_name_61 (year VARCHAR, qual VARCHAR), The qual of totals took place during what year?
SELECT year FROM table_name_16 WHERE finish = "15"
CREATE TABLE table_name_16 (year VARCHAR, finish VARCHAR), What year did the finish of 15 happen in?
SELECT finish FROM table_name_71 WHERE rank = "31"
CREATE TABLE table_name_71 (finish VARCHAR, rank VARCHAR), What's the Finish rank of 31?
SELECT year FROM table_name_75 WHERE rank = "31"
CREATE TABLE table_name_75 (year VARCHAR, rank VARCHAR), What year did the rank of 31 happen in?
SELECT score FROM table_name_77 WHERE result = "4-1"
CREATE TABLE table_name_77 (score VARCHAR, result VARCHAR), Which item resulted in a score of 4-1?
SELECT score FROM table_name_6 WHERE result = "5-1"
CREATE TABLE table_name_6 (score VARCHAR, result VARCHAR), Which item has a score of 5-1?
SELECT competition FROM table_name_19 WHERE result = "4-1" AND score = "4-1"
CREATE TABLE table_name_19 (competition VARCHAR, result VARCHAR, score VARCHAR), Which competition had a 4-1 result, and a score of 4-1?
SELECT 2009 FROM table_name_44 WHERE 2010 = "1r" AND 2012 = "a" AND 2008 = "2r"
CREATE TABLE table_name_44 (Id VARCHAR), Name the 2009 ffor 2010 of 1r and 2012 of a and 2008 of 2r
SELECT 2011 FROM table_name_92 WHERE 2012 = "a" AND 2010 = "1r" AND 2008 = "2r"
CREATE TABLE table_name_92 (Id VARCHAR), Name the 2011 for 2012 of a and 2010 of 1r with 2008 of 2r
SELECT 2010 FROM table_name_95 WHERE tournament = "us open"
CREATE TABLE table_name_95 (tournament VARCHAR), Name the 2010 for tournament of us open
SELECT 2010 FROM table_name_61 WHERE 2011 = "a" AND 2008 = "1r"
CREATE TABLE table_name_61 (Id VARCHAR), Name the 2010 for 2011 of a and 2008 of 1r
SELECT 2011 FROM table_name_94 WHERE 2010 = "2r"
CREATE TABLE table_name_94 (Id VARCHAR), Name the 2011 when 2010 is 2r
SELECT tournament FROM table_name_94 WHERE 2011 = "2r"
CREATE TABLE table_name_94 (tournament VARCHAR), Name the tournament when it has 2011 of 2r
SELECT AVG(attendance) FROM table_name_66 WHERE loss = "papelbon (0–1)"
CREATE TABLE table_name_66 (attendance INTEGER, loss VARCHAR), What was the average attendance for games with a loss of papelbon (0–1)?
SELECT COUNT(attendance) FROM table_name_74 WHERE record = "16–14"
CREATE TABLE table_name_74 (attendance VARCHAR, record VARCHAR), When the team had their record of 16–14, what was the total attendance?
SELECT scorers FROM table_name_8 WHERE venue = "a" AND opponent = "st. johnstone"
CREATE TABLE table_name_8 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR), Who was in a with opponent St. Johnstone?
SELECT venue FROM table_name_81 WHERE date = "27 may 2000"
CREATE TABLE table_name_81 (venue VARCHAR, date VARCHAR), What venue was on 27 May 2000?
SELECT scorers FROM table_name_24 WHERE date = "12 march 2000"
CREATE TABLE table_name_24 (scorers VARCHAR, date VARCHAR), Who was on 12 March 2000?