question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What team does Al Unser drive for?
CREATE TABLE table_1405704_1 (team VARCHAR, winning_driver VARCHAR)
SELECT team FROM table_1405704_1 WHERE winning_driver = "Al Unser"
Tell me the player with points larger than 36 and goals more than 0 with tries of 12
CREATE TABLE table_name_56 (player VARCHAR, tries VARCHAR, points VARCHAR, goals VARCHAR)
SELECT player FROM table_name_56 WHERE points > 36 AND goals > 0 AND tries = 12
What is the sum of 1872(s), when 1866 is greater than 856, when 1861 is greater than 1906, and when 1876 is greater than 1990?
CREATE TABLE table_name_29 (Id VARCHAR)
SELECT SUM(1872) FROM table_name_29 WHERE 1866 > 856 AND 1861 > 1906 AND 1876 > 1990
What is the number of the series written by Teresa Lin?
CREATE TABLE table_26801821_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT COUNT(no_in_series) FROM table_26801821_1 WHERE written_by = "Teresa Lin"
What is the score for set 1 with a total of 117–109?
CREATE TABLE table_name_58 (set_1 VARCHAR, total VARCHAR)
SELECT set_1 FROM table_name_58 WHERE total = "117–109"
Which Record has a Game larger than 15, and Points smaller than 31, and a November of 7?
CREATE TABLE table_name_36 (record VARCHAR, november VARCHAR, game VARCHAR, points VARCHAR)
SELECT record FROM table_name_36 WHERE game > 15 AND points < 31 AND november = 7
what is the owner of the callsign wliw
CREATE TABLE table_1979203_1 (owner VARCHAR, callsign VARCHAR)
SELECT owner FROM table_1979203_1 WHERE callsign = "WLIW"
What is the total number of first prizes in USD for the Canadian Open?
CREATE TABLE table_name_68 (tournament VARCHAR)
SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_68 WHERE tournament = "canadian open"
What is the hometown of Mike White?
CREATE TABLE table_name_40 (hometown_school VARCHAR, position VARCHAR, player VARCHAR)
SELECT hometown_school FROM table_name_40 WHERE position = "of" AND player = "mike white"
Which class has a frequency of 91.9 fm?
CREATE TABLE table_name_31 (class VARCHAR, frequency VARCHAR)
SELECT class FROM table_name_31 WHERE frequency = "91.9 fm"
What was the attendance at the game before week 8, held on October 25, 1981?
CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT SUM(attendance) FROM table_name_62 WHERE date = "october 25, 1981" AND week < 8
Which color is the background of the mandatory instructions?
CREATE TABLE table_name_43 (background_colour VARCHAR, type_of_sign VARCHAR)
SELECT background_colour FROM table_name_43 WHERE type_of_sign = "mandatory instructions"
Show the 3 counties with the smallest population.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
SELECT County_name FROM county ORDER BY Population LIMIT 3
what's the win with points for being 376
CREATE TABLE table_12828723_3 (won VARCHAR, points_for VARCHAR)
SELECT won FROM table_12828723_3 WHERE points_for = "376"
What shows for 2010 when 2005 shows 1r?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT 2010 FROM table_name_60 WHERE 2005 = "1r"
How much does each charge type costs? List both charge type and amount.
CREATE TABLE Charges (charge_type VARCHAR, charge_amount VARCHAR)
SELECT charge_type, charge_amount FROM Charges
What was the maximum 09-10 i/o best?
CREATE TABLE table_24990183_4 (Id VARCHAR)
SELECT MAX(09 AS _10_i_o_best) FROM table_24990183_4
What is the SZDSZ percentage with an MSZP of 25% on 25/2/2009?
CREATE TABLE table_name_8 (szdsz VARCHAR, mszp VARCHAR, date VARCHAR)
SELECT szdsz FROM table_name_8 WHERE mszp = "25%" AND date = "25/2/2009"
What's the total against for opposing team scotland at twickenham, london venue with a status of five nations?
CREATE TABLE table_name_6 (against VARCHAR, opposing_teams VARCHAR, status VARCHAR, venue VARCHAR)
SELECT COUNT(against) FROM table_name_6 WHERE status = "five nations" AND venue = "twickenham, london" AND opposing_teams = "scotland"
What is the party where the constituency is 10. Tindivanam?
CREATE TABLE table_22753245_1 (party VARCHAR, constituency VARCHAR)
SELECT party FROM table_22753245_1 WHERE constituency = "10. Tindivanam"
Which result featured the Indianapolis Colts as opponents?
CREATE TABLE table_name_72 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_72 WHERE opponent = "indianapolis colts"
What is the lowest apps for rank 3 and 0% wins?
CREATE TABLE table_name_33 (apps INTEGER, rank VARCHAR, win__percentage VARCHAR)
SELECT MIN(apps) FROM table_name_33 WHERE rank = 3 AND win__percentage < 0
Name the number of celebrity for athlete
CREATE TABLE table_14345690_4 (celebrity VARCHAR, famous_for VARCHAR)
SELECT COUNT(celebrity) FROM table_14345690_4 WHERE famous_for = "Athlete"
What is the English Name of the Location in Chester?
CREATE TABLE table_name_76 (name__english_ VARCHAR, location VARCHAR)
SELECT name__english_ FROM table_name_76 WHERE location = "chester"
What is the d-r spread if the no party preference is 31.8%?
CREATE TABLE table_25200461_9 (d_r_spread VARCHAR, no_party_preference VARCHAR)
SELECT d_r_spread FROM table_25200461_9 WHERE no_party_preference = "31.8%"
what is the outcome for the 1887?
CREATE TABLE table_name_4 (outcome VARCHAR, year VARCHAR)
SELECT outcome FROM table_name_4 WHERE year = 1887
Which Country has a To par smaller than 7, and a Place of 1?
CREATE TABLE table_name_99 (country VARCHAR, to_par VARCHAR, place VARCHAR)
SELECT country FROM table_name_99 WHERE to_par < 7 AND place = "1"
What day was St. Louis the visitor?
CREATE TABLE table_name_85 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_85 WHERE visitor = "st. louis"
Who is the Batsman from the year 1982?
CREATE TABLE table_name_83 (batsmen VARCHAR, year VARCHAR)
SELECT batsmen FROM table_name_83 WHERE year = "1982"
Which 2011 has a 2009 of 15–2?
CREATE TABLE table_name_66 (Id VARCHAR)
SELECT 2011 FROM table_name_66 WHERE 2009 = "15–2"
What is the club/province of the player born on 12 May 1984?
CREATE TABLE table_name_77 (club_province VARCHAR, date_of_birth__age_ VARCHAR)
SELECT club_province FROM table_name_77 WHERE date_of_birth__age_ = "12 may 1984"
What was the Attendance on Week 10?
CREATE TABLE table_name_34 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_34 WHERE week = 10
Which opponent has a week of 11?
CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_49 WHERE week = 11
Show the name and opening year for three churches that opened most recently.
CREATE TABLE church (name VARCHAR, open_date VARCHAR)
SELECT name, open_date FROM church ORDER BY open_date DESC LIMIT 3
What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a week 2 nomination of Henri Satu?
CREATE TABLE table_name_1 (week_12 VARCHAR, week_1 VARCHAR, week_2 VARCHAR)
SELECT week_12 FROM table_name_1 WHERE week_1 = "maria maxine" AND week_2 = "henri satu"
Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes?
CREATE TABLE table_name_28 (venue VARCHAR, competition VARCHAR, position VARCHAR, year VARCHAR, notes VARCHAR)
SELECT venue FROM table_name_28 WHERE year > 2006 AND notes = "3000 m s'chase" AND position = "2nd" AND competition = "african championships"
Who did the team lose to on September 8?
CREATE TABLE table_name_52 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_52 WHERE date = "september 8"
What track did they race on at the Fountain of Youth Stakes?
CREATE TABLE table_name_69 (track VARCHAR, race VARCHAR)
SELECT track FROM table_name_69 WHERE race = "fountain of youth stakes"
Name the result for alexander shvec
CREATE TABLE table_22853654_9 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_22853654_9 WHERE opponent = "Alexander Shvec"
What is the name of the bike that has a grid number smaller than 9 with a time of +7.764?
CREATE TABLE table_name_18 (bike VARCHAR, grid VARCHAR, time VARCHAR)
SELECT bike FROM table_name_18 WHERE grid < 9 AND time = "+7.764"
what is the work when the result is won and the year is after 2002?
CREATE TABLE table_name_91 (work VARCHAR, result VARCHAR, year VARCHAR)
SELECT work FROM table_name_91 WHERE result = "won" AND year > 2002
What is the g (μs/km)when the frequency (hz) is 100k?
CREATE TABLE table_261642_3 (g__μs_km_ VARCHAR, frequency__hz_ VARCHAR)
SELECT g__μs_km_ FROM table_261642_3 WHERE frequency__hz_ = "100k"
What is the average Frequency MHz that is on farwell, texas?
CREATE TABLE table_name_72 (frequency_mhz INTEGER, city_of_license VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_72 WHERE city_of_license = "farwell, texas"
What is the total of Greece, which is placed below 8?
CREATE TABLE table_name_32 (total VARCHAR, nation VARCHAR, place VARCHAR)
SELECT COUNT(total) FROM table_name_32 WHERE nation = "greece" AND place > 8
What's the Area with an Output (2007) of 12,332 T?
CREATE TABLE table_name_17 (area VARCHAR, output__2007_ VARCHAR)
SELECT area FROM table_name_17 WHERE output__2007_ = "12,332 t"
How much is the highest number in 2006 with fewer than 0 in 2002?
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT MAX(2006) FROM table_name_16 WHERE 2002 < 0
Which money list ranks had a best finish of 2?
CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, best_finish VARCHAR)
SELECT COUNT(money_list_rank) FROM table_29499399_2 WHERE best_finish = "2"
Who was the girl of the week after nicole woodruff in the same month?
CREATE TABLE table_name_93 (week_5 VARCHAR, week_4 VARCHAR)
SELECT week_5 FROM table_name_93 WHERE week_4 = "nicole woodruff"
Who was the opponent when the series was at 1-3?
CREATE TABLE table_name_86 (opponent VARCHAR, series VARCHAR)
SELECT opponent FROM table_name_86 WHERE series = "1-3"
Which Opponent has Location Wonju Chiak Indoor Gym, South Korea?
CREATE TABLE table_name_16 (opponent VARCHAR, location VARCHAR)
SELECT opponent FROM table_name_16 WHERE location = "wonju chiak indoor gym, south korea"
Name the incumbent for sue myrick (r) 69.0% jeff doctor (d) 31.0%
CREATE TABLE table_19753079_36 (incumbent VARCHAR, candidates VARCHAR)
SELECT incumbent FROM table_19753079_36 WHERE candidates = "Sue Myrick (R) 69.0% Jeff Doctor (D) 31.0%"
Which tournament has a 2013 of 1r, and a 2012 of 1r?
CREATE TABLE table_name_38 (tournament VARCHAR)
SELECT tournament FROM table_name_38 WHERE 2013 = "1r" AND 2012 = "1r"
What class has over 0 wins and 42 points?
CREATE TABLE table_name_13 (class VARCHAR, wins VARCHAR, points VARCHAR)
SELECT class FROM table_name_13 WHERE wins > 0 AND points = 42
Name the most game
CREATE TABLE table_21091157_1 (game INTEGER)
SELECT MAX(game) FROM table_21091157_1
What is Record, when H/A/N is "A", and when Date is "February 1"?
CREATE TABLE table_name_2 (record VARCHAR, h_a_n VARCHAR, date VARCHAR)
SELECT record FROM table_name_2 WHERE h_a_n = "a" AND date = "february 1"
What was the result of the match in Penrith that featured a score of 48-12?
CREATE TABLE table_name_81 (result VARCHAR, score VARCHAR, city VARCHAR)
SELECT result FROM table_name_81 WHERE score = "48-12" AND city = "penrith"
What was Maxim Podoprigora's lowest rank?
CREATE TABLE table_name_91 (rank INTEGER, name VARCHAR)
SELECT MIN(rank) FROM table_name_91 WHERE name = "maxim podoprigora"
Which home has a Decision of kolzig, and a Date of november 5?
CREATE TABLE table_name_9 (home VARCHAR, decision VARCHAR, date VARCHAR)
SELECT home FROM table_name_9 WHERE decision = "kolzig" AND date = "november 5"
Who was the home team when walsall was the away team?
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_8 WHERE away_team = "walsall"
What is the Losing bonus, when the value for Points is 43?
CREATE TABLE table_name_61 (losing_bonus VARCHAR, points VARCHAR)
SELECT losing_bonus FROM table_name_61 WHERE points = "43"
What is the average Top-5 finishes with 2 as the Top-10 and a greater than 4 Top-25?
CREATE TABLE table_name_74 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR)
SELECT AVG(top_5) FROM table_name_74 WHERE top_10 = 2 AND top_25 > 4
What is the total against on 15/10/1999?
CREATE TABLE table_name_39 (against INTEGER, date VARCHAR)
SELECT SUM(against) FROM table_name_39 WHERE date = "15/10/1999"
Name the commissioned-decommissioned for NVR page of aor-7
CREATE TABLE table_name_17 (commissioned__decommissioned VARCHAR, nvr_page VARCHAR)
SELECT commissioned__decommissioned FROM table_name_17 WHERE nvr_page = "aor-7"
What is the episode title for episode number 12?
CREATE TABLE table_25640730_7 (title VARCHAR, _number VARCHAR)
SELECT title FROM table_25640730_7 WHERE _number = 12
What is the location of the Asian Games after 2002 when Kim Hyun-soo won the gold?
CREATE TABLE table_name_57 (location VARCHAR, year VARCHAR, gold VARCHAR)
SELECT location FROM table_name_57 WHERE year > 2002 AND gold = "kim hyun-soo"
How much Avg/G has a Long of 51, and a Loss of 333, and a Gain larger than 2013?
CREATE TABLE table_name_51 (avg_g VARCHAR, gain VARCHAR, long VARCHAR, loss VARCHAR)
SELECT COUNT(avg_g) FROM table_name_51 WHERE long = 51 AND loss = 333 AND gain > 2013
At which site was Northwestern an opponent?
CREATE TABLE table_name_67 (site VARCHAR, opponent_number VARCHAR)
SELECT site FROM table_name_67 WHERE opponent_number = "northwestern"
what is the total number of purse( $ ) where winner is jimmy powell (2)
CREATE TABLE table_11622255_1 (purse__ VARCHAR, winner VARCHAR)
SELECT COUNT(purse__) AS $__ FROM table_11622255_1 WHERE winner = "Jimmy Powell (2)"
How many Rounds have a Nationality of canada, and a College/Junior/Club Team (League) of fort mcmurray oil barons (ajhl)?
CREATE TABLE table_name_66 (round VARCHAR, nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT COUNT(round) FROM table_name_66 WHERE nationality = "canada" AND college_junior_club_team__league_ = "fort mcmurray oil barons (ajhl)"
What pick was Dominic Uy?
CREATE TABLE table_name_48 (pick INTEGER, player VARCHAR)
SELECT AVG(pick) FROM table_name_48 WHERE player = "dominic uy"
What is the Catch-up period for UTV?
CREATE TABLE table_name_30 (catch_up_period VARCHAR, owner VARCHAR)
SELECT catch_up_period FROM table_name_30 WHERE owner = "utv"
Which Title has an 1825 end term?
CREATE TABLE table_name_78 (title VARCHAR, end_term VARCHAR)
SELECT title FROM table_name_78 WHERE end_term = 1825
What region has a 5 rank?
CREATE TABLE table_name_25 (region VARCHAR, rank VARCHAR)
SELECT region FROM table_name_25 WHERE rank = 5
Who did the Browns play week 12?
CREATE TABLE table_name_91 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_91 WHERE week = 12
What is the Catalog with a Date that is march 13, 2002?
CREATE TABLE table_name_9 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_9 WHERE date = "march 13, 2002"
Which location includes Sakakita BS?
CREATE TABLE table_name_18 (location__all_in_nagano__ VARCHAR, name VARCHAR)
SELECT location__all_in_nagano__ FROM table_name_18 WHERE name = "sakakita bs"
On what date was the Opponent Chicago Bears?
CREATE TABLE table_name_84 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_84 WHERE opponent = "chicago bears"
Which artist created the silver dollar for the 400th anniversary of Quebec?
CREATE TABLE table_name_80 (artist VARCHAR, theme VARCHAR)
SELECT artist FROM table_name_80 WHERE theme = "400th anniversary of quebec"
How many LOA (metres) reported for Black Jack?
CREATE TABLE table_20854943_2 (loa__metres_ VARCHAR, yacht VARCHAR)
SELECT COUNT(loa__metres_) FROM table_20854943_2 WHERE yacht = "Black Jack"
What percentage of users were using Netscape during the period in which 21.67% were using Firefox?
CREATE TABLE table_name_45 (netscape VARCHAR, firefox VARCHAR)
SELECT netscape FROM table_name_45 WHERE firefox = "21.67%"
What is the lowest attendance that East End Park has ever had?
CREATE TABLE table_11207040_5 (lowest INTEGER, stadium VARCHAR)
SELECT MIN(lowest) FROM table_11207040_5 WHERE stadium = "East End Park"
What is the rank of the country with more than 2 medals, and 2 gold medals?
CREATE TABLE table_name_83 (rank VARCHAR, total VARCHAR, gold VARCHAR)
SELECT rank FROM table_name_83 WHERE total > 2 AND gold = 2
Which 2005 has a 2006 of 126,511?
CREATE TABLE table_name_39 (Id VARCHAR)
SELECT 2005 FROM table_name_39 WHERE 2006 = "126,511"
Where is the nationality of Arg Esp moving to?
CREATE TABLE table_name_15 (moving_to VARCHAR, nat VARCHAR)
SELECT moving_to FROM table_name_15 WHERE nat = "arg esp"
What is the country with a 66-70-69=205 score?
CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_21 WHERE score = 66 - 70 - 69 = 205
How many Laps have a Grid of 15?
CREATE TABLE table_name_52 (laps VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_52 WHERE grid = 15
What is the name of the Representative Work in a year later than 2005 with a Result of nominated, and an Award of best variety show host?
CREATE TABLE table_name_20 (representative_work VARCHAR, award VARCHAR, year VARCHAR, result VARCHAR)
SELECT representative_work FROM table_name_20 WHERE year > 2005 AND result = "nominated" AND award = "best variety show host"
What is the Rank of the Rider with a Speed of 111.072mph in Team 250CC Honda?
CREATE TABLE table_name_36 (rank INTEGER, team VARCHAR, speed VARCHAR)
SELECT AVG(rank) FROM table_name_36 WHERE team = "250cc honda" AND speed = "111.072mph"
In what game did the New York Rangers play against the Chicago Black Hawks?
CREATE TABLE table_name_5 (game VARCHAR, opponent VARCHAR)
SELECT game FROM table_name_5 WHERE opponent = "chicago black hawks"
Which driver had a grid number of 18?
CREATE TABLE table_name_55 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_55 WHERE grid = "18"
What is the lead with a second of Vicki Adams and a third of Anna Sloan?
CREATE TABLE table_name_74 (lead VARCHAR, second VARCHAR, third VARCHAR)
SELECT lead FROM table_name_74 WHERE second = "vicki adams" AND third = "anna sloan"
What opponent has euro '84 qualifying as the type and split as the city?
CREATE TABLE table_name_54 (opponent VARCHAR, type_of_game VARCHAR, city VARCHAR)
SELECT opponent FROM table_name_54 WHERE type_of_game = "euro '84 qualifying" AND city = "split"
Which opponent played a 1990 wcq type of game, where the results were 0:0?
CREATE TABLE table_name_99 (opponent VARCHAR, type_of_game VARCHAR, results¹ VARCHAR)
SELECT opponent FROM table_name_99 WHERE type_of_game = "1990 wcq" AND results¹ = "0:0"
How many outcomes occur on the date of January 31, 2010?
CREATE TABLE table_26202940_6 (outcome VARCHAR, date VARCHAR)
SELECT COUNT(outcome) FROM table_26202940_6 WHERE date = "January 31, 2010"
In the Year Yugoslavia won 1 Silver, how many Gold medals did they win?
CREATE TABLE table_name_14 (gold VARCHAR, silver VARCHAR)
SELECT gold FROM table_name_14 WHERE silver = "1"
What venue is in Long Beach?
CREATE TABLE table_name_73 (venue VARCHAR, city VARCHAR)
SELECT venue FROM table_name_73 WHERE city = "long beach"
What was the attendance when Bournemouth was the away team?
CREATE TABLE table_name_25 (attendance VARCHAR, away_team VARCHAR)
SELECT attendance FROM table_name_25 WHERE away_team = "bournemouth"
What team has a score of w 110–87 (ot)?
CREATE TABLE table_27734577_8 (team VARCHAR, score VARCHAR)
SELECT team FROM table_27734577_8 WHERE score = "W 110–87 (OT)"
What is the song name that featured Marcus Temu as the lead supporting vocalist?
CREATE TABLE table_name_12 (song VARCHAR, lead_supporting_vocal VARCHAR)
SELECT song FROM table_name_12 WHERE lead_supporting_vocal = "marcus temu"
What is the Season Outcome, when the School is Sussex Tech?
CREATE TABLE table_name_70 (season_outcome VARCHAR, school VARCHAR)
SELECT season_outcome FROM table_name_70 WHERE school = "sussex tech"