context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_45 (album VARCHAR, year INTEGER)
Name the album for years after 2007
SELECT album FROM table_name_45 WHERE year > 2007
CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR)
What was the score on october 17, 2007?
SELECT score FROM table_name_33 WHERE date = "october 17, 2007"
CREATE TABLE table_name_71 (competition VARCHAR, score VARCHAR)
What was the competition for score of 3-0
SELECT competition FROM table_name_71 WHERE score = "3-0"
CREATE TABLE table_name_93 (date VARCHAR, turkey_scorers VARCHAR)
I want the date for nihat kahveci
SELECT date FROM table_name_93 WHERE turkey_scorers = "nihat kahveci"
CREATE TABLE table_name_8 (pick__number INTEGER, reg_gp INTEGER)
What is the smallest pick with a Reg GP less than 0?
SELECT MIN(pick__number) FROM table_name_8 WHERE reg_gp < 0
CREATE TABLE table_name_80 (pick__number VARCHAR, reg_gp INTEGER)
What is the total of pick numbers with a Reg GP larger than 0?
SELECT COUNT(pick__number) FROM table_name_80 WHERE reg_gp > 0
CREATE TABLE table_name_85 (points INTEGER, faults VARCHAR, rider VARCHAR)
What is the total points when there is a refusal fault and the rider is H.R.H. Prince Abdullah Al-Soud?
SELECT SUM(points) FROM table_name_85 WHERE faults = "refusal" AND rider = "h.r.h. prince abdullah al-soud"
CREATE TABLE table_name_96 (points VARCHAR, horse VARCHAR)
What is the total points when the horse is Chippison?
SELECT COUNT(points) FROM table_name_96 WHERE horse = "chippison"
CREATE TABLE table_name_53 (total_time___s__ VARCHAR, horse VARCHAR)
What is the total time (s) for the horse Pinot Grigio?
SELECT total_time___s__ FROM table_name_53 WHERE horse = "pinot grigio"
CREATE TABLE table_name_93 (points INTEGER, time___s__ VARCHAR)
What is the average amount of points when the time (s) is 81.78?
SELECT AVG(points) FROM table_name_93 WHERE time___s__ = "81.78"
CREATE TABLE table_name_59 (position VARCHAR, school VARCHAR)
What is the position of the player from Glades Day School?
SELECT position FROM table_name_59 WHERE school = "glades day school"
CREATE TABLE table_name_78 (position VARCHAR, college VARCHAR)
What is the position of the player who went to college of notre dame?
SELECT position FROM table_name_78 WHERE college = "notre dame"
CREATE TABLE table_name_2 (school VARCHAR, college VARCHAR, hometown VARCHAR)
What is the school of the player who went to the college of michigan and originally comes from Wheaton, Illinois?
SELECT school FROM table_name_2 WHERE college = "michigan" AND hometown = "wheaton, illinois"
CREATE TABLE table_name_12 (chassis VARCHAR, driver VARCHAR)
What Chassis was driven by Otto Stuppacher?
SELECT chassis FROM table_name_12 WHERE driver = "otto stuppacher"
CREATE TABLE table_name_1 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR)
Who drove the car with the n175 chassis in round 13?
SELECT driver FROM table_name_1 WHERE chassis = "n175" AND rounds = "13"
CREATE TABLE table_name_4 (chassis VARCHAR, driver VARCHAR)
What chassis did John Watson drive?
SELECT chassis FROM table_name_4 WHERE driver = "john watson"
CREATE TABLE table_name_53 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, declination___j2000__ VARCHAR)
what is the right ascension (j2000) when the constellation is sextans and the declination (j2000) is °28′01″?
SELECT right_ascension___j2000__ FROM table_name_53 WHERE constellation = "sextans" AND declination___j2000__ = "°28′01″"
CREATE TABLE table_name_10 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)
what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s?
SELECT constellation FROM table_name_10 WHERE right_ascension___j2000__ = "10h18m58.4s"
CREATE TABLE table_name_51 (ngc_number INTEGER, declination___j2000__ VARCHAR)
what is the highest ngc number when the declination (j2000) is °25′26″?
SELECT MAX(ngc_number) FROM table_name_51 WHERE declination___j2000__ = "°25′26″"
CREATE TABLE table_name_85 (home_team VARCHAR)
What is the score for Collingwood as the home team?
SELECT home_team AS score FROM table_name_85 WHERE home_team = "collingwood"
CREATE TABLE table_name_15 (home_team VARCHAR, venue VARCHAR)
What did the home team score at Princes Park?
SELECT home_team AS score FROM table_name_15 WHERE venue = "princes park"
CREATE TABLE table_name_68 (population INTEGER, simplified VARCHAR, area VARCHAR)
What's the sum of the population for the place simplified 上杭县 with an area smaller than 2,879?
SELECT SUM(population) FROM table_name_68 WHERE simplified = "上杭县" AND area < 2 OFFSET 879
CREATE TABLE table_name_57 (density VARCHAR, population INTEGER)
What's the total number of density for the place with a population over 393,390?
SELECT COUNT(density) FROM table_name_57 WHERE population > 393 OFFSET 390
CREATE TABLE table_name_20 (area INTEGER, english_name VARCHAR)
What's the average area for the xinluo district?
SELECT AVG(area) FROM table_name_20 WHERE english_name = "xinluo district"
CREATE TABLE table_name_77 (attendance INTEGER, date VARCHAR)
What was the attendance on July 30?
SELECT AVG(attendance) FROM table_name_77 WHERE date = "july 30"
CREATE TABLE table_name_26 (goals INTEGER, result VARCHAR)
How many Goals have a Result of 0 – 4?
SELECT AVG(goals) FROM table_name_26 WHERE result = "0 – 4"
CREATE TABLE table_name_33 (goals VARCHAR, result VARCHAR)
How many goals have a Result of 12 – 0?
SELECT goals FROM table_name_33 WHERE result = "12 – 0"
CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR)
Which Result has a Date of 9 october 2009?
SELECT result FROM table_name_77 WHERE date = "9 october 2009"
CREATE TABLE table_name_45 (goals INTEGER, date VARCHAR)
Which Goals have a Date of 7 february 2010?
SELECT MAX(goals) FROM table_name_45 WHERE date = "7 february 2010"
CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR)
What was the first year to have a Chassis of Jordan 193?
SELECT MIN(year) FROM table_name_89 WHERE chassis = "jordan 193"
CREATE TABLE table_name_28 (school VARCHAR, mascot VARCHAR)
Which School's Mascot is Raiders?
SELECT school FROM table_name_28 WHERE mascot = "raiders"
CREATE TABLE table_name_51 (mascot VARCHAR, school VARCHAR)
What is North Valleys School Mascot?
SELECT mascot FROM table_name_51 WHERE school = "north valleys"
CREATE TABLE table_name_66 (enrollment INTEGER, mascot VARCHAR)
What is the Enrollment where Cougars is a Mascot?
SELECT SUM(enrollment) FROM table_name_66 WHERE mascot = "cougars"
CREATE TABLE table_name_87 (league VARCHAR, school VARCHAR)
In what League is the Reed School?
SELECT league FROM table_name_87 WHERE school = "reed"
CREATE TABLE table_name_23 (mascot VARCHAR, enrollment INTEGER)
What Mascot has an Enrollment greater than 2,464?
SELECT mascot FROM table_name_23 WHERE enrollment > 2 OFFSET 464
CREATE TABLE table_name_60 (runner_up VARCHAR, third_place VARCHAR)
Who was the runner-up in the tournament in which Omar Camporese held third place?
SELECT runner_up FROM table_name_60 WHERE third_place = "omar camporese"
CREATE TABLE table_name_86 (runner_up VARCHAR, tournament VARCHAR)
Who was the runner-up in the tournament in London?
SELECT runner_up FROM table_name_86 WHERE tournament = "london"
CREATE TABLE table_name_32 (score VARCHAR, third_place VARCHAR)
What was the score in the tournament in which Michael Stich took third place?
SELECT score FROM table_name_32 WHERE third_place = "michael stich"
CREATE TABLE table_name_16 (third_place VARCHAR, score VARCHAR)
Who holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]?
SELECT third_place FROM table_name_16 WHERE score = "2–6, 7–6(3), [10–5]"
CREATE TABLE table_name_32 (goals_for INTEGER, goals_against VARCHAR, ties VARCHAR)
what is the least number of goals for when the goals against is 70 and the ties less than 0?
SELECT MIN(goals_for) FROM table_name_32 WHERE goals_against = 70 AND ties < 0
CREATE TABLE table_name_10 (losses INTEGER, wins VARCHAR, ties VARCHAR)
what is the average losses when the wins is 9 and ties more than 0?
SELECT AVG(losses) FROM table_name_10 WHERE wins = 9 AND ties > 0
CREATE TABLE table_name_10 (ties INTEGER, losses VARCHAR, games_played VARCHAR)
what is the lowest number of ties when the losses is 7 and games played is less than 10?
SELECT MIN(ties) FROM table_name_10 WHERE losses = 7 AND games_played < 10
CREATE TABLE table_name_31 (games_played INTEGER, goals_for VARCHAR, losses VARCHAR, wins VARCHAR)
what is the sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76?
SELECT SUM(games_played) FROM table_name_31 WHERE losses < 7 AND wins = 6 AND goals_for > 76
CREATE TABLE table_name_8 (games_played VARCHAR, goals_for INTEGER)
what is the total number of games played when the goals for is less than 30?
SELECT COUNT(games_played) FROM table_name_8 WHERE goals_for < 30
CREATE TABLE table_name_53 (wins INTEGER, team VARCHAR, games_played VARCHAR)
what is the sum of wins for the ottawa hockey club when the games played is less than 10?
SELECT SUM(wins) FROM table_name_53 WHERE team = "ottawa hockey club" AND games_played < 10
CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR)
How many people attended the game on February 3, 2008?
SELECT SUM(attendance) FROM table_name_34 WHERE date = "february 3, 2008"
CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR)
What is the name of the home team that played against Collingwood?
SELECT home_team FROM table_name_17 WHERE away_team = "collingwood"
CREATE TABLE table_name_50 (away_team VARCHAR, venue VARCHAR)
Which Away team played at the Windy Hill Venue?
SELECT away_team FROM table_name_50 WHERE venue = "windy hill"
CREATE TABLE table_name_9 (crowd VARCHAR, venue VARCHAR)
How large of a crowd can the Glenferrie oval hold?
SELECT crowd FROM table_name_9 WHERE venue = "glenferrie oval"
CREATE TABLE table_name_48 (crowd VARCHAR, venue VARCHAR)
How large of a crowd can the Brunswick Street Oval hold?
SELECT COUNT(crowd) FROM table_name_48 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_67 (league INTEGER, total INTEGER)
What is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored?
SELECT MIN(league) FROM table_name_67 WHERE total > 8
CREATE TABLE table_name_72 (fa_cup INTEGER, name VARCHAR, total VARCHAR)
What is the average number of goals scored in the FA Cup by Whelan where he had more than 7 total goals?
SELECT AVG(fa_cup) FROM table_name_72 WHERE name = "whelan" AND total > 7
CREATE TABLE table_name_14 (uyghur_latin___uly__ VARCHAR, population__2010_census_ VARCHAR)
What is the Uyghur Latin with a population of 69,361?
SELECT uyghur_latin___uly__ FROM table_name_14 WHERE population__2010_census_ = "69,361"
CREATE TABLE table_name_94 (hanyu_pinyin VARCHAR, area__km²_ VARCHAR)
What is the Hanyu Pinyin with an area of 400?
SELECT hanyu_pinyin FROM table_name_94 WHERE area__km²_ = "400"
CREATE TABLE table_name_32 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR)
What is the Hanyu Pinyin with a density of 39.63?
SELECT hanyu_pinyin FROM table_name_32 WHERE density___km²_ = "39.63"
CREATE TABLE table_name_71 (attendance INTEGER, visitor VARCHAR, leading_scorer VARCHAR)
How many people were in attendance when the visiting team was the Nuggets and the leading scorer was J.R. Smith (28)?
SELECT SUM(attendance) FROM table_name_71 WHERE visitor = "nuggets" AND leading_scorer = "j.r. smith (28)"
CREATE TABLE table_name_78 (leading_scorer VARCHAR, date VARCHAR)
Who was the leading scorer on 23 February 2008?
SELECT leading_scorer FROM table_name_78 WHERE date = "23 february 2008"
CREATE TABLE table_name_95 (nominated_for VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR)
Name what was nominated in years before 2002 for most popular comedy performer at the national television awards
SELECT nominated_for FROM table_name_95 WHERE year < 2002 AND award = "national television awards" AND category = "most popular comedy performer"
CREATE TABLE table_name_83 (result VARCHAR, award VARCHAR)
Name the result for the bafta tv awards
SELECT result FROM table_name_83 WHERE award = "bafta tv awards"
CREATE TABLE table_name_26 (category VARCHAR, result VARCHAR, award VARCHAR)
Name the category for nominated at the british comedy awards
SELECT category FROM table_name_26 WHERE result = "nominated" AND award = "british comedy awards"
CREATE TABLE table_name_57 (year INTEGER, category VARCHAR, nominated_for VARCHAR)
Name the year that Birds of a feather category for most popular actress was nominated
SELECT AVG(year) FROM table_name_57 WHERE category = "most popular actress" AND nominated_for = "birds of a feather"
CREATE TABLE table_name_40 (date VARCHAR, constructor VARCHAR)
What dates did Ferrari win races?
SELECT date FROM table_name_40 WHERE constructor = "ferrari"
CREATE TABLE table_name_55 (original_air_date VARCHAR, production_code VARCHAR)
What was the original air date of the episode with production code 2395120?
SELECT original_air_date FROM table_name_55 WHERE production_code = "2395120"
CREATE TABLE table_name_85 (pts INTEGER, year VARCHAR, engine VARCHAR, chassis VARCHAR)
How many points for the ferrari v12 engine and ferrari 1512 chassis, after 1965?
SELECT MAX(pts) FROM table_name_85 WHERE engine = "ferrari v12" AND chassis = "ferrari 1512" AND year > 1965
CREATE TABLE table_name_58 (date VARCHAR, crowd INTEGER)
What was the date when the crowd was larger than 30,495?
SELECT date FROM table_name_58 WHERE crowd > 30 OFFSET 495
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)
What was the home team when Carlton was the away team?
SELECT home_team FROM table_name_59 WHERE away_team = "carlton"
CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR)
What was the score for the away team when they played at lake oval?
SELECT away_team AS score FROM table_name_70 WHERE venue = "lake oval"
CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR)
What was the score of the away team when hawthorn was the home team?
SELECT away_team AS score FROM table_name_43 WHERE home_team = "hawthorn"
CREATE TABLE table_name_26 (gold VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR)
How many golds for nations ranked below 4, over 5 medals, and under 6 silvers?
SELECT COUNT(gold) FROM table_name_26 WHERE rank > 4 AND total > 5 AND silver < 6
CREATE TABLE table_name_21 (rank VARCHAR, constituency VARCHAR, result VARCHAR, winning_party_2003 VARCHAR, swing_to_gain VARCHAR)
Which rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency?
SELECT rank FROM table_name_21 WHERE winning_party_2003 = "labour" AND swing_to_gain > 2.13 AND result = "lab hold" AND constituency = "linlithgow"
CREATE TABLE table_name_26 (winning_party_2003 VARCHAR, swing_to_gain VARCHAR, result VARCHAR)
Which party won in 2003, that had a swing to gain of less than 2.92 and which resulted in a ld hold?
SELECT winning_party_2003 FROM table_name_26 WHERE swing_to_gain < 2.92 AND result = "ld hold"
CREATE TABLE table_name_72 (constituency VARCHAR, winning_party_2003 VARCHAR)
Which constituency had the conservative party win in 2003?
SELECT constituency FROM table_name_72 WHERE winning_party_2003 = "conservative"
CREATE TABLE table_name_82 (final_score VARCHAR, visiting_team VARCHAR, date VARCHAR)
What is the final score when the visiting team is the Washington Redskins and the date is September 4?
SELECT final_score FROM table_name_82 WHERE visiting_team = "washington redskins" AND date = "september 4"
CREATE TABLE table_name_12 (stadium VARCHAR, date VARCHAR)
What is the stadium when the date of the game is December 14?
SELECT stadium FROM table_name_12 WHERE date = "december 14"
CREATE TABLE table_name_6 (stadium VARCHAR, visiting_team VARCHAR)
What is the name of the stadium when the visiting team is the Denver Broncos?
SELECT stadium FROM table_name_6 WHERE visiting_team = "denver broncos"
CREATE TABLE table_name_74 (crowd INTEGER, away_team VARCHAR)
What was the smallest crowd when Melbourne was the away team?
SELECT MIN(crowd) FROM table_name_74 WHERE away_team = "melbourne"
CREATE TABLE table_name_5 (away VARCHAR, club VARCHAR)
What is the Away when the Club is Neath?
SELECT away FROM table_name_5 WHERE club = "neath"
CREATE TABLE table_name_64 (country VARCHAR, area_in_m² VARCHAR)
What country has area of 7,914 m²?
SELECT country FROM table_name_64 WHERE area_in_m² = "7,914"
CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR)
What city was completed in 1910-1978?
SELECT city FROM table_name_23 WHERE completion = "1910-1978"
CREATE TABLE table_name_17 (country VARCHAR, area_in_m² VARCHAR)
What is the country with area of 3,170 in m²?
SELECT country FROM table_name_17 WHERE area_in_m² = "3,170"
CREATE TABLE table_name_17 (time_retired VARCHAR, grid VARCHAR)
I want the time/retired for grid of 17
SELECT time_retired FROM table_name_17 WHERE grid = 17
CREATE TABLE table_name_69 (opponent VARCHAR, field VARCHAR)
Name the opponent when the field is mitchel athletic complex
SELECT opponent FROM table_name_69 WHERE field = "mitchel athletic complex"
CREATE TABLE table_name_81 (date VARCHAR, home_away VARCHAR, opponent VARCHAR)
Name the date for when the home/away is away and the opponent is bayhawks
SELECT date FROM table_name_81 WHERE home_away = "away" AND opponent = "bayhawks"
CREATE TABLE table_name_43 (field VARCHAR, result VARCHAR)
Say the field with a result of w 12-11
SELECT field FROM table_name_43 WHERE result = "w 12-11"
CREATE TABLE table_name_37 (opponent VARCHAR, home_away VARCHAR, result VARCHAR)
Name the opponent when the result is w 16-15 and has home/away of home
SELECT opponent FROM table_name_37 WHERE home_away = "home" AND result = "w 16-15"
CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR)
Name the opponent when the resultwas w 12-11
SELECT opponent FROM table_name_45 WHERE result = "w 12-11"
CREATE TABLE table_name_9 (opponent VARCHAR, home_away VARCHAR, date VARCHAR)
Name the opponent which has a home/away of home and date of july 27
SELECT opponent FROM table_name_9 WHERE home_away = "home" AND date = "july 27"
CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR)
I want to know the home team for mcg venue
SELECT home_team FROM table_name_71 WHERE venue = "mcg"
CREATE TABLE table_name_34 (moving_to VARCHAR, name VARCHAR)
Where did Konchesky move to?
SELECT moving_to FROM table_name_34 WHERE name = "konchesky"
CREATE TABLE table_name_94 (crowd INTEGER, home_team VARCHAR)
Who is Essendon's home team?
SELECT MIN(crowd) FROM table_name_94 WHERE home_team = "essendon"
CREATE TABLE table_name_5 (away_team VARCHAR)
What is the away team score for North Melbourne's home team?
SELECT away_team AS score FROM table_name_5 WHERE away_team = "north melbourne"
CREATE TABLE table_name_89 (home_team VARCHAR)
What is Geelong's home team score?
SELECT home_team AS score FROM table_name_89 WHERE home_team = "geelong"
CREATE TABLE table_name_27 (home_team VARCHAR)
What is the home team score for St Kilda's home team?
SELECT home_team AS score FROM table_name_27 WHERE home_team = "st kilda"
CREATE TABLE table_name_59 (constructor VARCHAR, grid VARCHAR, rank VARCHAR)
Who was #16 rank constructor with a grid of more than 1?
SELECT constructor FROM table_name_59 WHERE grid > 1 AND rank = 16
CREATE TABLE table_name_12 (constructor VARCHAR, rank VARCHAR, driver VARCHAR)
Who constructed Joe James car when his rank was more than 10?
SELECT constructor FROM table_name_12 WHERE rank > 10 AND driver = "joe james"
CREATE TABLE table_name_78 (rank INTEGER, grid VARCHAR, time_retired VARCHAR, laps VARCHAR, qual VARCHAR)
What was the rank of the car who had more than 182 laps, gris less than 3, with a qual time of more than 134.14 and a time/retired of +14:21.72?
SELECT MIN(rank) FROM table_name_78 WHERE laps > 182 AND qual > 134.14 AND time_retired = "+14:21.72" AND grid < 3
CREATE TABLE table_name_35 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
How many laps did Chuck Stevenson have with a grid of less than 11?
SELECT COUNT(laps) FROM table_name_35 WHERE driver = "chuck stevenson" AND grid < 11
CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR)
Which Week has an Opponent of san francisco 49ers?
SELECT MAX(week) FROM table_name_46 WHERE opponent = "san francisco 49ers"
CREATE TABLE table_name_50 (snatch INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
What is the snatch for the Clean & jerk of 145.0, and a Bodyweight larger than 76.22?
SELECT AVG(snatch) FROM table_name_50 WHERE clean_ & _jerk = "145.0" AND bodyweight > 76.22
CREATE TABLE table_name_82 (clean_ VARCHAR, _jerk VARCHAR, snatch VARCHAR, bodyweight VARCHAR)
What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76.18?
SELECT clean_ & _jerk FROM table_name_82 WHERE snatch < 150 AND bodyweight = 76.18