answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT time_retired FROM table_name_44 WHERE driver = "jan heylen (r)"
What is the Time of Driver Jan Heylen (r)?
CREATE TABLE table_name_44 (time_retired VARCHAR, driver VARCHAR)
SELECT MIN(races) FROM table_name_31 WHERE points < 0
What is the least number of Races for a Racer with less than 0 Points?
CREATE TABLE table_name_31 (races INTEGER, points INTEGER)
SELECT uu_usu_score FROM table_13665809_2 WHERE winner = "#5 Brigham Young (2–0)"
what are all the uu-usu score with winner is #5 brigham young (2–0)
CREATE TABLE table_13665809_2 (uu_usu_score VARCHAR, winner VARCHAR)
SELECT COUNT(clairon) FROM table_29728787_1 WHERE label = "Deutsche Grammophon"
When deutsche grammophon is the label how many clairons are there?
CREATE TABLE table_29728787_1 (clairon VARCHAR, label VARCHAR)
SELECT date FROM table_name_49 WHERE games = "2002 salt lake city" AND time = "3:57.70"
On what day was the record set at the 2002 Salt Lake City games with a time of 3:57.70?
CREATE TABLE table_name_49 (date VARCHAR, games VARCHAR, time VARCHAR)
SELECT namesake FROM table_16768245_2 WHERE longitude = "147.1W"
When the longitude is 147.1w what is the namesake of the feature?
CREATE TABLE table_16768245_2 (namesake VARCHAR, longitude VARCHAR)
SELECT b___bishop FROM table_2603017_2 WHERE ab___angry_boar = "VW - Vertical Wolf"
what is b - bishop where ab - angry boar is vw - vertical wolf?
CREATE TABLE table_2603017_2 (b___bishop VARCHAR, ab___angry_boar VARCHAR)
SELECT to_par FROM table_name_91 WHERE score = 68 - 70 = 138
What was the to par score of the golfer that had a score of 68-70=138?
CREATE TABLE table_name_91 (to_par VARCHAR, score VARCHAR)
SELECT COUNT(rank) FROM table_name_19 WHERE country = "greece"
What is the total number of rank for the country of greece?
CREATE TABLE table_name_19 (rank VARCHAR, country VARCHAR)
SELECT power FROM table_name_93 WHERE city_of_license = "sioux lookout"
What is Power, when City of License is Sioux Lookout?
CREATE TABLE table_name_93 (power VARCHAR, city_of_license VARCHAR)
SELECT 1988 FROM table_name_41 WHERE 1997 = "2r" AND 1993 = "sf"
What is the value in 1988 when it is 2R in 1997 and SF in 1993?
CREATE TABLE table_name_41 (Id VARCHAR)
SELECT lkf_cup FROM table_name_69 WHERE europe = "euroleague group stage" AND regional_competitions = "bbl elite division finalist"
WHAT IS THE LKF CUP WITH euroleague group stage AND bbl elite division finalist?
CREATE TABLE table_name_69 (lkf_cup VARCHAR, europe VARCHAR, regional_competitions VARCHAR)
SELECT COUNT(played) FROM table_20301877_2 WHERE player = "Wayne Mardle"
how many matches did wayne mardle play
CREATE TABLE table_20301877_2 (played VARCHAR, player VARCHAR)
SELECT home_team FROM table_name_33 WHERE away_team = "aston villa"
What home team had an away team of Aston Villa?
CREATE TABLE table_name_33 (home_team VARCHAR, away_team VARCHAR)
SELECT latin_day_name_meaning FROM table_2624098_1 WHERE glossed_from_latin_day_name = "Dies Saturni"
what is the meaning of the latin day name "dies saturni"?
CREATE TABLE table_2624098_1 (latin_day_name_meaning VARCHAR, glossed_from_latin_day_name VARCHAR)
SELECT alternate__2_ FROM table_name_7 WHERE coach = "andy brown" AND captain = "nick grady"
Who is the alternate for Andy Brown, and Nick Grady?
CREATE TABLE table_name_7 (alternate__2_ VARCHAR, coach VARCHAR, captain VARCHAR)
SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE round = "Extra Preliminary round"
Which leagues entered an extra preliminary round?
CREATE TABLE table_23449363_1 (leagues_entering_at_this_round VARCHAR, round VARCHAR)
SELECT location FROM table_11622771_1 WHERE tournament = "Fairfield Barnett Classic"
Where was the Fairfield Barnett classic tournament held?
CREATE TABLE table_11622771_1 (location VARCHAR, tournament VARCHAR)
SELECT points_classification FROM table_name_9 WHERE general_classification = "cyril dessel"
Which Points Classification does the General Classification of Cyril Dessel have?
CREATE TABLE table_name_9 (points_classification VARCHAR, general_classification VARCHAR)
SELECT MAX(pumpers) FROM table_name_78 WHERE cars = 5
what is the highest pumpers when cars is 5?
CREATE TABLE table_name_78 (pumpers INTEGER, cars VARCHAR)
SELECT monday_to_friday FROM table_name_87 WHERE el_canal_de_las_estrellas = "pop tv"
When does the El Canal de las Estrellas of pop tv show from Monday to Friday?
CREATE TABLE table_name_87 (monday_to_friday VARCHAR, el_canal_de_las_estrellas VARCHAR)
SELECT record FROM table_name_78 WHERE game = 19
Which Record has a Game of 19?
CREATE TABLE table_name_78 (record VARCHAR, game VARCHAR)
SELECT team FROM table_name_69 WHERE winner = "craig lowndes" AND circuit = "phillip island grand prix circuit"
Which Team has a Winner of craig lowndes, and a Circuit of phillip island grand prix circuit?
CREATE TABLE table_name_69 (team VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT clubs FROM table_name_17 WHERE stadium = "evgrapi shevardnadze stadium"
What clubs are in the evgrapi shevardnadze stadium?
CREATE TABLE table_name_17 (clubs VARCHAR, stadium VARCHAR)
SELECT driver FROM table_name_77 WHERE points = "35+3"
Which driver had 35+3 points?
CREATE TABLE table_name_77 (driver VARCHAR, points VARCHAR)
SELECT home FROM table_name_43 WHERE date = "april 2"
What is the Home team on April 2?
CREATE TABLE table_name_43 (home VARCHAR, date VARCHAR)
SELECT forward_caste FROM table_name_49 WHERE scheduled_caste = "0.80%"
WHAT IS THE FORWARD CASTE WITH A SCHEDULED CASTE OF 0.80%?
CREATE TABLE table_name_49 (forward_caste VARCHAR, scheduled_caste VARCHAR)
SELECT MIN(gold) FROM table_name_16 WHERE bronze = 0 AND rank = "19" AND silver < 1
What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1?
CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT home_team FROM table_name_8 WHERE away_team = "walsall"
Who was the home team when walsall was the away team?
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR)
SELECT categorie FROM table_name_39 WHERE year = 2002 AND awards = "berlin international film festival"
What was the categorie in 2002 at the Berlin international Film Festival that Danielle Darrieux was in?
CREATE TABLE table_name_39 (categorie VARCHAR, year VARCHAR, awards VARCHAR)
SELECT try_bonus FROM table_name_12 WHERE club = "ynysybwl rfc"
What is the try bonus for ynysybwl rfc?
CREATE TABLE table_name_12 (try_bonus VARCHAR, club VARCHAR)
SELECT COUNT(season__number) FROM table_15838081_3 WHERE writer_s_ = "Jeff Truman"
Name the number of season number for jeff truman
CREATE TABLE table_15838081_3 (season__number VARCHAR, writer_s_ VARCHAR)
SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM perpetrator)
List the names of people that are not perpetrators.
CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE perpetrator (Name VARCHAR, People_ID VARCHAR)
SELECT nationality FROM table_name_52 WHERE time = 50.92
Which nationality has a time of 50.92?
CREATE TABLE table_name_52 (nationality VARCHAR, time VARCHAR)
SELECT date FROM table_name_41 WHERE game_site = "resch center"
What is the date of the game that took place at the Resch Center?
CREATE TABLE table_name_41 (date VARCHAR, game_site VARCHAR)
SELECT COUNT(lane) FROM table_name_86 WHERE rank > 2 AND name = "louise ørnstedt"
what is the number of lane with a rank more than 2 for Louise ørnstedt?
CREATE TABLE table_name_86 (lane VARCHAR, rank VARCHAR, name VARCHAR)
SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality
Show the different nationalities and the number of journalists of each nationality.
CREATE TABLE journalist (Nationality VARCHAR)
SELECT party FROM table_name_69 WHERE result = "re-elected" AND incumbent = "robert p. kennedy"
What party was re-elected as an incumbent of robert p. Kennedy?
CREATE TABLE table_name_69 (party VARCHAR, result VARCHAR, incumbent VARCHAR)
SELECT result_games FROM table_21436373_11 WHERE attendance = 52521
Name the result/games for 52521
CREATE TABLE table_21436373_11 (result_games VARCHAR, attendance VARCHAR)
SELECT bronze FROM table_name_6 WHERE location = "bangkok" AND year = 1978
What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978?
CREATE TABLE table_name_6 (bronze VARCHAR, location VARCHAR, year VARCHAR)
SELECT event FROM table_name_22 WHERE prize = "zł 1,226,711"
What is the name of the event that had a prize of zł 1,226,711?
CREATE TABLE table_name_22 (event VARCHAR, prize VARCHAR)
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Pen and Paper Gaming"
Find the number of members of club "Pen and Paper Gaming".
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)
SELECT outcome FROM table_23944006_4 WHERE championship = "Zurich"
Name the outcome for zurich
CREATE TABLE table_23944006_4 (outcome VARCHAR, championship VARCHAR)
SELECT date FROM table_name_84 WHERE score = "121-113"
On what date was the score 121-113?
CREATE TABLE table_name_84 (date VARCHAR, score VARCHAR)
SELECT 2012 AS _passengers__in_millions_ FROM table_16066063_1 WHERE city_1 = "Seoul"
How many passengers (in millions) flew from Seoul in 2012?
CREATE TABLE table_16066063_1 (city_1 VARCHAR)
SELECT COUNT(promoted_from_league) FROM table_23927423_4 WHERE relegated_to_league = "Esher"
How many were promoted from the league when Esher was relegated to the league?
CREATE TABLE table_23927423_4 (promoted_from_league VARCHAR, relegated_to_league VARCHAR)
SELECT other_[c_] FROM table_name_46 WHERE fa_cup = "0 44 0 (0)"
With a FA Cup of 0 44 0 (0), the other [C] is listed as what?
CREATE TABLE table_name_46 (other_ VARCHAR, c_ VARCHAR, fa_cup VARCHAR)
SELECT ab_ripper_x FROM table_27512025_1 WHERE length = "92:24"
What is the ab ripper x when the length is 92:24?
CREATE TABLE table_27512025_1 (ab_ripper_x VARCHAR, length 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 moving_to FROM table_name_27 WHERE country = "bel"
WHAT IS THE MOVING TO LOCATION WITH BEL AS COUNTRY?
CREATE TABLE table_name_27 (moving_to VARCHAR, country VARCHAR)
SELECT title FROM table_15717093_1 WHERE us_viewers__millions_ = "14.39"
What was the title when there were 14.39 million viewers?
CREATE TABLE table_15717093_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT region FROM table_name_50 WHERE reported_age = "111 years, 107 days"
what is the region when the reported age is 111 years, 107 days?
CREATE TABLE table_name_50 (region VARCHAR, reported_age VARCHAR)
SELECT y_ = _2009 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31)
what is the y = 2009 when the expression is month = floor ((d + e + 114) / 31)?
CREATE TABLE table_214479_8 (y_ VARCHAR, _2009 VARCHAR, expression VARCHAR, month VARCHAR, d VARCHAR, e VARCHAR)
SELECT date FROM table_name_5 WHERE record = "54-55"
On which date were the 2003 Toronto Blue Jays 54-55?
CREATE TABLE table_name_5 (date VARCHAR, record VARCHAR)
SELECT label FROM table_name_98 WHERE date = "1973" AND catalog = "l 35023"
What is the label from 1973 that has a catalog number of l 35023?
CREATE TABLE table_name_98 (label VARCHAR, date VARCHAR, catalog VARCHAR)
SELECT written_by FROM table_28760804_1 WHERE us_viewers__million_ = "5.95"
Who wrote the episode that got 5.95 million U.S. viewers?
CREATE TABLE table_28760804_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT MAX(silver) FROM table_name_6 WHERE total > 95
What is the highest number of silvers a team with more than 95 total medals has?
CREATE TABLE table_name_6 (silver INTEGER, total INTEGER)
SELECT mintage FROM table_name_1 WHERE theme = "cowboy"
How many cowboy coins were minted?
CREATE TABLE table_name_1 (mintage VARCHAR, theme VARCHAR)
SELECT completion__percentage FROM table_name_57 WHERE yards = "2,175"
which Completion % has a Yards of 2,175?
CREATE TABLE table_name_57 (completion__percentage VARCHAR, yards VARCHAR)
SELECT award_ceremony FROM table_name_10 WHERE nominee = "howard bay and patton campbell"
What award ceremony was howard bay and patton campbell nominated?
CREATE TABLE table_name_10 (award_ceremony VARCHAR, nominee VARCHAR)
SELECT notes FROM table_name_64 WHERE rank > 2 AND country = "mexico"
What notes have a rank greater than 2, with mexico as the country?
CREATE TABLE table_name_64 (notes VARCHAR, rank VARCHAR, country VARCHAR)
SELECT length__miles_ FROM table_1817879_2 WHERE endpoints = "Westlake/MacArthur Park to Wilshire/Western"
What is the lenth (miles) of endpoints westlake/macarthur park to wilshire/western?
CREATE TABLE table_1817879_2 (length__miles_ VARCHAR, endpoints VARCHAR)
SELECT successor FROM table_225204_4 WHERE district = "North Carolina 13th"
Name the successor for north carolina 13th
CREATE TABLE table_225204_4 (successor VARCHAR, district VARCHAR)
SELECT away_team AS score FROM table_name_51 WHERE away_team = "st kilda"
How much did the away team St Kilda score?
CREATE TABLE table_name_51 (away_team VARCHAR)
SELECT individual_winners FROM table_1458666_4 WHERE nation = "Australia"
what's the individual winners with nation being australia
CREATE TABLE table_1458666_4 (individual_winners VARCHAR, nation VARCHAR)
SELECT married_filing_separately FROM table_11647327_2 WHERE head_of_household = "$117,451–$190,200"
What is ithe range for married filing separately where head of household is $117,451–$190,200?
CREATE TABLE table_11647327_2 (married_filing_separately VARCHAR, head_of_household VARCHAR)
SELECT date FROM table_name_93 WHERE undecided = "–" AND martin = "7–9%"
What is the Date that has MARTIN of 7–9% and no Undecided?
CREATE TABLE table_name_93 (date VARCHAR, undecided VARCHAR, martin VARCHAR)
SELECT team_classification FROM table_11667521_17 WHERE points_classification = "Bradley Wiggins"
WHAT TEAM CLASSIFIED IN THE STAGE WHERE BRADLEY WIGGINS WON THE POINTS CLASSIFICATION ?
CREATE TABLE table_11667521_17 (team_classification VARCHAR, points_classification VARCHAR)
SELECT date FROM table_name_68 WHERE venue = "mcalpine stadium"
I want the date with the venue of mcalpine stadium
CREATE TABLE table_name_68 (date VARCHAR, venue VARCHAR)
SELECT MAX(overall) FROM table_name_65 WHERE pick__number = 4 AND round > 7
Which highest Overall has a Pick # of 4, and a Round larger than 7?
CREATE TABLE table_name_65 (overall INTEGER, pick__number VARCHAR, round VARCHAR)
SELECT COUNT(season) FROM table_name_67 WHERE original_airdate = "january 24, 1999" AND year < 1999
What is the total number of Season(s), when Original Airdate is January 24, 1999, and when Year is less than 1999?
CREATE TABLE table_name_67 (season VARCHAR, original_airdate VARCHAR, year VARCHAR)
SELECT aspect FROM table_name_23 WHERE channel = 26.5
What is the Aspect of Channel 26.5?
CREATE TABLE table_name_23 (aspect VARCHAR, channel VARCHAR)
SELECT MAX(rank) FROM table_name_37 WHERE definition = "core districts + inner suburbs" AND population = "10123000"
What rank was Core Districts + Inner Suburbs and had a population of 10123000?
CREATE TABLE table_name_37 (rank INTEGER, definition VARCHAR, population VARCHAR)
SELECT college_team FROM table_name_18 WHERE round < 2 AND nationality = "united states"
What is College/Team, when Round is less than 2, and when Nationality is "United States"?
CREATE TABLE table_name_18 (college_team VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT date FROM table_name_80 WHERE opponent = "leeds united"
what is the date when the opponent is leeds united?
CREATE TABLE table_name_80 (date VARCHAR, opponent VARCHAR)
SELECT championship FROM table_1272033_1 WHERE previous_champion_s_ = "Genesis"
What tourmament has Genesis won previously?
CREATE TABLE table_1272033_1 (championship VARCHAR, previous_champion_s_ VARCHAR)
SELECT call_sign FROM table_name_23 WHERE virtual_channel = "16.5"
Virtual channel of 16.5 has what call sign?
CREATE TABLE table_name_23 (call_sign VARCHAR, virtual_channel VARCHAR)
SELECT moving_to FROM table_name_65 WHERE date_from = "27 november 2008"
Where did the player loaned out on 27 november 2008 move to ?
CREATE TABLE table_name_65 (moving_to VARCHAR, date_from VARCHAR)
SELECT MAX(rank) FROM table_name_98 WHERE react > 0.20400000000000001 AND time > 45.56
Which Rank has a Reaction time larger than 0.20400000000000001, and a Time larger than 45.56?
CREATE TABLE table_name_98 (rank INTEGER, react VARCHAR, time VARCHAR)
SELECT AVG(draws) FROM table_name_89 WHERE wins = 14
Which draws have an average of 14 wins?
CREATE TABLE table_name_89 (draws INTEGER, wins VARCHAR)
SELECT opponent_in_the_final FROM table_name_38 WHERE partner = "dustin brown"
Which Opponent in the final has a Partner of dustin brown?
CREATE TABLE table_name_38 (opponent_in_the_final VARCHAR, partner VARCHAR)
SELECT part_number_s_ FROM table_name_20 WHERE frequency = "2.4 ghz"
What part number(s) has a frequency of 2.4 ghz?
CREATE TABLE table_name_20 (part_number_s_ VARCHAR, frequency VARCHAR)
SELECT venue FROM table_name_90 WHERE date = "august 16, 2006"
Which venue had a match played on August 16, 2006?
CREATE TABLE table_name_90 (venue VARCHAR, date VARCHAR)
SELECT MAX(attendance) FROM table_name_84 WHERE date = "september 14, 1986"
What is the highest attendance on September 14, 1986?
CREATE TABLE table_name_84 (attendance INTEGER, date VARCHAR)
SELECT school FROM table_name_37 WHERE player = "billy owens"
What School did Player Billy Owens attend?
CREATE TABLE table_name_37 (school VARCHAR, player VARCHAR)
SELECT ihsaa_class FROM table_name_24 WHERE location = "charlottesville"
Which IHSAA Class is located in charlottesville?
CREATE TABLE table_name_24 (ihsaa_class VARCHAR, location VARCHAR)
SELECT mountain_range FROM table_name_90 WHERE region = "british columbia" AND mountain_peak = "mount edziza"
what is the mountain range when the region is british columbia and mountain pea is mount edziza?
CREATE TABLE table_name_90 (mountain_range VARCHAR, region VARCHAR, mountain_peak VARCHAR)
SELECT position FROM table_name_87 WHERE player = "rich manning"
What position did Rich Manning play?
CREATE TABLE table_name_87 (position VARCHAR, player VARCHAR)
SELECT voltage_input_[v_a] FROM table_name_89 WHERE model = "whr-g54s"
What is the voltage iinput [V/A] of the whr-g54s model?
CREATE TABLE table_name_89 (voltage_input_ VARCHAR, v_a VARCHAR, model VARCHAR)
SELECT position FROM table_name_75 WHERE school_club_team = "nebraska"
What position is listed for the nebraska team?
CREATE TABLE table_name_75 (position VARCHAR, school_club_team VARCHAR)
SELECT 2012 FROM table_name_87 WHERE seasons_in_esiliiga > 4 AND titles > 0
What is the 2012 season in Esiliiga more than 4, and more than 0 titles?
CREATE TABLE table_name_87 (seasons_in_esiliiga VARCHAR, titles VARCHAR)
SELECT SUM(Num_of_Audience) FROM festival_detail
What are the total number of the audiences who visited any of the festivals?
CREATE TABLE festival_detail (Num_of_Audience INTEGER)
SELECT 2007 FROM table_name_12 WHERE 2010 = "wta premier 5 tournaments"
What is the 2007 value for the 2010 wta premier 5 tournaments?
CREATE TABLE table_name_12 (Id VARCHAR)
SELECT years FROM table_name_7 WHERE rank > 6 AND name = "oleksandr kosyrin"
Which years had a rank of more than 6 and involved Oleksandr Kosyrin?
CREATE TABLE table_name_7 (years VARCHAR, rank VARCHAR, name VARCHAR)
SELECT COUNT(election) FROM table_123462_2 WHERE _number_of_candidates_nominated = 262
What is the election year when the # of candidates nominated was 262?
CREATE TABLE table_123462_2 (election VARCHAR, _number_of_candidates_nominated VARCHAR)
SELECT result FROM table_name_50 WHERE score = "3–0"
What result had a score of 3–0?
CREATE TABLE table_name_50 (result VARCHAR, score VARCHAR)
SELECT percentage FROM table_name_23 WHERE candidate = "chris wright"
What percentage did chris wright receive?
CREATE TABLE table_name_23 (percentage VARCHAR, candidate VARCHAR)
SELECT COUNT(losses) FROM table_name_49 WHERE ties = 1 AND poll_wins > 3
What are the number of losses that have Ties of 1 and 3 or more poll wins?
CREATE TABLE table_name_49 (losses VARCHAR, ties VARCHAR, poll_wins VARCHAR)
SELECT MIN(total) FROM table_26980923_2 WHERE team = "Kilmarnock"
What is the total attended for kilmarnock?
CREATE TABLE table_26980923_2 (total INTEGER, team VARCHAR)
SELECT high_rebounds FROM table_name_97 WHERE game = 76
Which High rebounds has a Game of 76?
CREATE TABLE table_name_97 (high_rebounds VARCHAR, game VARCHAR)