answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT AVG(qiangshu) FROM table_name_45 WHERE rank > 4 AND jianshu < 9.22
CREATE TABLE table_name_45 (qiangshu INTEGER, rank VARCHAR, jianshu VARCHAR)
What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu?
SELECT AVG(jianshu) FROM table_name_29 WHERE rank < 2 AND qiangshu < 9.85
CREATE TABLE table_name_29 (jianshu INTEGER, rank VARCHAR, qiangshu VARCHAR)
What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85?
SELECT became_consort FROM table_name_86 WHERE spouse = "louis ii"
CREATE TABLE table_name_86 (became_consort VARCHAR, spouse VARCHAR)
On what date did the woman married to Louis II become consort?
SELECT date FROM table_name_8 WHERE record = "32–31–6"
CREATE TABLE table_name_8 (date VARCHAR, record VARCHAR)
What is the Date of the game when the Record is 32–31–6?
SELECT opponent FROM table_name_66 WHERE arena = "honda center" AND date = "march 29"
CREATE TABLE table_name_66 (opponent VARCHAR, arena VARCHAR, date VARCHAR)
What is the Opponent at the Honda Center on March 29?
SELECT opponent FROM table_name_3 WHERE record = "34–31–6"
CREATE TABLE table_name_3 (opponent VARCHAR, record VARCHAR)
What is the Opponent when the Record is 34–31–6?
SELECT date FROM table_name_13 WHERE away_team = "minehead"
CREATE TABLE table_name_13 (date VARCHAR, away_team VARCHAR)
What is Date, when Away Team is "Minehead"?
SELECT date FROM table_name_7 WHERE away_team = "barnet"
CREATE TABLE table_name_7 (date VARCHAR, away_team VARCHAR)
What is Date, when Away Team is "Barnet"?
SELECT tie_no FROM table_name_69 WHERE home_team = "hull city"
CREATE TABLE table_name_69 (tie_no VARCHAR, home_team VARCHAR)
What is Tie no, when Home Team is "Hull City"?
SELECT away_team FROM table_name_3 WHERE home_team = "swindon town"
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
What is Away Team, when Home Team is "Swindon Town"?
SELECT away_team FROM table_name_30 WHERE home_team = "boston united"
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
What is Away Team, when Home Team is "Boston United"?
SELECT score FROM table_name_73 WHERE player = "nick faldo"
CREATE TABLE table_name_73 (score VARCHAR, player VARCHAR)
What was Nick Faldo's score?
SELECT country FROM table_name_18 WHERE place = "t8" AND score = 71 - 71 - 71 = 213
CREATE TABLE table_name_18 (country VARCHAR, place VARCHAR, score VARCHAR)
What country placed t8 and scored 71-71-71=213?
SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213
CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR)
What was the place when the score was 67-73-73=213?
SELECT place FROM table_name_12 WHERE score = 70 - 69 - 74 = 213
CREATE TABLE table_name_12 (place VARCHAR, score VARCHAR)
What was the place when the score was 70-69-74=213?
SELECT place FROM table_name_26 WHERE country = "united states" AND player = "fred couples"
CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR)
What was United States place when the player was Fred Couples?
SELECT tournament FROM table_name_82 WHERE 2008 = "a" AND 2011 = "a"
CREATE TABLE table_name_82 (tournament VARCHAR)
WHAT IS THE TOURNAMENT WITH 2008 AND 2011 WITH A?
SELECT 2012 FROM table_name_35 WHERE 2005 = "1r"
CREATE TABLE table_name_35 (Id VARCHAR)
WHAT IS THE 2012 WITH 2005 OF 1R?
SELECT 2010 FROM table_name_93 WHERE 2012 = "2r" AND tournament = "miami masters"
CREATE TABLE table_name_93 (tournament VARCHAR)
WHAT IS THE 2010 WITH 2012 OF 2R AT MIAMI MASTERS?
SELECT 2008 FROM table_name_84 WHERE tournament = "win-loss" AND 2005 = "a"
CREATE TABLE table_name_84 (tournament VARCHAR)
WHAT IS THE 2008 WITH TOURNAMENT OF WIN-LOSS, AND 2005 A?
SELECT 2007 FROM table_name_5 WHERE tournament = "madrid masters"
CREATE TABLE table_name_5 (tournament VARCHAR)
WHAT IS THE 2007 AT MADRID MASTERS?
SELECT 2011 FROM table_name_67 WHERE 2007 = "a" AND 2008 = "3r"
CREATE TABLE table_name_67 (Id VARCHAR)
WHAT IS THE 2011 WITH 2007 AT A AND2 008 AT 3R?
SELECT game_title FROM table_name_48 WHERE metacritic = "85/100" AND year_released < 2010
CREATE TABLE table_name_48 (game_title VARCHAR, metacritic VARCHAR, year_released VARCHAR)
What game was released before 2010 with a Metacritic of 85/100?
SELECT metacritic FROM table_name_76 WHERE year_released > 2005 AND platform = "playstation 3" AND gamerankings = "84.44%"
CREATE TABLE table_name_76 (metacritic VARCHAR, gamerankings VARCHAR, year_released VARCHAR, platform VARCHAR)
What is the Metacritic released after 2005, with a Platform of playstation 3 and a GameRankings of 84.44%?
SELECT gamerankings FROM table_name_40 WHERE metacritic = "83/100" AND year_released = 2011
CREATE TABLE table_name_40 (gamerankings VARCHAR, metacritic VARCHAR, year_released VARCHAR)
What is the GameRankings Released of 2011 with a Metacritic of 83/100?
SELECT SUM(week) FROM table_name_7 WHERE attendance < 26 OFFSET 048
CREATE TABLE table_name_7 (week INTEGER, attendance INTEGER)
How many weeks have an attendance less than 26,048?
SELECT record FROM table_name_44 WHERE game_site = "bears stadium" AND opponent = "new york titans"
CREATE TABLE table_name_44 (record VARCHAR, game_site VARCHAR, opponent VARCHAR)
What was the record when the Denver Broncos played the New York Titans at Bears Stadium?
SELECT result FROM table_name_78 WHERE date = "december 9, 1962"
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)
What was the result of the match on December 9, 1962?
SELECT to_par FROM table_name_18 WHERE score = 70 - 68 - 68 - 71 = 277
CREATE TABLE table_name_18 (to_par VARCHAR, score VARCHAR)
What is To par, when Score is "70-68-68-71=277"?
SELECT score FROM table_name_29 WHERE date = "12 september 1990"
CREATE TABLE table_name_29 (score VARCHAR, date VARCHAR)
What is the score of the match on 12 September 1990?
SELECT league_from FROM table_name_87 WHERE position = "g"
CREATE TABLE table_name_87 (league_from VARCHAR, position VARCHAR)
For what league was the player in G position drafted?
SELECT AVG(pick__number) FROM table_name_13 WHERE player = "greg mckegg"
CREATE TABLE table_name_13 (pick__number INTEGER, player VARCHAR)
What pick number was player Greg McKegg?
SELECT place FROM table_name_28 WHERE player = "tony jacklin"
CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR)
What Place has a Player of tony jacklin?
SELECT place FROM table_name_49 WHERE player = "bernhard langer"
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR)
What Place has a Player of bernhard langer?
SELECT player FROM table_name_86 WHERE country = "west germany"
CREATE TABLE table_name_86 (player VARCHAR, country VARCHAR)
What Player has a Country of west germany?
SELECT player FROM table_name_20 WHERE to_par = "–2"
CREATE TABLE table_name_20 (player VARCHAR, to_par VARCHAR)
What Player has a To par of –2?
SELECT to_par FROM table_name_11 WHERE place = "t2" AND country = "united states"
CREATE TABLE table_name_11 (to_par VARCHAR, place VARCHAR, country VARCHAR)
What To par has a Place of t2, and a Country of united states?
SELECT score FROM table_name_75 WHERE place = "t2" AND country = "england"
CREATE TABLE table_name_75 (score VARCHAR, place VARCHAR, country VARCHAR)
What Score has a Place of t2, and a Country of england?
SELECT tries_against FROM table_name_52 WHERE club = "cwmtwrch rfc"
CREATE TABLE table_name_52 (tries_against VARCHAR, club VARCHAR)
How many tries were there for club cwmtwrch rfc?
SELECT drawn FROM table_name_75 WHERE tries_against = "69"
CREATE TABLE table_name_75 (drawn VARCHAR, tries_against VARCHAR)
What is the draw when the tries against was 69?
SELECT try_bonus FROM table_name_51 WHERE lost = "13" AND drawn = "2"
CREATE TABLE table_name_51 (try_bonus VARCHAR, lost VARCHAR, drawn VARCHAR)
What is the try bonus when the loss is 13 and the draw is 2?
SELECT AVG(finish) FROM table_name_39 WHERE team = "buck baker" AND start < 13
CREATE TABLE table_name_39 (finish INTEGER, team VARCHAR, start VARCHAR)
What is the average Finish, when Team is "Buck Baker", and when Start is less than 13?
SELECT AVG(year) FROM table_name_42 WHERE start = 11
CREATE TABLE table_name_42 (year INTEGER, start VARCHAR)
What is the average Year, when Start is "11"?
SELECT MIN(year) FROM table_name_14 WHERE finish = 29 AND start < 24
CREATE TABLE table_name_14 (year INTEGER, finish VARCHAR, start VARCHAR)
What is the lowest Year, when Finish is "29", and when Start is less than 24?
SELECT MAX(year) FROM table_name_29 WHERE finish = 51 AND start < 64
CREATE TABLE table_name_29 (year INTEGER, finish VARCHAR, start VARCHAR)
What is the highest Year, when Finish is "51", and when Start is less than 64?
SELECT manufacturer FROM table_name_97 WHERE finish > 29 AND start < 23 AND year = 1973
CREATE TABLE table_name_97 (manufacturer VARCHAR, year VARCHAR, finish VARCHAR, start VARCHAR)
What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"?
SELECT opposing_teams FROM table_name_7 WHERE against = 11
CREATE TABLE table_name_7 (opposing_teams VARCHAR, against VARCHAR)
What is the opposing team with 11 against?
SELECT venue FROM table_name_26 WHERE opposing_teams = "argentina" AND status = "test match"
CREATE TABLE table_name_26 (venue VARCHAR, opposing_teams VARCHAR, status VARCHAR)
What is the venue where Argentina was the opposing team in a test match?
SELECT status FROM table_name_18 WHERE against > 16 AND opposing_teams = "france"
CREATE TABLE table_name_18 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR)
What is the status of the game against France with more than 16 against?
SELECT date FROM table_name_10 WHERE status = "five nations" AND against = 23
CREATE TABLE table_name_10 (date VARCHAR, status VARCHAR, against VARCHAR)
On what date is there a status of Five Nations and an against of 23?
SELECT model FROM table_name_82 WHERE number_built < 6.526 AND chassis_code = "w109.015"
CREATE TABLE table_name_82 (model VARCHAR, number_built VARCHAR, chassis_code VARCHAR)
What model has a number built smaller than 6.526, and the Chassis code w109.015?
SELECT record FROM table_name_30 WHERE game_site = "tiger stadium"
CREATE TABLE table_name_30 (record VARCHAR, game_site VARCHAR)
What was the record at Tiger Stadium?
SELECT AVG(attendance) FROM table_name_38 WHERE date = "september 19, 1971" AND week > 1
CREATE TABLE table_name_38 (attendance INTEGER, date VARCHAR, week VARCHAR)
What was the attendance on September 19, 1971, after week 1?
SELECT bronze FROM table_name_32 WHERE rank = "1"
CREATE TABLE table_name_32 (bronze VARCHAR, rank VARCHAR)
How many Bronze medals did the team ranked 1 win?
SELECT date_from FROM table_name_50 WHERE position = "mf" AND name = "jennison myrie-williams"
CREATE TABLE table_name_50 (date_from VARCHAR, position VARCHAR, name VARCHAR)
What is the date for the MF position and player Jennison Myrie-Williams?
SELECT AVG(goals) FROM table_name_92 WHERE team = "zamora" AND average > 0.89
CREATE TABLE table_name_92 (goals INTEGER, team VARCHAR, average VARCHAR)
What Goals has a Team of zamora, and Average larger than 0.89?
SELECT COUNT(goals) FROM table_name_94 WHERE average > 1
CREATE TABLE table_name_94 (goals VARCHAR, average INTEGER)
What is the sum of Goals win an Average larger than 1?
SELECT MIN(matches) FROM table_name_26 WHERE goalkeeper = "josé bermúdez" AND goals > 18
CREATE TABLE table_name_26 (matches INTEGER, goalkeeper VARCHAR, goals VARCHAR)
What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18?
SELECT SUM(matches) FROM table_name_30 WHERE goals = 18 AND average > 0.55
CREATE TABLE table_name_30 (matches INTEGER, goals VARCHAR, average VARCHAR)
What is the total of Matches with Goals of 18, and an Average larger than 0.55?
SELECT MAX(average) FROM table_name_80 WHERE goals < 34 AND matches > 30 AND team = "cultural leonesa"
CREATE TABLE table_name_80 (average INTEGER, team VARCHAR, goals VARCHAR, matches VARCHAR)
What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?
SELECT AVG(to_par) FROM table_name_52 WHERE score = 78 - 74 - 71 - 75 = 298
CREATE TABLE table_name_52 (to_par INTEGER, score VARCHAR)
Which To par has a Score of 78-74-71-75=298?
SELECT COUNT(to_par) FROM table_name_42 WHERE country = "united states" AND money___$__ = 90
CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, money___$__ VARCHAR)
How much To par has a Country of united states, and a Money ($) of 90?
SELECT MAX(matches) FROM table_name_77 WHERE prize_money = "£5,000"
CREATE TABLE table_name_77 (matches INTEGER, prize_money VARCHAR)
What is are the highest matches with £5,000 in prize money?
SELECT prize_money FROM table_name_40 WHERE matches > 1 AND new_entries_this_round = "102"
CREATE TABLE table_name_40 (prize_money VARCHAR, matches VARCHAR, new_entries_this_round VARCHAR)
What is the prize money amount after match 1, with 102 new entries to the round?
SELECT place FROM table_name_23 WHERE player = "darren clarke"
CREATE TABLE table_name_23 (place VARCHAR, player VARCHAR)
In what place did Darren Clarke finish?
SELECT score FROM table_name_86 WHERE player = "ernie els"
CREATE TABLE table_name_86 (score VARCHAR, player VARCHAR)
What was Ernie Els's score?
SELECT place FROM table_name_29 WHERE player = "tom lehman"
CREATE TABLE table_name_29 (place VARCHAR, player VARCHAR)
In what place did Tom Lehman finish?
SELECT place FROM table_name_59 WHERE score = 68 - 70 - 69 = 207
CREATE TABLE table_name_59 (place VARCHAR, score VARCHAR)
In what place did the golfer that scored 68-70-69=207 finish?
SELECT MAX(laps) FROM table_name_1 WHERE drivers = "glenn seton gregg hansford"
CREATE TABLE table_name_1 (laps INTEGER, drivers VARCHAR)
What were the highest laps for glenn seton gregg hansford?
SELECT drivers FROM table_name_86 WHERE laps = 101
CREATE TABLE table_name_86 (drivers VARCHAR, laps VARCHAR)
What driver had 101 laps?
SELECT position FROM table_name_7 WHERE fa_cup_apps = "0" AND name = "gary barnett"
CREATE TABLE table_name_7 (position VARCHAR, fa_cup_apps VARCHAR, name VARCHAR)
Gary Barnett who has been in 0 FA Cups plays what position?
SELECT MAX(league_cup_goals) FROM table_name_23 WHERE fa_cup_apps = "0" AND position = "mf" AND league_apps = "1" AND total_goals < 0
CREATE TABLE table_name_23 (league_cup_goals INTEGER, total_goals VARCHAR, league_apps VARCHAR, fa_cup_apps VARCHAR, position VARCHAR)
What is the maximum league cup goals when there has been 0 FA cup appearances, and MF is the position, with 1 league appearance, and smaller than 0 total goals?
SELECT flt_apps FROM table_name_62 WHERE total_goals < 5 AND fa_cup_apps = "3" AND position = "mf" AND league_goals = 4
CREATE TABLE table_name_62 (flt_apps VARCHAR, league_goals VARCHAR, position VARCHAR, total_goals VARCHAR, fa_cup_apps VARCHAR)
How many FLT appearances for the player with less than 5 total goals, and 3 FA Cup appearances, 4 league goals, and plays MF?
SELECT opponent_number FROM table_name_28 WHERE attendance = "87,453"
CREATE TABLE table_name_28 (opponent_number VARCHAR, attendance VARCHAR)
Who was the opponent when the attendance was 87,453?
SELECT attendance FROM table_name_42 WHERE rank__number = "4"
CREATE TABLE table_name_42 (attendance VARCHAR, rank__number VARCHAR)
What was the attendance when they had a ranking of #4?
SELECT AVG(played) FROM table_name_68 WHERE draw = 5 AND points > 43
CREATE TABLE table_name_68 (played INTEGER, draw VARCHAR, points VARCHAR)
What's the average Played for a draw of 5 and more than 43 points?
SELECT govt_salary FROM table_name_19 WHERE romanised_name = "chen wei-on, kenneth"
CREATE TABLE table_name_19 (govt_salary VARCHAR, romanised_name VARCHAR)
What is the government salary of the Undersecretary with a Romanised name of Chen Wei-On, Kenneth?
SELECT portfolio_attachment FROM table_name_47 WHERE age_at_appointment = 48 AND chinese_name = "梁鳳儀"
CREATE TABLE table_name_47 (portfolio_attachment VARCHAR, age_at_appointment VARCHAR, chinese_name VARCHAR)
What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀?
SELECT romanised_name FROM table_name_84 WHERE portfolio_attachment = "education"
CREATE TABLE table_name_84 (romanised_name VARCHAR, portfolio_attachment VARCHAR)
What is the Romanised name of the Undersecretary with an education portfolio attachment?
SELECT MAX(top_10s) FROM table_name_30 WHERE wins < 0
CREATE TABLE table_name_30 (top_10s INTEGER, wins INTEGER)
What is the best top 10 when there are fewer than 0 wins?
SELECT moving_from FROM table_name_31 WHERE name = "naylor"
CREATE TABLE table_name_31 (moving_from VARCHAR, name VARCHAR)
Where did naylor move from?
SELECT type FROM table_name_26 WHERE ends = "2011" AND transfer_fee = "free" AND source = "leeds united"
CREATE TABLE table_name_26 (type VARCHAR, source VARCHAR, ends VARCHAR, transfer_fee VARCHAR)
What type ends in 2011, has a free transfer fee, and is sourced in leeds united?
SELECT type FROM table_name_92 WHERE country = "sco"
CREATE TABLE table_name_92 (type VARCHAR, country VARCHAR)
What is the type of sco country?
SELECT type FROM table_name_32 WHERE ends = "2009"
CREATE TABLE table_name_32 (type VARCHAR, ends VARCHAR)
What is the type that ends in 2009?
SELECT transfer_fee FROM table_name_70 WHERE transfer_window = "summer" AND name = "assoumani"
CREATE TABLE table_name_70 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR)
What is the transfer fee of assoumani, who has a summer transfer window?
SELECT ends FROM table_name_5 WHERE transfer_fee = "free" AND moving_from = "middlesbrough"
CREATE TABLE table_name_5 (ends VARCHAR, transfer_fee VARCHAR, moving_from VARCHAR)
What is the ends with a free transfer fee and was moved from middlesbrough?
SELECT MIN(week) FROM table_name_71 WHERE attendance = 51 OFFSET 558
CREATE TABLE table_name_71 (week INTEGER, attendance VARCHAR)
Which Week has Attendance of 51,558?
SELECT SUM(attendance) FROM table_name_2 WHERE result = "w 24-14" AND week < 7
CREATE TABLE table_name_2 (attendance INTEGER, result VARCHAR, week VARCHAR)
Which Attendance has a Result of w 24-14, and a Week smaller than 7?
SELECT MAX(attendance) FROM table_name_48 WHERE opponent = "at los angeles rams" AND week > 12
CREATE TABLE table_name_48 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12?
SELECT method FROM table_name_83 WHERE record = "4-0"
CREATE TABLE table_name_83 (method VARCHAR, record VARCHAR)
Which method has a record of 4-0?
SELECT record FROM table_name_86 WHERE method = "decision" AND location = "martigues, france"
CREATE TABLE table_name_86 (record VARCHAR, method VARCHAR, location VARCHAR)
What is the record when the method is decision and the location is Martigues, France?
SELECT location FROM table_name_97 WHERE method = "decision" AND opponent = "nikos tsoukalas"
CREATE TABLE table_name_97 (location VARCHAR, method VARCHAR, opponent VARCHAR)
Which location has a method of decision and Nikos Tsoukalas for an opponent?
SELECT method FROM table_name_33 WHERE location = "auckland, new zealand" AND result = "win" AND opponent = "darren berry"
CREATE TABLE table_name_33 (method VARCHAR, opponent VARCHAR, location VARCHAR, result VARCHAR)
What is the method when the location is Auckland, New Zealand, Darren Berry as the opponent, and resulted in a win?
SELECT location FROM table_name_29 WHERE record = "9-7"
CREATE TABLE table_name_29 (location VARCHAR, record VARCHAR)
What is the location when the record is 9-7?
SELECT location FROM table_name_66 WHERE method = "ko" AND result = "win" AND record = "2-0"
CREATE TABLE table_name_66 (location VARCHAR, record VARCHAR, method VARCHAR, result VARCHAR)
What is the location when KO is the method, the result is a win, and the record is 2-0?
SELECT total_casualties FROM table_name_54 WHERE military_and_or_civilian_wounded = "1,200+"
CREATE TABLE table_name_54 (total_casualties VARCHAR, military_and_or_civilian_wounded VARCHAR)
What are the total casualties with 1,200+ military and/or civilian wounded?
SELECT military_deaths FROM table_name_92 WHERE total_casualties = "1,615"
CREATE TABLE table_name_92 (military_deaths VARCHAR, total_casualties VARCHAR)
How many military deaths were there when there were 1,615 total casualties?
SELECT military_deaths FROM table_name_15 WHERE military_and_or_civilian_wounded = "1,200+"
CREATE TABLE table_name_15 (military_deaths VARCHAR, military_and_or_civilian_wounded VARCHAR)
How many military deaths were there when there were 1,200+ military and/or civilian wounded?
SELECT total_deaths FROM table_name_33 WHERE total_casualties = "6"
CREATE TABLE table_name_33 (total_deaths VARCHAR, total_casualties VARCHAR)
How many deaths were there when the total casualties were 6?
SELECT country FROM table_name_29 WHERE score = 70 - 68 - 71 - 71 = 280
CREATE TABLE table_name_29 (country VARCHAR, score VARCHAR)
Which country scored 70-68-71-71=280?