prompt
stringlengths
81
567
completion
stringlengths
18
557
Question: What is the %2006 when the %2001 was more than 62.5? Context: CREATE TABLE table_name_52 (_percentage_2006 INTEGER, _percentage_2001 INTEGER) Answer:
SELECT AVG(_percentage_2006) FROM table_name_52 WHERE _percentage_2001 > 62.5
Question: What is the sum of the losses by the Montreal Hockey Club, who have more than 15 Goals Against? Context: CREATE TABLE table_name_56 (losses INTEGER, team VARCHAR, goals_against VARCHAR) Answer:
SELECT SUM(losses) FROM table_name_56 WHERE team = "montreal hockey club" AND goals_against > 15
Question: What is the largest Goals For by a team that has more than 0 ties? Context: CREATE TABLE table_name_18 (goals_for INTEGER, ties INTEGER) Answer:
SELECT MAX(goals_for) FROM table_name_18 WHERE ties > 0
Question: How many ties do teams with 25 Goals For and more than 5 wins have? Context: CREATE TABLE table_name_40 (ties INTEGER, goals_for VARCHAR, wins VARCHAR) Answer:
SELECT SUM(ties) FROM table_name_40 WHERE goals_for = 25 AND wins > 5
Question: What is the lowest Goals Against by a team with more than 5 wins? Context: CREATE TABLE table_name_18 (goals_against INTEGER, wins INTEGER) Answer:
SELECT MIN(goals_against) FROM table_name_18 WHERE wins > 5
Question: What is the total number of ties a team with less than 3 losses have? Context: CREATE TABLE table_name_98 (ties VARCHAR, losses INTEGER) Answer:
SELECT COUNT(ties) FROM table_name_98 WHERE losses < 3
Question: Tell me the race name where stirling moss won on 16 april Context: CREATE TABLE table_name_61 (race_name VARCHAR, winning_driver VARCHAR, date VARCHAR) Answer:
SELECT race_name FROM table_name_61 WHERE winning_driver = "stirling moss" AND date = "16 april"
Question: Tell me the report for circuit of modena Context: CREATE TABLE table_name_25 (report VARCHAR, circuit VARCHAR) Answer:
SELECT report FROM table_name_25 WHERE circuit = "modena"
Question: Tell me the race name for ferrari on 25 april Context: CREATE TABLE table_name_17 (race_name VARCHAR, constructor VARCHAR, date VARCHAR) Answer:
SELECT race_name FROM table_name_17 WHERE constructor = "ferrari" AND date = "25 april"
Question: Name the constructor for vii kanonloppet Context: CREATE TABLE table_name_22 (constructor VARCHAR, race_name VARCHAR) Answer:
SELECT constructor FROM table_name_22 WHERE race_name = "vii kanonloppet"
Question: Who is the opponent on May 7? Context: CREATE TABLE table_name_55 (opponent VARCHAR, date VARCHAR) Answer:
SELECT opponent FROM table_name_55 WHERE date = "may 7"
Question: When the Home team was Carlton, what was the Away team score? Context: CREATE TABLE table_name_90 (away_team VARCHAR, home_team VARCHAR) Answer:
SELECT away_team AS score FROM table_name_90 WHERE home_team = "carlton"
Question: Who was the constructor for a FW20 chassis? Context: CREATE TABLE table_name_37 (constructor VARCHAR, chassis VARCHAR) Answer:
SELECT constructor FROM table_name_37 WHERE chassis = "fw20"
Question: What engine did David Coulthard have in his mp4-13 chassis? Context: CREATE TABLE table_name_86 (engine_† VARCHAR, chassis VARCHAR, driver VARCHAR) Answer:
SELECT engine_† FROM table_name_86 WHERE chassis = "mp4-13" AND driver = "david coulthard"
Question: Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon? Context: CREATE TABLE table_name_86 (date VARCHAR, outcome VARCHAR, opponent_in_the_final VARCHAR) Answer:
SELECT date FROM table_name_86 WHERE outcome = "runner-up" AND opponent_in_the_final = "gilles simon"
Question: Who was the opponent on the 28 july 2013 final? Context: CREATE TABLE table_name_33 (opponent_in_the_final VARCHAR, date VARCHAR) Answer:
SELECT opponent_in_the_final FROM table_name_33 WHERE date = "28 july 2013"
Question: Which date has a Score in the final of 4–6, 3–6? Context: CREATE TABLE table_name_11 (date VARCHAR, score_in_the_final VARCHAR) Answer:
SELECT date FROM table_name_11 WHERE score_in_the_final = "4–6, 3–6"
Question: What is the prefix for the formula of Rsor'? Context: CREATE TABLE table_name_75 (prefix VARCHAR, formula VARCHAR) Answer:
SELECT prefix FROM table_name_75 WHERE formula = "rsor'"
Question: Which group has the RNCS formula? Context: CREATE TABLE table_name_66 (group VARCHAR, formula VARCHAR) Answer:
SELECT group FROM table_name_66 WHERE formula = "rncs"
Question: Which formula has a thial as a chemical class? Context: CREATE TABLE table_name_13 (formula VARCHAR, chemical_class VARCHAR) Answer:
SELECT formula FROM table_name_13 WHERE chemical_class = "thial"
Question: Which suffix has the prefix of isothiocyanato- (-ncs)? Context: CREATE TABLE table_name_17 (suffix VARCHAR, prefix VARCHAR) Answer:
SELECT suffix FROM table_name_17 WHERE prefix = "isothiocyanato- (-ncs)"
Question: Which item has the suffix containing thiocyanato- (-scn) as a prefix? Context: CREATE TABLE table_name_77 (suffix VARCHAR, prefix VARCHAR) Answer:
SELECT suffix FROM table_name_77 WHERE prefix = "thiocyanato- (-scn)"
Question: Which formula has thial as a chemical class? Context: CREATE TABLE table_name_7 (formula VARCHAR, chemical_class VARCHAR) Answer:
SELECT formula FROM table_name_7 WHERE chemical_class = "thial"
Question: If fitzroy is the Away team, what Date did they play? Context: CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR) Answer:
SELECT date FROM table_name_97 WHERE away_team = "fitzroy"
Question: When the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing? Context: CREATE TABLE table_name_89 (home_team VARCHAR, date VARCHAR, away_team VARCHAR) Answer:
SELECT home_team FROM table_name_89 WHERE date = "15 july 1967" AND away_team = "fitzroy"
Question: Which Venue has an Away team of st kilda? Context: CREATE TABLE table_name_5 (venue VARCHAR, away_team VARCHAR) Answer:
SELECT venue FROM table_name_5 WHERE away_team = "st kilda"
Question: What place has a draw smaller than 2? Context: CREATE TABLE table_name_90 (place INTEGER, draw INTEGER) Answer:
SELECT AVG(place) FROM table_name_90 WHERE draw < 2
Question: What is the launch date of the satellite with a COSPAR ID of 1995-022a? Context: CREATE TABLE table_name_32 (launch_date__utc_ VARCHAR, cospar_id_satcat_№ VARCHAR) Answer:
SELECT launch_date__utc_ FROM table_name_32 WHERE cospar_id_satcat_№ = "1995-022a"
Question: What is the COSPAR ID of the satellite with a titan iv(401)a launch vehicle? Context: CREATE TABLE table_name_20 (cospar_id_satcat_№ VARCHAR, launch_vehicle VARCHAR) Answer:
SELECT cospar_id_satcat_№ FROM table_name_20 WHERE launch_vehicle = "titan iv(401)a"
Question: What is the launch designation of the satellite with a 2009-001a COSPAR ID? Context: CREATE TABLE table_name_53 (launch_designation VARCHAR, cospar_id_satcat_№ VARCHAR) Answer:
SELECT launch_designation FROM table_name_53 WHERE cospar_id_satcat_№ = "2009-001a"
Question: What is the launch site of the satellite with a 2003-041a COSPAR ID? Context: CREATE TABLE table_name_71 (launch_site VARCHAR, cospar_id_satcat_№ VARCHAR) Answer:
SELECT launch_site FROM table_name_71 WHERE cospar_id_satcat_№ = "2003-041a"
Question: What construction has a CERCLIS ID of ard092916188? Context: CREATE TABLE table_name_1 (construction_completed VARCHAR, cerclis_id VARCHAR) Answer:
SELECT construction_completed FROM table_name_1 WHERE cerclis_id = "ard092916188"
Question: What CERCLIS ID is Deleted of 04/07/2008? Context: CREATE TABLE table_name_16 (cerclis_id VARCHAR, deleted VARCHAR) Answer:
SELECT cerclis_id FROM table_name_16 WHERE deleted = "04/07/2008"
Question: What construction has a Listed 09/08/1983, and a Deleted of –, and a Name of mid-south wood products? Context: CREATE TABLE table_name_48 (construction_completed VARCHAR, name VARCHAR, listed VARCHAR, deleted VARCHAR) Answer:
SELECT construction_completed FROM table_name_48 WHERE listed = "09/08/1983" AND deleted = "–" AND name = "mid-south wood products"
Question: What is the Construction that has a Listed 09/08/1983, and a Name of cecil lindsey? Context: CREATE TABLE table_name_49 (construction_completed VARCHAR, listed VARCHAR, name VARCHAR) Answer:
SELECT construction_completed FROM table_name_49 WHERE listed = "09/08/1983" AND name = "cecil lindsey"
Question: What was the attendance at Kardinia Park? Context: CREATE TABLE table_name_63 (crowd INTEGER, venue VARCHAR) Answer:
SELECT AVG(crowd) FROM table_name_63 WHERE venue = "kardinia park"
Question: What was the Date of Week 16? Context: CREATE TABLE table_name_43 (date VARCHAR, week VARCHAR) Answer:
SELECT date FROM table_name_43 WHERE week = 16
Question: What date was Colorado the home team? Context: CREATE TABLE table_name_85 (date VARCHAR, home VARCHAR) Answer:
SELECT date FROM table_name_85 WHERE home = "colorado"
Question: What was the record for the game on November 28 when the decision was Backstrom? Context: CREATE TABLE table_name_69 (record VARCHAR, decision VARCHAR, date VARCHAR) Answer:
SELECT record FROM table_name_69 WHERE decision = "backstrom" AND date = "november 28"
Question: What team was the home team when the record was 11–8–2? Context: CREATE TABLE table_name_26 (home VARCHAR, record VARCHAR) Answer:
SELECT home FROM table_name_26 WHERE record = "11–8–2"
Question: What was the score when Edmonton was the home team? Context: CREATE TABLE table_name_10 (score VARCHAR, home VARCHAR) Answer:
SELECT score FROM table_name_10 WHERE home = "edmonton"
Question: Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0 Context: CREATE TABLE table_name_97 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR) Answer:
SELECT MAX(pl_gp) FROM table_name_97 WHERE pick__number > 159 AND reg_gp > 0
Question: In the match where south melbourne was the away team, who was the home team? Context: CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR) Answer:
SELECT home_team FROM table_name_34 WHERE away_team = "south melbourne"
Question: Which Team 2 faced Team 1 from Barcelona? Context: CREATE TABLE table_name_48 (team_2 VARCHAR, team_1 VARCHAR) Answer:
SELECT team_2 FROM table_name_48 WHERE team_1 = "barcelona"
Question: Which first leg had Galatasaray as Team 1? Context: CREATE TABLE table_name_34 (team_1 VARCHAR) Answer:
SELECT 1 AS st_leg FROM table_name_34 WHERE team_1 = "galatasaray"
Question: What was the name of the Event with a time of 2:19? Context: CREATE TABLE table_name_8 (event VARCHAR, time VARCHAR) Answer:
SELECT event FROM table_name_8 WHERE time = "2:19"
Question: Where was match which had Joe Lauzon as an opponent? Context: CREATE TABLE table_name_76 (location VARCHAR, opponent VARCHAR) Answer:
SELECT location FROM table_name_76 WHERE opponent = "joe lauzon"
Question: What is the name of the building that was the tallest from 1990–1997 in Frankfurt? Context: CREATE TABLE table_name_78 (name VARCHAR, city VARCHAR, years_as_tallest VARCHAR) Answer:
SELECT name FROM table_name_78 WHERE city = "frankfurt" AND years_as_tallest = "1990–1997"
Question: For a height less than 122 meters, what is the greatest height in feet? Context: CREATE TABLE table_name_58 (height__ft_ INTEGER, height__m_ INTEGER) Answer:
SELECT MAX(height__ft_) FROM table_name_58 WHERE height__m_ < 122
Question: How high was the highest building in feet in the city of cologne? Context: CREATE TABLE table_name_66 (height__ft_ INTEGER, city VARCHAR) Answer:
SELECT MAX(height__ft_) FROM table_name_66 WHERE city = "cologne"
Question: What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors? Context: CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR) Answer:
SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 55
Question: What is the height in meters for a building in Frankfurt that is 850 feet tall? Context: CREATE TABLE table_name_66 (height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR) Answer:
SELECT height__m_ FROM table_name_66 WHERE city = "frankfurt" AND height__ft_ = 850
Question: What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95? Context: CREATE TABLE table_name_76 (mintage VARCHAR, theme VARCHAR, issue_price VARCHAR) Answer:
SELECT mintage FROM table_name_76 WHERE theme = "toronto maple leafs" AND issue_price < 24.95
Question: What was Collingwood's score in their away game? Context: CREATE TABLE table_name_39 (away_team VARCHAR) Answer:
SELECT away_team AS score FROM table_name_39 WHERE away_team = "collingwood"
Question: Where did Geelong play as the away team? Context: CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR) Answer:
SELECT venue FROM table_name_14 WHERE away_team = "geelong"
Question: On what date was the I Dessau Autobahnspinne race? Context: CREATE TABLE table_name_66 (date VARCHAR, race_name VARCHAR) Answer:
SELECT date FROM table_name_66 WHERE race_name = "i dessau autobahnspinne"
Question: Who was the winning driver in the Sachsenring circuit? Context: CREATE TABLE table_name_8 (winning_driver VARCHAR, circuit VARCHAR) Answer:
SELECT winning_driver FROM table_name_8 WHERE circuit = "sachsenring"
Question: Where is Terry Mills from? Context: CREATE TABLE table_name_98 (hometown VARCHAR, player VARCHAR) Answer:
SELECT hometown FROM table_name_98 WHERE player = "terry mills"
Question: When is the Mexican grand prix? Context: CREATE TABLE table_name_24 (date VARCHAR, race VARCHAR) Answer:
SELECT date FROM table_name_24 WHERE race = "mexican grand prix"
Question: The person with a Height of 6-8 went to which School? Context: CREATE TABLE table_name_67 (school VARCHAR, height VARCHAR) Answer:
SELECT school FROM table_name_67 WHERE height = "6-8"
Question: What College did Player Dorian Finney-Smith play for? Context: CREATE TABLE table_name_68 (college VARCHAR, player VARCHAR) Answer:
SELECT college FROM table_name_68 WHERE player = "dorian finney-smith"
Question: Which Player has a height of 6-10, and went to College at LSU? Context: CREATE TABLE table_name_66 (player VARCHAR, height VARCHAR, college VARCHAR) Answer:
SELECT player FROM table_name_66 WHERE height = "6-10" AND college = "lsu"
Question: Which School did Player Tyrone Johnson attend? Context: CREATE TABLE table_name_41 (school VARCHAR, player VARCHAR) Answer:
SELECT school FROM table_name_41 WHERE player = "tyrone johnson"
Question: Which School did Player Tyrone Johnson attend? Context: CREATE TABLE table_name_42 (school VARCHAR, player VARCHAR) Answer:
SELECT school FROM table_name_42 WHERE player = "tyrone johnson"
Question: Who had the time of 1:23.32.41? Context: CREATE TABLE table_name_17 (rider VARCHAR, time VARCHAR) Answer:
SELECT rider FROM table_name_17 WHERE time = "1:23.32.41"
Question: What is the time of the rider who has a rank smaller than 8 and speed of 104.567mph? Context: CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, speed VARCHAR) Answer:
SELECT time FROM table_name_24 WHERE rank < 8 AND speed = "104.567mph"
Question: What is the home team at the Junction Oval venue? Context: CREATE TABLE table_name_14 (home_team VARCHAR, venue VARCHAR) Answer:
SELECT home_team FROM table_name_14 WHERE venue = "junction oval"
Question: What is the date where the away team is Richmond? Context: CREATE TABLE table_name_30 (date VARCHAR, away_team VARCHAR) Answer:
SELECT date FROM table_name_30 WHERE away_team = "richmond"
Question: Name the circuit when the fastest lap was john surtees and the winning driver was john surtees. Context: CREATE TABLE table_name_53 (circuit VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR) Answer:
SELECT circuit FROM table_name_53 WHERE fastest_lap = "john surtees" AND winning_driver = "john surtees"
Question: Name the winning driver with circuit of monza Context: CREATE TABLE table_name_59 (winning_driver VARCHAR, circuit VARCHAR) Answer:
SELECT winning_driver FROM table_name_59 WHERE circuit = "monza"
Question: Name the pole position for 8 september Context: CREATE TABLE table_name_35 (pole_position VARCHAR, date VARCHAR) Answer:
SELECT pole_position FROM table_name_35 WHERE date = "8 september"
Question: Name the winning driver for belgian grand prix Context: CREATE TABLE table_name_45 (winning_driver VARCHAR, race VARCHAR) Answer:
SELECT winning_driver FROM table_name_45 WHERE race = "belgian grand prix"
Question: Name the circuit for italian grand prix Context: CREATE TABLE table_name_97 (circuit VARCHAR, race VARCHAR) Answer:
SELECT circuit FROM table_name_97 WHERE race = "italian grand prix"
Question: How many grid numbers were there for the driver Giancarlo Fisichella? Context: CREATE TABLE table_name_3 (grid VARCHAR, driver VARCHAR) Answer:
SELECT COUNT(grid) FROM table_name_3 WHERE driver = "giancarlo fisichella"
Question: What is the mean number of laps for the constructor Ferrari when the time/retired was fuel pressure? Context: CREATE TABLE table_name_93 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR) Answer:
SELECT AVG(laps) FROM table_name_93 WHERE constructor = "ferrari" AND time_retired = "fuel pressure"
Question: What is the grid when the driver was Michael Schumacher? Context: CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR) Answer:
SELECT grid FROM table_name_20 WHERE driver = "michael schumacher"
Question: How many laps had a grid number of 7? Context: CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR) Answer:
SELECT SUM(laps) FROM table_name_99 WHERE grid = 7
Question: Which lap number had a grid number of less than 17 when the driver was Giancarlo Fisichella? Context: CREATE TABLE table_name_1 (laps VARCHAR, grid VARCHAR, driver VARCHAR) Answer:
SELECT COUNT(laps) FROM table_name_1 WHERE grid < 17 AND driver = "giancarlo fisichella"
Question: Name the winning driver for circuit of monza Context: CREATE TABLE table_name_36 (winning_driver VARCHAR, circuit VARCHAR) Answer:
SELECT winning_driver FROM table_name_36 WHERE circuit = "monza"
Question: Tell me the date for jody scheckter being the fastest lap at the french grand prix Context: CREATE TABLE table_name_14 (date VARCHAR, fastest_lap VARCHAR, race VARCHAR) Answer:
SELECT date FROM table_name_14 WHERE fastest_lap = "jody scheckter" AND race = "french grand prix"
Question: Name the date for circuit of interlagos Context: CREATE TABLE table_name_50 (date VARCHAR, circuit VARCHAR) Answer:
SELECT date FROM table_name_50 WHERE circuit = "interlagos"
Question: What was the event for vinny magalhães? Context: CREATE TABLE table_name_74 (event VARCHAR, opponent VARCHAR) Answer:
SELECT event FROM table_name_74 WHERE opponent = "vinny magalhães"
Question: What was the date for renato ferreira? Context: CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR) Answer:
SELECT date FROM table_name_9 WHERE opponent = "renato ferreira"
Question: What was the event with leonardo chocolate in 2009? Context: CREATE TABLE table_name_88 (event VARCHAR, date VARCHAR, opponent VARCHAR) Answer:
SELECT event FROM table_name_88 WHERE date = 2009 AND opponent = "leonardo chocolate"
Question: What was the result for the opponent being gerardi rinaldi in 2009? Context: CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR, opponent VARCHAR) Answer:
SELECT result FROM table_name_14 WHERE date = 2009 AND opponent = "gerardi rinaldi"
Question: Tell me the eastern #1 for week of 5 Context: CREATE TABLE table_name_23 (eastern__number1 VARCHAR, week VARCHAR) Answer:
SELECT eastern__number1 FROM table_name_23 WHERE week = 5
Question: Tell me the eastern #2 for western #2 of oakland Context: CREATE TABLE table_name_23 (eastern__number2 VARCHAR, western__number2 VARCHAR) Answer:
SELECT eastern__number2 FROM table_name_23 WHERE western__number2 = "oakland"
Question: Tell me the wekk for eastern #2 of houston Context: CREATE TABLE table_name_37 (week VARCHAR, eastern__number2 VARCHAR) Answer:
SELECT week FROM table_name_37 WHERE eastern__number2 = "houston"
Question: Which home team played against the away team Carlton? Context: CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR) Answer:
SELECT home_team FROM table_name_74 WHERE away_team = "carlton"
Question: Where was the game played where the home team was Collingwood? Context: CREATE TABLE table_name_29 (venue VARCHAR, home_team VARCHAR) Answer:
SELECT venue FROM table_name_29 WHERE home_team = "collingwood"
Question: What is the home score with a crowd larger than 25,603? Context: CREATE TABLE table_name_44 (home_team VARCHAR, crowd INTEGER) Answer:
SELECT home_team AS score FROM table_name_44 WHERE crowd > 25 OFFSET 603
Question: What is the date of the home team from South Melbourne? Context: CREATE TABLE table_name_41 (date VARCHAR, home_team VARCHAR) Answer:
SELECT date FROM table_name_41 WHERE home_team = "south melbourne"
Question: What is the score of the away team with the home team Fitzroy? Context: CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR) Answer:
SELECT away_team AS score FROM table_name_88 WHERE home_team = "fitzroy"
Question: What venue did the away team footscray play at? Context: CREATE TABLE table_name_63 (venue VARCHAR, away_team VARCHAR) Answer:
SELECT venue FROM table_name_63 WHERE away_team = "footscray"
Question: When melbourne was the away team, what was the lowest crowd turnout they had? Context: CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR) Answer:
SELECT MIN(crowd) FROM table_name_75 WHERE away_team = "melbourne"
Question: Which away team plays at the venue glenferrie oval? Context: CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR) Answer:
SELECT away_team FROM table_name_63 WHERE venue = "glenferrie oval"
Question: Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19 Context: CREATE TABLE table_name_75 (Id VARCHAR) Answer:
SELECT MIN(2005) FROM table_name_75 WHERE 2009 = 19 AND 2010 < 21
Question: Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3 Context: CREATE TABLE table_name_85 (Id VARCHAR) Answer:
SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3
Question: Name the average 2008 for beijing and 2005 more than 2 Context: CREATE TABLE table_name_21 (year VARCHAR) Answer:
SELECT AVG(2008) FROM table_name_21 WHERE year = "beijing" AND 2005 > 2
Question: Name the lowest 2008 for guizhou when 2005 is less than 31 Context: CREATE TABLE table_name_45 (year VARCHAR) Answer:
SELECT MIN(2008) FROM table_name_45 WHERE year = "guizhou" AND 2005 < 31