answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT SUM(population) FROM table_name_68 WHERE simplified = "上杭县" AND area < 2 OFFSET 879
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 COUNT(density) FROM table_name_57 WHERE population > 393 OFFSET 390
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 AVG(area) FROM table_name_20 WHERE english_name = "xinluo district"
CREATE TABLE table_name_20 (area INTEGER, english_name VARCHAR)
What's the average area for the xinluo district?
SELECT AVG(attendance) FROM table_name_77 WHERE date = "july 30"
CREATE TABLE table_name_77 (attendance INTEGER, date VARCHAR)
What was the attendance on July 30?
SELECT AVG(goals) FROM table_name_26 WHERE result = "0 – 4"
CREATE TABLE table_name_26 (goals INTEGER, result VARCHAR)
How many Goals have a Result of 0 – 4?
SELECT goals FROM table_name_33 WHERE result = "12 – 0"
CREATE TABLE table_name_33 (goals VARCHAR, result VARCHAR)
How many goals have a Result of 12 – 0?
SELECT result FROM table_name_77 WHERE date = "9 october 2009"
CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR)
Which Result has a Date of 9 october 2009?
SELECT MAX(goals) FROM table_name_45 WHERE date = "7 february 2010"
CREATE TABLE table_name_45 (goals INTEGER, date VARCHAR)
Which Goals have a Date of 7 february 2010?
SELECT MIN(year) FROM table_name_89 WHERE chassis = "jordan 193"
CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR)
What was the first year to have a Chassis of Jordan 193?
SELECT school FROM table_name_28 WHERE mascot = "raiders"
CREATE TABLE table_name_28 (school VARCHAR, mascot VARCHAR)
Which School's Mascot is Raiders?
SELECT mascot FROM table_name_51 WHERE school = "north valleys"
CREATE TABLE table_name_51 (mascot VARCHAR, school VARCHAR)
What is North Valleys School Mascot?
SELECT SUM(enrollment) FROM table_name_66 WHERE mascot = "cougars"
CREATE TABLE table_name_66 (enrollment INTEGER, mascot VARCHAR)
What is the Enrollment where Cougars is a Mascot?
SELECT league FROM table_name_87 WHERE school = "reed"
CREATE TABLE table_name_87 (league VARCHAR, school VARCHAR)
In what League is the Reed School?
SELECT mascot FROM table_name_23 WHERE enrollment > 2 OFFSET 464
CREATE TABLE table_name_23 (mascot VARCHAR, enrollment INTEGER)
What Mascot has an Enrollment greater than 2,464?
SELECT runner_up FROM table_name_60 WHERE third_place = "omar camporese"
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_86 WHERE tournament = "london"
CREATE TABLE table_name_86 (runner_up VARCHAR, tournament VARCHAR)
Who was the runner-up in the tournament in London?
SELECT score FROM table_name_32 WHERE third_place = "michael stich"
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 third_place FROM table_name_16 WHERE score = "2–6, 7–6(3), [10–5]"
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 MIN(goals_for) FROM table_name_32 WHERE goals_against = 70 AND ties < 0
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 AVG(losses) FROM table_name_10 WHERE wins = 9 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 MIN(ties) FROM table_name_10 WHERE losses = 7 AND games_played < 10
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 SUM(games_played) FROM table_name_31 WHERE losses < 7 AND wins = 6 AND goals_for > 76
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 COUNT(games_played) FROM table_name_8 WHERE goals_for < 30
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 SUM(wins) FROM table_name_53 WHERE team = "ottawa hockey club" AND games_played < 10
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(attendance) FROM table_name_34 WHERE date = "february 3, 2008"
CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR)
How many people attended the game on February 3, 2008?
SELECT home_team FROM table_name_17 WHERE away_team = "collingwood"
CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR)
What is the name of the home team that played against Collingwood?
SELECT away_team FROM table_name_50 WHERE venue = "windy hill"
CREATE TABLE table_name_50 (away_team VARCHAR, venue VARCHAR)
Which Away team played at the Windy Hill Venue?
SELECT crowd FROM table_name_9 WHERE venue = "glenferrie oval"
CREATE TABLE table_name_9 (crowd VARCHAR, venue VARCHAR)
How large of a crowd can the Glenferrie oval hold?
SELECT COUNT(crowd) FROM table_name_48 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_48 (crowd VARCHAR, venue VARCHAR)
How large of a crowd can the Brunswick Street Oval hold?
SELECT MIN(league) FROM table_name_67 WHERE total > 8
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 AVG(fa_cup) FROM table_name_72 WHERE name = "whelan" AND total > 7
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 uyghur_latin___uly__ FROM table_name_14 WHERE population__2010_census_ = "69,361"
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 hanyu_pinyin FROM table_name_94 WHERE area__km²_ = "400"
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_32 WHERE density___km²_ = "39.63"
CREATE TABLE table_name_32 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR)
What is the Hanyu Pinyin with a density of 39.63?
SELECT SUM(attendance) FROM table_name_71 WHERE visitor = "nuggets" AND leading_scorer = "j.r. smith (28)"
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 leading_scorer FROM table_name_78 WHERE date = "23 february 2008"
CREATE TABLE table_name_78 (leading_scorer VARCHAR, date VARCHAR)
Who was the leading scorer on 23 February 2008?
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_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 result FROM table_name_83 WHERE award = "bafta tv awards"
CREATE TABLE table_name_83 (result VARCHAR, award VARCHAR)
Name the result for the bafta tv awards
SELECT category FROM table_name_26 WHERE result = "nominated" AND award = "british comedy awards"
CREATE TABLE table_name_26 (category VARCHAR, result VARCHAR, award VARCHAR)
Name the category for nominated at the british comedy awards
SELECT AVG(year) FROM table_name_57 WHERE category = "most popular actress" AND nominated_for = "birds of a feather"
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 date FROM table_name_40 WHERE constructor = "ferrari"
CREATE TABLE table_name_40 (date VARCHAR, constructor VARCHAR)
What dates did Ferrari win races?
SELECT original_air_date FROM table_name_55 WHERE production_code = "2395120"
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 MAX(pts) FROM table_name_85 WHERE engine = "ferrari v12" AND chassis = "ferrari 1512" AND year > 1965
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 date FROM table_name_58 WHERE crowd > 30 OFFSET 495
CREATE TABLE table_name_58 (date VARCHAR, crowd INTEGER)
What was the date when the crowd was larger than 30,495?
SELECT home_team FROM table_name_59 WHERE away_team = "carlton"
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)
What was the home team when Carlton was the away team?
SELECT away_team AS score FROM table_name_70 WHERE venue = "lake oval"
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_43 WHERE home_team = "hawthorn"
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 COUNT(gold) FROM table_name_26 WHERE rank > 4 AND total > 5 AND silver < 6
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 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_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 winning_party_2003 FROM table_name_26 WHERE swing_to_gain < 2.92 AND result = "ld hold"
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 constituency FROM table_name_72 WHERE winning_party_2003 = "conservative"
CREATE TABLE table_name_72 (constituency VARCHAR, winning_party_2003 VARCHAR)
Which constituency had the conservative party win in 2003?
SELECT final_score FROM table_name_82 WHERE visiting_team = "washington redskins" AND date = "september 4"
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 stadium FROM table_name_12 WHERE date = "december 14"
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_6 WHERE visiting_team = "denver broncos"
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 MIN(crowd) FROM table_name_74 WHERE away_team = "melbourne"
CREATE TABLE table_name_74 (crowd INTEGER, away_team VARCHAR)
What was the smallest crowd when Melbourne was the away team?
SELECT away FROM table_name_5 WHERE club = "neath"
CREATE TABLE table_name_5 (away VARCHAR, club VARCHAR)
What is the Away when the Club is Neath?
SELECT country FROM table_name_64 WHERE area_in_m² = "7,914"
CREATE TABLE table_name_64 (country VARCHAR, area_in_m² VARCHAR)
What country has area of 7,914 m²?
SELECT city FROM table_name_23 WHERE completion = "1910-1978"
CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR)
What city was completed in 1910-1978?
SELECT country FROM table_name_17 WHERE area_in_m² = "3,170"
CREATE TABLE table_name_17 (country VARCHAR, area_in_m² VARCHAR)
What is the country with area of 3,170 in m²?
SELECT time_retired FROM table_name_17 WHERE grid = 17
CREATE TABLE table_name_17 (time_retired VARCHAR, grid VARCHAR)
I want the time/retired for grid of 17
SELECT opponent FROM table_name_69 WHERE field = "mitchel athletic complex"
CREATE TABLE table_name_69 (opponent VARCHAR, field VARCHAR)
Name the opponent when the field is mitchel athletic complex
SELECT date FROM table_name_81 WHERE home_away = "away" AND opponent = "bayhawks"
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 field FROM table_name_43 WHERE result = "w 12-11"
CREATE TABLE table_name_43 (field VARCHAR, result VARCHAR)
Say the field with a result of w 12-11
SELECT opponent FROM table_name_37 WHERE home_away = "home" AND result = "w 16-15"
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_45 WHERE result = "w 12-11"
CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR)
Name the opponent when the resultwas w 12-11
SELECT opponent FROM table_name_9 WHERE home_away = "home" AND date = "july 27"
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 home_team FROM table_name_71 WHERE venue = "mcg"
CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR)
I want to know the home team for mcg venue
SELECT moving_to FROM table_name_34 WHERE name = "konchesky"
CREATE TABLE table_name_34 (moving_to VARCHAR, name VARCHAR)
Where did Konchesky move to?
SELECT MIN(crowd) FROM table_name_94 WHERE home_team = "essendon"
CREATE TABLE table_name_94 (crowd INTEGER, home_team VARCHAR)
Who is Essendon's home team?
SELECT away_team AS score FROM table_name_5 WHERE away_team = "north melbourne"
CREATE TABLE table_name_5 (away_team VARCHAR)
What is the away team score for North Melbourne's home team?
SELECT home_team AS score FROM table_name_89 WHERE home_team = "geelong"
CREATE TABLE table_name_89 (home_team VARCHAR)
What is Geelong's home team score?
SELECT home_team AS score FROM table_name_27 WHERE home_team = "st kilda"
CREATE TABLE table_name_27 (home_team VARCHAR)
What is the home team score for St Kilda's home team?
SELECT constructor FROM table_name_59 WHERE grid > 1 AND rank = 16
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_12 WHERE rank > 10 AND driver = "joe james"
CREATE TABLE table_name_12 (constructor VARCHAR, rank VARCHAR, driver VARCHAR)
Who constructed Joe James car when his rank was more than 10?
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_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 COUNT(laps) FROM table_name_35 WHERE driver = "chuck stevenson" AND grid < 11
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 MAX(week) FROM table_name_46 WHERE opponent = "san francisco 49ers"
CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR)
Which Week has an Opponent of san francisco 49ers?
SELECT AVG(snatch) FROM table_name_50 WHERE clean_ & _jerk = "145.0" AND bodyweight > 76.22
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 clean_ & _jerk FROM table_name_82 WHERE snatch < 150 AND bodyweight = 76.18
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 MIN(bodyweight) FROM table_name_36 WHERE clean_ & _jerk = "145.0" AND snatch < 122.5
CREATE TABLE table_name_36 (bodyweight INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?
SELECT clean_ & _jerk FROM table_name_36 WHERE bodyweight < 76.55 AND total__kg_ = "–"
CREATE TABLE table_name_36 (clean_ VARCHAR, _jerk VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR)
What is the Clean & jerk for the bodyweight less than 76.55, and the Total (kg) of –?
SELECT MAX(year) FROM table_name_17 WHERE result = "won"
CREATE TABLE table_name_17 (year INTEGER, result VARCHAR)
What was the latest year that resulted in won?
SELECT position FROM table_name_35 WHERE pick = 50
CREATE TABLE table_name_35 (position VARCHAR, pick VARCHAR)
Which position had a pick of 50?
SELECT school_club_team FROM table_name_1 WHERE draft = "2008-3 2008"
CREATE TABLE table_name_1 (school_club_team VARCHAR, draft VARCHAR)
Which team had a 2008-3 2008 draft?
SELECT AVG(pick) FROM table_name_33 WHERE round > 2
CREATE TABLE table_name_33 (pick INTEGER, round INTEGER)
What is the average pick after Round 2?
SELECT date FROM table_name_15 WHERE result = "loss" AND competition = "europe/africa group i, round robin" AND location = "murcia (esp)" AND year > 1998
CREATE TABLE table_name_15 (date VARCHAR, year VARCHAR, location VARCHAR, result VARCHAR, competition VARCHAR)
What is the date of the game with a loss result in the Europe/Africa Group I, Round Robin competition in Murcia (esp) after 1998?
SELECT result FROM table_name_23 WHERE competition = "europe/africa group i, play-off"
CREATE TABLE table_name_23 (result VARCHAR, competition VARCHAR)
What is the result of the Europe/Africa Group I, play-off competition?
SELECT result FROM table_name_9 WHERE location = "murcia (esp)" AND year < 1999 AND competition = "europe/africa group i, round robin"
CREATE TABLE table_name_9 (result VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR)
What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999?
SELECT position FROM table_name_48 WHERE school = "clemson"
CREATE TABLE table_name_48 (position VARCHAR, school VARCHAR)
What position did the person from Clemson school fill?
SELECT MAX(pick) FROM table_name_25 WHERE round = "round 4" AND player = "rudy harris"
CREATE TABLE table_name_25 (pick INTEGER, round VARCHAR, player VARCHAR)
What was Rudy Harris' pick number in round 4?
SELECT COUNT(pick) FROM table_name_7 WHERE round = "round 8" AND position = "kicker"
CREATE TABLE table_name_7 (pick VARCHAR, round VARCHAR, position VARCHAR)
What was the pick number for the kicker in round 8?
SELECT result FROM table_name_49 WHERE year = 2013
CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR)
What is the result from 2013?
SELECT finals_mvp FROM table_name_26 WHERE eastern_champion = "detroit shock" AND western_champion = "sacramento monarchs"
CREATE TABLE table_name_26 (finals_mvp VARCHAR, eastern_champion VARCHAR, western_champion VARCHAR)
Who is the MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship?
SELECT result FROM table_name_83 WHERE western_champion = "sacramento monarchs" AND eastern_champion = "connecticut sun"
CREATE TABLE table_name_83 (result VARCHAR, western_champion VARCHAR, eastern_champion VARCHAR)
What is the score from the Sacramento monarchs from the west and the Connecticut sun from the east?
SELECT nominee FROM table_name_96 WHERE category = "best lead actress"
CREATE TABLE table_name_96 (nominee VARCHAR, category VARCHAR)
Who is the nominee for Best Lead Actress?
SELECT category FROM table_name_81 WHERE nominee = "carmen salinas"
CREATE TABLE table_name_81 (category VARCHAR, nominee VARCHAR)
In what category is Carmen Salinas nominated?
SELECT SUM(year) FROM table_name_8 WHERE category = "best supporting actress"
CREATE TABLE table_name_8 (year INTEGER, category VARCHAR)
What year was there a category of Best Supporting Actress?
SELECT londonborough FROM table_name_15 WHERE dialcode = "01992"
CREATE TABLE table_name_15 (londonborough VARCHAR, dialcode VARCHAR)
What Londongborough has a Dialcode of 01992?
SELECT dialcode FROM table_name_62 WHERE location = "whitechapel"
CREATE TABLE table_name_62 (dialcode VARCHAR, location VARCHAR)
What is the Dialcode of whitechapel?
SELECT postcodedistrict FROM table_name_76 WHERE location = "eden park"
CREATE TABLE table_name_76 (postcodedistrict VARCHAR, location VARCHAR)
What is the name of the Post code district that is in Eden Park?