answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT SUM(grid) FROM table_name_39 WHERE driver = "alain prost"
Which Grid did Alain Prost drive on?
CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR)
SELECT COUNT(overall) FROM table_name_28 WHERE position = "wide receiver" AND player = "tom fleming"
What was the overall draft number of Tom Fleming, a wide receiver?
CREATE TABLE table_name_28 (overall VARCHAR, position VARCHAR, player VARCHAR)
SELECT gold_medals FROM table_1305623_12 WHERE total_medals = 1
How many gold medals does each school who has a total of 1 medal have?
CREATE TABLE table_1305623_12 (gold_medals VARCHAR, total_medals VARCHAR)
SELECT COUNT(letters) FROM table_2538117_12 WHERE founding_date = "1997-12-12"
How many letters were given to the organization with a founding date of 1997-12-12?
CREATE TABLE table_2538117_12 (letters VARCHAR, founding_date VARCHAR)
SELECT language FROM table_name_24 WHERE original_title = "la diagonale du fou"
What language is the film La Diagonale du Fou in?
CREATE TABLE table_name_24 (language VARCHAR, original_title VARCHAR)
SELECT home_team FROM table_17736890_5 WHERE away_team = "Burnley"
Who was the home team when Burnley were the away team?
CREATE TABLE table_17736890_5 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(points) FROM table_name_89 WHERE year = 1992 AND chassis = "minardi m192"
What are the lowest points from 1992 with a Chassis of Minardi m192?
CREATE TABLE table_name_89 (points INTEGER, year VARCHAR, chassis VARCHAR)
SELECT home_team AS score FROM table_name_23 WHERE home_team = "footscray"
What did Footscray score at the home game?
CREATE TABLE table_name_23 (home_team VARCHAR)
SELECT COUNT(division) FROM table_25840200_1 WHERE location = "Verona, USA"
What was the division number for Verona, USA?
CREATE TABLE table_25840200_1 (division VARCHAR, location VARCHAR)
SELECT title FROM table_16951593_1 WHERE no_in_season = "9"
Name the title for number in season 9
CREATE TABLE table_16951593_1 (title VARCHAR, no_in_season VARCHAR)
SELECT score FROM table_name_11 WHERE opponent = "new york knicks"
What was the final score for the game played against the New York Knicks?
CREATE TABLE table_name_11 (score VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_9 WHERE game > 15 AND opponent = "edmonton oilers"
Can you tell me the Record that has the Game larger than 15, and the Opponent of edmonton oilers?
CREATE TABLE table_name_9 (record VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_66 WHERE score = "2–1"
Score of 2–1 has what record?
CREATE TABLE table_name_66 (record VARCHAR, score VARCHAR)
SELECT description FROM table_name_58 WHERE date = 1911
What is the description where the date is 1911?
CREATE TABLE table_name_58 (description VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_1 WHERE date = "february 12"
which opponent is from February 12?
CREATE TABLE table_name_1 (opponent VARCHAR, date VARCHAR)
SELECT AVG(poles) FROM table_name_59 WHERE races < 4
What Poles have Races smaller than 4?
CREATE TABLE table_name_59 (poles INTEGER, races INTEGER)
SELECT MAX(founded) FROM table_name_94 WHERE joined = "2011"
What is the most recently founded school that joined in 2011?
CREATE TABLE table_name_94 (founded INTEGER, joined VARCHAR)
SELECT match_points FROM table_28068063_2 WHERE winners = "Connacht"
What was the match points score for the match won by Connacht?
CREATE TABLE table_28068063_2 (match_points VARCHAR, winners VARCHAR)
SELECT home_team FROM table_name_76 WHERE tie_no = "34"
What is the home team of the game with tie number 34?
CREATE TABLE table_name_76 (home_team VARCHAR, tie_no VARCHAR)
SELECT matches FROM table_name_31 WHERE goals = 360
How many matches had 360 goals?
CREATE TABLE table_name_31 (matches VARCHAR, goals VARCHAR)
SELECT electrical FROM table_1348246_3 WHERE secretariat = "PO(W)"
What are electricals where secretariat is po(w)?
CREATE TABLE table_1348246_3 (electrical VARCHAR, secretariat VARCHAR)
SELECT genre FROM table_name_23 WHERE year < 2002 AND game = "the sims"
What's the genre of The Sims before 2002?
CREATE TABLE table_name_23 (genre VARCHAR, year VARCHAR, game VARCHAR)
SELECT country FROM table_name_78 WHERE score = 72 - 72 - 72 = 216
What country was the golfer with a score of 72-72-72=216 representing?
CREATE TABLE table_name_78 (country VARCHAR, score VARCHAR)
SELECT MAX(appearances) FROM table_name_21 WHERE flamengo_career = "1989–1993 1996–1998 2004–2005"
How many appearances did the flamengo player who was with flamengo during the years 1989–1993 1996–1998 2004–2005 have?
CREATE TABLE table_name_21 (appearances INTEGER, flamengo_career VARCHAR)
SELECT original_air_date FROM table_27790959_1 WHERE us_viewers__million_ = "5.42"
What was the original air date of the episode that had 5.42 million viewers?
CREATE TABLE table_27790959_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT location FROM table_name_23 WHERE current_conference = "ssac" AND institution = "belhaven college"
Where is the Belhaven College SSAC conference location?
CREATE TABLE table_name_23 (location VARCHAR, current_conference VARCHAR, institution VARCHAR)
SELECT country FROM table_17596418_4 WHERE p = "GK"
What country has a P of GK?
CREATE TABLE table_17596418_4 (country VARCHAR, p VARCHAR)
SELECT date FROM table_name_58 WHERE surface = "clay" AND opponent_in_the_final = "flavio cipolla"
On what date did the match against Flavio Cipolla, played on a clay surface, occur?
CREATE TABLE table_name_58 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT capacity FROM table_name_97 WHERE city_area = "chester"
What is the capacity for the arena in Chester?
CREATE TABLE table_name_97 (capacity VARCHAR, city_area VARCHAR)
SELECT MIN(decile) FROM table_name_60 WHERE area = "otumoetai"
What is the smallest decile with an Area of otumoetai?
CREATE TABLE table_name_60 (decile INTEGER, area VARCHAR)
SELECT _number FROM table_13183076_3 WHERE production_code = "3T7057"
What is the # for the episode with a Production code of 3T7057?
CREATE TABLE table_13183076_3 (_number VARCHAR, production_code VARCHAR)
SELECT MAX(round) FROM table_name_34 WHERE nationality = "canada" AND draft < 1970 AND pick = 7
What round had Canada with a draft of 1970 and a pick of 7?
CREATE TABLE table_name_34 (round INTEGER, pick VARCHAR, nationality VARCHAR, draft VARCHAR)
SELECT COUNT(position) FROM table_name_12 WHERE goal_difference > -17 AND played < 38
Tell me the total number of positions with goal difference more than -17 and played less than 38
CREATE TABLE table_name_12 (position VARCHAR, goal_difference VARCHAR, played VARCHAR)
SELECT COUNT(highest) FROM table_2472711_31 WHERE lowest = 16415
How many highest figures for the team with lowest of 16415?
CREATE TABLE table_2472711_31 (highest VARCHAR, lowest VARCHAR)
SELECT republican_ticket FROM table_name_27 WHERE prohibition_ticket = "stephen mead wing"
What kind of Republican ticket has a Prohibition ticket of stephen mead wing?
CREATE TABLE table_name_27 (republican_ticket VARCHAR, prohibition_ticket VARCHAR)
SELECT surface FROM table_26202788_7 WHERE opponent_in_the_final = "Andy Roddick"
Andy Roddick is the opponent in the final on what surface?
CREATE TABLE table_26202788_7 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT game_site FROM table_name_93 WHERE attendance = "63,336"
What is the location of the game with attendance of 63,336?
CREATE TABLE table_name_93 (game_site VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_73 WHERE game < 4 AND score = "116-114"
What date has a game smaller than 4, and a score of 116-114?
CREATE TABLE table_name_73 (date VARCHAR, game VARCHAR, score VARCHAR)
SELECT AVG(conversions) FROM table_name_91 WHERE team = "cardiff blues" AND tries < 14
What is the average number of conversions for the Cardiff Blues with less than 14 tries?
CREATE TABLE table_name_91 (conversions INTEGER, team VARCHAR, tries VARCHAR)
SELECT SUM(round) FROM table_name_21 WHERE pick = 13
How many rounds have a Pick of 13?
CREATE TABLE table_name_21 (round INTEGER, pick VARCHAR)
SELECT MIN(tackles) FROM table_15581223_8 WHERE player = "Danny Clark"
Name the least amount of tackles for danny clark
CREATE TABLE table_15581223_8 (tackles INTEGER, player VARCHAR)
SELECT channel FROM table_name_74 WHERE date = "28 december 2008"
Which channel was on 28 December 2008?
CREATE TABLE table_name_74 (channel VARCHAR, date VARCHAR)
SELECT away_team FROM table_name_19 WHERE home_team = "lincoln city"
Who was the away team when Lincoln City was the home team?
CREATE TABLE table_name_19 (away_team VARCHAR, home_team VARCHAR)
SELECT team FROM table_name_47 WHERE class = "350cc" AND points > 2 AND wins = 1
What team was the bike with a 350cc class, over 2 points, and 1 win?
CREATE TABLE table_name_47 (team VARCHAR, wins VARCHAR, class VARCHAR, points VARCHAR)
SELECT MIN(frequency___hz__) FROM table_name_48 WHERE helmholtz_pitch = "d"
What is the lowest Frequency where the Hemholtz pitch is d?
CREATE TABLE table_name_48 (frequency___hz__ INTEGER, helmholtz_pitch VARCHAR)
SELECT Leading AS scorer FROM table_name_10 WHERE opponent = "@ indiana"
Which Leading Scorer has an Opponent of @ indiana?
CREATE TABLE table_name_10 (Leading VARCHAR, opponent VARCHAR)
SELECT original_title FROM table_name_9 WHERE english_title = "malèna"
English title of malèna had what original title?
CREATE TABLE table_name_9 (original_title VARCHAR, english_title VARCHAR)
SELECT acquisition_via FROM table_name_33 WHERE name = "dennis miranda"
What is the Acquisition via for Dennis Miranda?
CREATE TABLE table_name_33 (acquisition_via VARCHAR, name VARCHAR)
SELECT COUNT(title) FROM table_2701851_3 WHERE production_code = "201a"
how many times is the production code is 201a?
CREATE TABLE table_2701851_3 (title VARCHAR, production_code VARCHAR)
SELECT SUM(year) FROM table_name_3 WHERE genre = "rock (track)"
Which Year has a Genre of rock (track)?
CREATE TABLE table_name_3 (year INTEGER, genre 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 SUM(silver) FROM table_name_7 WHERE nation = "cuba" AND gold < 0
What is the sum of silver medals of the nation Cuba, which has less than 0 gold?
CREATE TABLE table_name_7 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT date FROM table_name_91 WHERE result = "loss" AND record = "7-9"
What is the Date of the game with a Loss and Record of 7-9?
CREATE TABLE table_name_91 (date VARCHAR, result VARCHAR, record VARCHAR)
SELECT lost FROM table_name_50 WHERE try_bp = "10" AND club = "uwic rfc"
Can you tell the Lost that has the Try BP of 10, and the Club of uwic rfc?
CREATE TABLE table_name_50 (lost VARCHAR, try_bp VARCHAR, club VARCHAR)
SELECT MAX(pos) FROM table_19412902_2
What is the lowest position?
CREATE TABLE table_19412902_2 (pos INTEGER)
SELECT 2007 FROM table_name_95 WHERE 2008 = "sf" AND 2010 = "f"
What in 2007 has a 2008 of sf, and a 2010 of f?
CREATE TABLE table_name_95 (Id VARCHAR)
SELECT county FROM table_22815568_6 WHERE unemployment_rate = "4.8%"
What county is the unemployment rate 4.8%?
CREATE TABLE table_22815568_6 (county VARCHAR, unemployment_rate VARCHAR)
SELECT player FROM table_name_67 WHERE year = "1981"
Who was the player in 1981?
CREATE TABLE table_name_67 (player VARCHAR, year VARCHAR)
SELECT gzip FROM table_name_90 WHERE stuffit = "no" AND bzip2 = "no" AND lha_lzh = "no"
What is the gzip value associated with a stuffit of no, bzip2 of no, and LHA.LZH of no?
CREATE TABLE table_name_90 (gzip VARCHAR, lha_lzh VARCHAR, stuffit VARCHAR, bzip2 VARCHAR)
SELECT club FROM table_name_11 WHERE points_against = "405"
What is the Club name what shows 405 for the Points against?
CREATE TABLE table_name_11 (club VARCHAR, points_against VARCHAR)
SELECT score FROM table_23285805_4 WHERE record = "6-8"
If the record is 6-8, what was the score?
CREATE TABLE table_23285805_4 (score VARCHAR, record VARCHAR)
SELECT record FROM table_name_5 WHERE opponent = "@ orioles" AND loss = "leal (5-4)"
What was the record where the opponent was @ Orioles and the loss was to Leal (5-4)?
CREATE TABLE table_name_5 (record VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT winning_score FROM table_name_53 WHERE date = "jul 27, 1997"
What is Winning Score, when Date is Jul 27, 1997?
CREATE TABLE table_name_53 (winning_score VARCHAR, date VARCHAR)
SELECT race_name FROM table_name_72 WHERE winning_driver = "carlos reutemann"
What is the name of the race won by driver Carlos Reutemann?
CREATE TABLE table_name_72 (race_name VARCHAR, winning_driver VARCHAR)
SELECT pick FROM table_name_55 WHERE round < 8 AND overall < 16 AND name = "harry gilmer"
Which pick has a Round smaller than 8, and an Overall smaller than 16, and a Name of harry gilmer?
CREATE TABLE table_name_55 (pick VARCHAR, name VARCHAR, round VARCHAR, overall VARCHAR)
SELECT MAX(total) FROM table_name_71 WHERE rank = "6" AND silver > 2
What's the total of rank number 6 with more than 2 silver?
CREATE TABLE table_name_71 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT COUNT(high_assists) FROM table_27734577_2 WHERE high_rebounds = "Zaza Pachulia (6)"
List the highest number of assists when zaza pachulia (6) had the most rebounds.
CREATE TABLE table_27734577_2 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT category FROM table_name_95 WHERE result = "won" AND year = 1998 AND award = "sundance film festival"
Which category won the Sundance Film Festival award in 1998?
CREATE TABLE table_name_95 (category VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR)
SELECT date FROM table_name_46 WHERE tie_no = "32"
What date was the tie number of 32?
CREATE TABLE table_name_46 (date VARCHAR, tie_no VARCHAR)
SELECT MIN(games) FROM table_name_88 WHERE rank > 1 AND name = "luis scola"
What is the least amount of games for Luis scola with a rank greater than 1?
CREATE TABLE table_name_88 (games INTEGER, rank VARCHAR, name VARCHAR)
SELECT theme_song_s_ FROM table_name_64 WHERE romaji_title = "yukan club"
What is the Theme Song of the Yukan Club?
CREATE TABLE table_name_64 (theme_song_s_ VARCHAR, romaji_title VARCHAR)
SELECT radio_commentator FROM table_2794180_11 WHERE television_commentator = "Jan Gabrielsson"
Who made the comments for radio broadcast when Jan Gabrielsson made them for television broadcast?
CREATE TABLE table_2794180_11 (radio_commentator VARCHAR, television_commentator VARCHAR)
SELECT COUNT(country) FROM table_15909409_2 WHERE total_freshwater_withdrawal__km_3__yr_ = "169.39"
In how many countries was the total freshwater withdrawal (km 3 /yr) 169.39?
CREATE TABLE table_15909409_2 (country VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR)
SELECT home_team FROM table_16388439_3 WHERE ground = "Football Park"
Name the home team for football park
CREATE TABLE table_16388439_3 (home_team VARCHAR, ground VARCHAR)
SELECT AVG(laps) FROM table_name_39 WHERE grid > 22
Tell me the average Laps for grid larger than 22
CREATE TABLE table_name_39 (laps INTEGER, grid INTEGER)
SELECT COUNT(appearances¹) FROM table_24565004_20 WHERE nationality² = "Yugoslavia"
Name the number of appearances for yugoslavia
CREATE TABLE table_24565004_20 (appearances¹ VARCHAR, nationality² VARCHAR)
SELECT MIN(attendance) FROM table_name_7 WHERE date = "november 29, 1959"
Date of november 29, 1959 had what lowest attendance?
CREATE TABLE table_name_7 (attendance INTEGER, date VARCHAR)
SELECT course FROM table_name_5 WHERE stage = "1"
What course are they running on stage 1?
CREATE TABLE table_name_5 (course VARCHAR, stage VARCHAR)
SELECT format FROM table_name_98 WHERE frequency = "100.5 fm"
Which Format has a Frequency of 100.5 fm?
CREATE TABLE table_name_98 (format VARCHAR, frequency VARCHAR)
SELECT away_team AS score FROM table_name_57 WHERE venue = "victoria park"
How much did the away team score at victoria park?
CREATE TABLE table_name_57 (away_team VARCHAR, venue VARCHAR)
SELECT venue FROM table_name_9 WHERE away_team = "geelong"
Where did Geelong play as the away team?
CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR)
SELECT us_viewers__million_ FROM table_2866456_1 WHERE _number = 6
How many u.s. viewers (million) have 6 as the #?
CREATE TABLE table_2866456_1 (us_viewers__million_ VARCHAR, _number VARCHAR)
SELECT score FROM table_name_18 WHERE place = "3"
Which Score has a Place of 3?
CREATE TABLE table_name_18 (score VARCHAR, place VARCHAR)
SELECT MIN(drawn) FROM table_name_86 WHERE points = 2 AND lost < 6
What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?
CREATE TABLE table_name_86 (drawn INTEGER, points VARCHAR, lost VARCHAR)
SELECT pennant FROM table_1220125_4 WHERE laid_down = "4 May 1943"
What is the pennant for 4 may 1943?
CREATE TABLE table_1220125_4 (pennant VARCHAR, laid_down VARCHAR)
SELECT SUM(rank) FROM table_name_66 WHERE heat > 4
what is the rank when the heat is more than 4?
CREATE TABLE table_name_66 (rank INTEGER, heat INTEGER)
SELECT first_issue FROM table_name_89 WHERE title = "bamboo blade"
What is the First Issue date of Bamboo Blade?
CREATE TABLE table_name_89 (first_issue VARCHAR, title VARCHAR)
SELECT championship FROM table_name_50 WHERE year > 2002 AND surface = "hard"
What is Championship, when Year is greater than 2002, and when Surface is Hard?
CREATE TABLE table_name_50 (championship VARCHAR, year VARCHAR, surface VARCHAR)
SELECT score FROM table_name_28 WHERE decision = "hasek" AND date = "january 5"
What's the score on january 5 with a hasek decision?
CREATE TABLE table_name_28 (score VARCHAR, decision VARCHAR, date VARCHAR)
SELECT city FROM table_name_10 WHERE region = "east" AND venue = "university hall (university of virginia)"
What city is east region venue University Hall (University of Virginia) in?
CREATE TABLE table_name_10 (city VARCHAR, region VARCHAR, venue VARCHAR)
SELECT MAX(dcsf_number) FROM table_name_52 WHERE name = "field" AND ofsted_number > 117160
Can you tell me the highest DCSF number that has the Name of field, and the Ofsted number larger than 117160?
CREATE TABLE table_name_52 (dcsf_number INTEGER, name VARCHAR, ofsted_number VARCHAR)
SELECT date FROM table_name_97 WHERE crowd > 30 OFFSET 343
What date was there a crowd larger than 30,343?
CREATE TABLE table_name_97 (date VARCHAR, crowd INTEGER)
SELECT site FROM table_1601792_4 WHERE television_station = "8TV"
What are the site(s) for tv station 8tv?
CREATE TABLE table_1601792_4 (site VARCHAR, television_station VARCHAR)
SELECT player FROM table_name_97 WHERE pba_team = "alaska milkmen" AND college = "up-diliman"
Which player went to college at Up-Diliman and plays on PBA team of the Alaska Milkmen?
CREATE TABLE table_name_97 (player VARCHAR, pba_team VARCHAR, college VARCHAR)
SELECT category FROM table_name_66 WHERE nominating_festival = "prix uip berlin"
Name the category for prix uip berlin
CREATE TABLE table_name_66 (category VARCHAR, nominating_festival VARCHAR)
SELECT MAX(attendance) FROM table_name_9 WHERE home_team = "stevenage borough"
What is the highest attendance for games with stevenage borough at home?
CREATE TABLE table_name_9 (attendance INTEGER, home_team VARCHAR)
SELECT opponent FROM table_17924362_1 WHERE date = "December 8"
Name the opponent for december 8
CREATE TABLE table_17924362_1 (opponent VARCHAR, date VARCHAR)
SELECT MIN(wins) FROM table_26815674_1
What is the lowest overall amount of wins?
CREATE TABLE table_26815674_1 (wins INTEGER)
SELECT record FROM table_name_4 WHERE team = "indiana"
What is the Record for the Team of Indiana?
CREATE TABLE table_name_4 (record VARCHAR, team VARCHAR)
SELECT AVG(max_height__ft_) FROM table_name_24 WHERE time_to_ft__m__at_25°__seconds_ = "10.1" AND shell__lb_ < 12.5
What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25° in 10.1 seconds?
CREATE TABLE table_name_24 (max_height__ft_ INTEGER, time_to_ft__m__at_25°__seconds_ VARCHAR, shell__lb_ VARCHAR)