answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT race_1 FROM table_name_71 WHERE team = "dick johnson racing" AND race_3 = "dnf"
What is Race 1, when Team is "Dick Johnson Racing", and when Race 3 is "DNF"?
CREATE TABLE table_name_71 (race_1 VARCHAR, team VARCHAR, race_3 VARCHAR)
SELECT result FROM table_name_72 WHERE week = 16
What is Result, when Week is 16?
CREATE TABLE table_name_72 (result VARCHAR, week VARCHAR)
SELECT LName FROM STUDENT WHERE Major = 50
Find the last names of students with major 50.
CREATE TABLE STUDENT (LName VARCHAR, Major VARCHAR)
SELECT away_team FROM table_name_42 WHERE date = "21 september"
who is the away team on 21 september?
CREATE TABLE table_name_42 (away_team VARCHAR, date VARCHAR)
SELECT school_type FROM table_28744929_1 WHERE institution = "Clemson"
what type over school is Clemson?
CREATE TABLE table_28744929_1 (school_type VARCHAR, institution VARCHAR)
SELECT SUM(heat) FROM table_name_89 WHERE athlete = "anita pistone"
what is the heat when the athlete is anita pistone?
CREATE TABLE table_name_89 (heat INTEGER, athlete VARCHAR)
SELECT tie_no FROM table_name_21 WHERE away_team = "northwich victoria"
What was the tie no when the away team was northwich victoria?
CREATE TABLE table_name_21 (tie_no VARCHAR, away_team VARCHAR)
SELECT station FROM table_name_65 WHERE zone_2010 = "7"
Which Station has a Zone 2010 of 7?
CREATE TABLE table_name_65 (station VARCHAR, zone_2010 VARCHAR)
SELECT MIN(average_votes_per_candidate) FROM table_28819393_1 WHERE average__percentage_of_vote_per_candidate = "3.29"
When 3.29% was the average per candidate, what was the number of average votes per candidate?
CREATE TABLE table_28819393_1 (average_votes_per_candidate INTEGER, average__percentage_of_vote_per_candidate VARCHAR)
SELECT COUNT(season) FROM table_name_9 WHERE car__number > 17 AND sponsor = "ups"
How many seasons has UPS sponsored a car with a number larger than 17?
CREATE TABLE table_name_9 (season VARCHAR, car__number VARCHAR, sponsor VARCHAR)
SELECT DISTINCT artist_name FROM song WHERE languages = "english" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8
Find the names of the artists who have produced English songs but have never received rating higher than 8.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR, rating INTEGER)
SELECT pos FROM table_name_86 WHERE college = "tennessee state"
What position did athlete play from Tennessee state?
CREATE TABLE table_name_86 (pos VARCHAR, college VARCHAR)
SELECT COUNT(winner) FROM table_178242_7 WHERE runner_up = "Regina"
How many won the prize when Regina was the runner-up?
CREATE TABLE table_178242_7 (winner VARCHAR, runner_up VARCHAR)
SELECT MAX(viewers__m_) FROM table_name_54 WHERE rating = "1.7" AND episode = "the game of life"
What Viewers (m) has a Rating of 1.7, and an Episode of the game of life?
CREATE TABLE table_name_54 (viewers__m_ INTEGER, rating VARCHAR, episode VARCHAR)
SELECT tournament FROM table_name_11 WHERE runner_s__up = "tom kite"
What tournament had a Runner(s)-up of Tom Kite?
CREATE TABLE table_name_11 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT ncbi_accession_number__mrna_protein_ FROM table_16849531_2 WHERE species = "Homo sapiens"
What is the NCBI Accession Number of the Homo Sapiens species?
CREATE TABLE table_16849531_2 (ncbi_accession_number__mrna_protein_ VARCHAR, species VARCHAR)
SELECT SUM(losses) FROM table_name_11 WHERE team_name = "burnaby lakers" AND points = 8 AND season = "1998" AND games < 25
How many losses did the Burnaby Lakers accumulate when they scored 8 points in 1998 playing less than 25 games?
CREATE TABLE table_name_11 (losses INTEGER, games VARCHAR, season VARCHAR, team_name VARCHAR, points VARCHAR)
SELECT feminine_ōn_stems FROM table_name_82 WHERE feminine_ō_stems = "siangu"
What ending does siangu get for ön?
CREATE TABLE table_name_82 (feminine_ōn_stems VARCHAR, feminine_ō_stems VARCHAR)
SELECT MIN(pick__number) FROM table_1473672_7 WHERE player = "Serge Beaudoin"
Serge Beaudoin was drafted when in the 1972 NHL draft
CREATE TABLE table_1473672_7 (pick__number INTEGER, player VARCHAR)
SELECT COUNT(completed) FROM table_24496403_1 WHERE ship = "Carysfort"
How many ships were named Carysfort?
CREATE TABLE table_24496403_1 (completed VARCHAR, ship VARCHAR)
SELECT res FROM table_name_65 WHERE method = "submission (guillotine choke)" AND opponent = "tom bolger"
What was the resolution for the fight against tom bolger by submission (guillotine choke)?
CREATE TABLE table_name_65 (res VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT riaa_sales_certification FROM table_name_50 WHERE billboard_200_peak < 18 AND year < 1972
Before the Year 1972, what RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak less than 18?
CREATE TABLE table_name_50 (riaa_sales_certification VARCHAR, billboard_200_peak VARCHAR, year VARCHAR)
SELECT COUNT(high_points) FROM table_27734286_7 WHERE date = "January 7"
How many games did they play on january 7?
CREATE TABLE table_27734286_7 (high_points VARCHAR, date VARCHAR)
SELECT height FROM table_name_63 WHERE name = "james stanton"
What is the height of player James Stanton?
CREATE TABLE table_name_63 (height VARCHAR, name VARCHAR)
SELECT Delegate, Committee FROM election
Show the delegate and committee information of elections.
CREATE TABLE election (Delegate VARCHAR, Committee VARCHAR)
SELECT position FROM table_name_10 WHERE year_born > 1978 AND current_club = "cherkassy monkeys"
Which position from the Cherkassy Monkeys' club was born after 1978?
CREATE TABLE table_name_10 (position VARCHAR, year_born VARCHAR, current_club VARCHAR)
SELECT 2003 AS rank FROM table_name_17 WHERE airport = "los angeles international airport"
What is the 2003 rank for Los Angeles International airport?
CREATE TABLE table_name_17 (airport VARCHAR)
SELECT interview_subject FROM table_1566852_7 WHERE cover_model = "Kara Monaco"
IN THE ISSUE WITH KARA MONACO ON THE COVER, WHO WAS THE INTERVIEW SUBJECT?
CREATE TABLE table_1566852_7 (interview_subject VARCHAR, cover_model VARCHAR)
SELECT english FROM table_name_53 WHERE german = "apfel"
What's the English word for apfel?
CREATE TABLE table_name_53 (english VARCHAR, german VARCHAR)
SELECT type FROM table_name_2 WHERE nat = "ger" AND name = "marcell jansen"
Marcell Jansen of the nation GER has what for the type?
CREATE TABLE table_name_2 (type VARCHAR, nat VARCHAR, name VARCHAR)
SELECT home_captain FROM table_name_22 WHERE venue = "edgbaston"
Who is the home captain that played at Edgbaston?
CREATE TABLE table_name_22 (home_captain VARCHAR, venue VARCHAR)
SELECT position FROM table_1473672_5 WHERE player = "Dave Johnson"
What position did Dave Johnson play?
CREATE TABLE table_1473672_5 (position VARCHAR, player VARCHAR)
SELECT austria FROM table_name_13 WHERE croatia = "ireland"
What is shown for Austria when Croatia shows Ireland?
CREATE TABLE table_name_13 (austria VARCHAR, croatia VARCHAR)
SELECT result FROM table_name_19 WHERE opponent = "rochester royals"
What is Result, when Opponent is "Rochester Royals"?
CREATE TABLE table_name_19 (result VARCHAR, opponent VARCHAR)
SELECT COUNT(played) FROM table_name_1 WHERE drawn = 2 AND position > 3 AND points < 10
How much Played has Drawn of 2, and a Position larger than 3, and Points smaller than 10?
CREATE TABLE table_name_1 (played VARCHAR, points VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT opponents_in_the_final FROM table_name_38 WHERE partner = "frederik nielsen"
Who is Partner Frederik Nielsen's Opponents in the final?
CREATE TABLE table_name_38 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT home_team FROM table_name_54 WHERE away_team = "south melbourne"
What home team played against south Melbourne?
CREATE TABLE table_name_54 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(draws) FROM table_name_56 WHERE wins < 20 AND points < 41 AND goals_for < 27
What is the highest number of draws a club with less than 20 wins, less than 41 points, and less than 27 goals have?
CREATE TABLE table_name_56 (draws INTEGER, goals_for VARCHAR, wins VARCHAR, points VARCHAR)
SELECT score FROM table_name_96 WHERE game = 21
What is the score of game 21?
CREATE TABLE table_name_96 (score VARCHAR, game VARCHAR)
SELECT nationality FROM table_name_5 WHERE title = "deacon of s. maria in via lata"
What is the Nationality of the Deacon of S. Maria in Via Lata?
CREATE TABLE table_name_5 (nationality VARCHAR, title VARCHAR)
SELECT publication_date FROM table_name_25 WHERE fictional_date = "2112"
Name the publication date when the fictional date is 2112
CREATE TABLE table_name_25 (publication_date VARCHAR, fictional_date VARCHAR)
SELECT MIN(touchdowns) FROM table_1037590_1 WHERE completion__percentage = "56.0"
How many touchdowns were scored in the year with a completion percentage of 56.0?
CREATE TABLE table_1037590_1 (touchdowns INTEGER, completion__percentage VARCHAR)
SELECT thursday FROM table_name_51 WHERE wednesday = "星期三 xingqisen"
Which Thursday has a Wednesday of 星期三 xingqisen?
CREATE TABLE table_name_51 (thursday VARCHAR, wednesday VARCHAR)
SELECT engine_displacement FROM table_1147705_1 WHERE engine_type = "B5254 T"
What is the engine displacement for the engine type b5254 t?
CREATE TABLE table_1147705_1 (engine_displacement VARCHAR, engine_type VARCHAR)
SELECT COUNT(_number) FROM table_22871239_8 WHERE score = "L 110-112"
Name the total number for score l 110-112
CREATE TABLE table_22871239_8 (_number VARCHAR, score VARCHAR)
SELECT result FROM table_2208838_2 WHERE runner_up = "River Plate"
What was the final score when River Plate was the runner-up?
CREATE TABLE table_2208838_2 (result VARCHAR, runner_up VARCHAR)
SELECT mountains_classification FROM table_27112708_2 WHERE stage = 3
Which mountains classification is listed under stage 3?
CREATE TABLE table_27112708_2 (mountains_classification VARCHAR, stage VARCHAR)
SELECT fate FROM table_name_7 WHERE name_of_ship = "proletarij"
How did the ship named proletarij finish its service?
CREATE TABLE table_name_7 (fate VARCHAR, name_of_ship VARCHAR)
SELECT points FROM table_24998088_1 WHERE position = "34th"
How many points did he have when he has in the 34th position?
CREATE TABLE table_24998088_1 (points VARCHAR, position VARCHAR)
SELECT studio FROM table_name_85 WHERE director = "reginald hudlin"
What studio is director Reginald Hudlin from?
CREATE TABLE table_name_85 (studio VARCHAR, director VARCHAR)
SELECT date_of_birth FROM table_27998152_1 WHERE no = 7
for the no. 7 what is the date of birth
CREATE TABLE table_27998152_1 (date_of_birth VARCHAR, no VARCHAR)
SELECT COUNT(national_university_of_ireland) FROM table_name_34 WHERE agricultural_panel = 0 AND labour_panel > 0
I want to know the total number of national university of ireland with agricultural panel of 0 and labour panel more than 0
CREATE TABLE table_name_34 (national_university_of_ireland VARCHAR, agricultural_panel VARCHAR, labour_panel VARCHAR)
SELECT transit_connections FROM table_22771048_3 WHERE station = "Capitol Hill U"
Name the transit connections for capitol hill u
CREATE TABLE table_22771048_3 (transit_connections VARCHAR, station VARCHAR)
SELECT series FROM table_11965481_13 WHERE date = "June 5"
Name the series on june 5
CREATE TABLE table_11965481_13 (series VARCHAR, date VARCHAR)
SELECT nationality FROM table_name_24 WHERE position = "(d)" AND college = "sc bern ( swiss )"
What is the nationality for the position of (d), and college was SC Bern ( Swiss )?
CREATE TABLE table_name_24 (nationality VARCHAR, position VARCHAR, college VARCHAR)
SELECT COUNT(car__number) FROM table_name_74 WHERE make = "chevrolet" AND driver = "mike skinner"
What is Mike Skinner's Chevrolet's Car #?
CREATE TABLE table_name_74 (car__number VARCHAR, make VARCHAR, driver VARCHAR)
SELECT report FROM table_21191496_1 WHERE country = "Netherlands"
When Netherlands is the country what is the report?
CREATE TABLE table_21191496_1 (report VARCHAR, country VARCHAR)
SELECT position FROM table_22719663_3 WHERE college = "San Jose State"
What position did the player from San Jose State play?
CREATE TABLE table_22719663_3 (position VARCHAR, college VARCHAR)
SELECT holmenkollen FROM table_name_22 WHERE country = "norway" AND winner = "tom sandberg"
Which Holmenkollen has a Country of norway, and a Winner of tom sandberg?
CREATE TABLE table_name_22 (holmenkollen VARCHAR, country VARCHAR, winner VARCHAR)
SELECT to_par FROM table_name_32 WHERE finish = "t8"
What is the To Par of the player with a t8 Finish?
CREATE TABLE table_name_32 (to_par VARCHAR, finish VARCHAR)
SELECT _percentage_same_sex_marriages FROM table_19614212_1 WHERE year = "2011"
What is the % of same-sex marriages for the year of 2011?
CREATE TABLE table_19614212_1 (_percentage_same_sex_marriages VARCHAR, year VARCHAR)
SELECT frequency FROM table_name_33 WHERE branding = "dzec radyo agila 1062"
What frequency does branding dzec radyo agila 1062 have?
CREATE TABLE table_name_33 (frequency VARCHAR, branding VARCHAR)
SELECT won_promotion FROM table_2119448_3 WHERE season = 1987
Name the won promotion for 1987
CREATE TABLE table_2119448_3 (won_promotion VARCHAR, season VARCHAR)
SELECT COUNT(episode) FROM table_24910733_2 WHERE rating = "8.2"
How many episodes received rating of 8.2?
CREATE TABLE table_24910733_2 (episode VARCHAR, rating VARCHAR)
SELECT location FROM table_28794440_1 WHERE frequency = "1485kHz"
Where are all the 1485khz frequency located?
CREATE TABLE table_28794440_1 (location VARCHAR, frequency VARCHAR)
SELECT finalist FROM table_name_20 WHERE surface = "clay" AND semifinalists = "yevgeny kafelnikov juan carlos ferrero (2)"
Who is the Finalist, when the Surface is Clay, and when the Semifinalist is Yevgeny Kafelnikov Juan Carlos Ferrero (2)?
CREATE TABLE table_name_20 (finalist VARCHAR, surface VARCHAR, semifinalists VARCHAR)
SELECT result FROM table_name_51 WHERE box_scores = "box" AND date = "september 25"
What was the result of the game on September 25 with a box score of box?
CREATE TABLE table_name_51 (result VARCHAR, box_scores VARCHAR, date VARCHAR)
SELECT player FROM table_name_49 WHERE events = 12
Which player competed in 12 events?
CREATE TABLE table_name_49 (player VARCHAR, events VARCHAR)
SELECT city FROM table_name_96 WHERE stadium = "estadio san cristóbal"
Which City has a Stadium of estadio san cristóbal?
CREATE TABLE table_name_96 (city VARCHAR, stadium VARCHAR)
SELECT MIN(round) FROM table_20872722_1
What is the round?
CREATE TABLE table_20872722_1 (round INTEGER)
SELECT MIN(total_votes) FROM table_19698421_1 WHERE year = "2005"
What was the total number of votes in the 2005 elections?
CREATE TABLE table_19698421_1 (total_votes INTEGER, year VARCHAR)
SELECT home FROM table_11964047_9 WHERE score = "L 80–88"
what's the home team where score is l 80–88
CREATE TABLE table_11964047_9 (home VARCHAR, score VARCHAR)
SELECT first_elected FROM table_1342218_43 WHERE district = "Texas 2"
What year was first-elected for the row of Texas 2?
CREATE TABLE table_1342218_43 (first_elected VARCHAR, district VARCHAR)
SELECT host_team FROM table_name_75 WHERE stadium = "tampa stadium"
What team hosted at Tampa Stadium?
CREATE TABLE table_name_75 (host_team VARCHAR, stadium VARCHAR)
SELECT n° FROM table_15887683_5 WHERE package_option = "Sky Cinema" AND content = "cinema" AND television_service = "Sky Cinema" + 24
What are the values of n for cinema content provided by Sky Cinema +24 on its Sky Cinema package?
CREATE TABLE table_15887683_5 (n° VARCHAR, television_service VARCHAR, package_option VARCHAR, content VARCHAR)
SELECT AVG(rd__number) FROM table_name_82 WHERE player = "steve hazlett" AND pl_gp < 0
When Steve Hazlett is the Player, and the PI GP is under 0, what is the average Rd #?
CREATE TABLE table_name_82 (rd__number INTEGER, player VARCHAR, pl_gp VARCHAR)
SELECT venue FROM table_name_52 WHERE away_team = "melbourne"
What venue did melbourne play at as the away team?
CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR)
SELECT captain FROM table_name_28 WHERE lost = 13
What Captain has Lost 13?
CREATE TABLE table_name_28 (captain VARCHAR, lost VARCHAR)
SELECT COUNT(2009) FROM table_name_49 WHERE 1999 < 1 AND 2006 > 0 AND 1997 < 0
How many countries in 2009 have fewer than 1 in 1999, more than 0 in 2006 and none in 1997?
CREATE TABLE table_name_49 (Id VARCHAR)
SELECT COUNT(title) FROM table_10470082_5 WHERE _number = 11
How many titles have the number 11
CREATE TABLE table_10470082_5 (title VARCHAR, _number VARCHAR)
SELECT song_s__—_weeks FROM table_19542477_9 WHERE issue_years = 2012 AND artist_s_ = "Rihanna"
What is the title of every song, and how many weeks was each song at #1 for Rihanna in 2012?
CREATE TABLE table_19542477_9 (song_s__—_weeks VARCHAR, issue_years VARCHAR, artist_s_ VARCHAR)
SELECT T3.Pilot_name, T2.Model FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID
Show the names of pilots and models of aircrafts they have flied with.
CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE pilot (Pilot_name VARCHAR, Pilot_ID VARCHAR); CREATE TABLE aircraft (Model VARCHAR, Aircraft_ID VARCHAR)
SELECT MIN(round) FROM table_name_8 WHERE time = "5:00" AND event = "wild bill's fight night 21"
What is the lwoest round of wild bill's fight night 21 at 5:00?
CREATE TABLE table_name_8 (round INTEGER, time VARCHAR, event VARCHAR)
SELECT COUNT(points) FROM table_19534874_2 WHERE mile_run = 3
How many point categories are there for the 3 mile run?
CREATE TABLE table_19534874_2 (points VARCHAR, mile_run VARCHAR)
SELECT laps FROM table_name_60 WHERE grid > 15 AND driver = "innes ireland"
How many laps did Innes Ireland make when he had a grid more than 15?
CREATE TABLE table_name_60 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT date FROM table_2446333_2 WHERE sprint_winner = "Mexico"
Name the date for sprint winner mexico
CREATE TABLE table_2446333_2 (date VARCHAR, sprint_winner VARCHAR)
SELECT championship FROM table_22858557_1 WHERE opponent_in_final = "Steffi Graf"
How many championships have there been with Steffi Graf?
CREATE TABLE table_22858557_1 (championship VARCHAR, opponent_in_final VARCHAR)
SELECT result FROM table_name_14 WHERE opponent_number = "at michigan state"
What was the result when they played at Michigan State?
CREATE TABLE table_name_14 (result VARCHAR, opponent_number VARCHAR)
SELECT COUNT(silver) FROM table_name_19 WHERE total < 1
What is the total number of Silver with a Total that is smaller than 1?
CREATE TABLE table_name_19 (silver VARCHAR, total INTEGER)
SELECT AVG(total_goals) FROM table_name_92 WHERE fa_cup_goals = 0 AND fa_cup_apps = "3" AND position = "fw"
Which Total Goals have an FA Cup Goals of 0, and an FA Cup Apps of 3, and a Position of fw?
CREATE TABLE table_name_92 (total_goals INTEGER, position VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)
SELECT head_coach FROM table_name_95 WHERE opponent = "arsenal"
Who was the head coach when the opponent was Arsenal?
CREATE TABLE table_name_95 (head_coach VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_56 WHERE year < 1994
What location is previous to 1994?
CREATE TABLE table_name_56 (location VARCHAR, year INTEGER)
SELECT championship FROM table_name_79 WHERE score_in_the_final = "3–6, 6–4, 5–7"
Which championship had a score in the final of 3–6, 6–4, 5–7?
CREATE TABLE table_name_79 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT rank FROM table_name_66 WHERE year = "2012" AND out_of > 176
Tell me the rank for year of 2012 and out of larger than 176
CREATE TABLE table_name_66 (rank VARCHAR, year VARCHAR, out_of VARCHAR)
SELECT roger_françois FROM table_name_54 WHERE world_record = "total"
What is the total amount of world records for Roger Francois?
CREATE TABLE table_name_54 (roger_françois VARCHAR, world_record VARCHAR)
SELECT MAX(game) FROM table_name_96 WHERE february = 25
Which Game is the highest one that has a February of 25?
CREATE TABLE table_name_96 (game INTEGER, february VARCHAR)
SELECT goals FROM table_name_70 WHERE date = "8/4/04"
What are the goals for 8/4/04?
CREATE TABLE table_name_70 (goals VARCHAR, date VARCHAR)
SELECT nickname FROM table_name_34 WHERE division = "division 2"
What is the nickname of the team in division 2?
CREATE TABLE table_name_34 (nickname VARCHAR, division VARCHAR)
SELECT score FROM table_name_18 WHERE report = "afc" AND date = "april 4, 2008"
What is the score for a report of AFC on April 4, 2008?
CREATE TABLE table_name_18 (score VARCHAR, report VARCHAR, date VARCHAR)
SELECT date FROM table_name_96 WHERE winner = "new york giants" AND year > 2011
What date did the new york giants win after 2011?
CREATE TABLE table_name_96 (date VARCHAR, winner VARCHAR, year VARCHAR)