context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_70 (urban_sub_area VARCHAR, council_area VARCHAR, population VARCHAR)
What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020?
SELECT urban_sub_area FROM table_name_70 WHERE council_area = "east dunbartonshire" AND population = "19,020"
CREATE TABLE table_name_51 (council_area VARCHAR, urban_sub_area VARCHAR)
What is the council area for the Larkhall urban sub-area?
SELECT council_area FROM table_name_51 WHERE urban_sub_area = "larkhall"
CREATE TABLE table_name_61 (population VARCHAR, urban_sub_area VARCHAR)
What is the population of the East Kilbride urban sub-area?
SELECT population FROM table_name_61 WHERE urban_sub_area = "east kilbride"
CREATE TABLE table_name_58 (urban_sub_area VARCHAR, population VARCHAR)
Which urban sub-area has a population of 16,140?
SELECT urban_sub_area FROM table_name_58 WHERE population = "16,140"
CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR)
What is the record of the cubs on July 19?
SELECT record FROM table_name_41 WHERE date = "july 19"
CREATE TABLE table_name_44 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
What nationality is Northwood School (N.Y.)?
SELECT nationality FROM table_name_44 WHERE college_junior_club_team__league_ = "northwood school (n.y.)"
CREATE TABLE table_name_81 (result VARCHAR, incumbent VARCHAR)
What are incumbent William Vandever's results?
SELECT result FROM table_name_81 WHERE incumbent = "william vandever"
CREATE TABLE table_name_73 (first_elected VARCHAR, result VARCHAR)
Who was the first person elected from Democratic GAIN?
SELECT first_elected FROM table_name_73 WHERE result = "democratic gain"
CREATE TABLE table_name_77 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
What was the result for incumbent Joseph McKenna who was first elected in 1884?
SELECT result FROM table_name_77 WHERE first_elected = "1884" AND incumbent = "joseph mckenna"
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, incumbent VARCHAR)
When was republican incumbent Joseph McKenna first elected?
SELECT first_elected FROM table_name_28 WHERE party = "republican" AND incumbent = "joseph mckenna"
CREATE TABLE table_name_79 (capacity INTEGER, location VARCHAR)
what is the lowest capacity in grodno
SELECT MIN(capacity) FROM table_name_79 WHERE location = "grodno"
CREATE TABLE table_name_79 (score VARCHAR, january VARCHAR, record VARCHAR)
Which Score has January larger than 18 and a Record of 35–15–1?
SELECT score FROM table_name_79 WHERE january > 18 AND record = "35–15–1"
CREATE TABLE table_name_17 (start INTEGER, year VARCHAR, engine VARCHAR, finish VARCHAR)
How many starts are associated with an oldsmobile engine, 21 finishes and before 2001?
SELECT SUM(start) FROM table_name_17 WHERE engine = "oldsmobile" AND finish = 21 AND year < 2001
CREATE TABLE table_name_19 (finish INTEGER, year VARCHAR, start VARCHAR, engine VARCHAR)
What was the finish associated with under 11 starts, a honda engine, before 2003?
SELECT AVG(finish) FROM table_name_19 WHERE start < 11 AND engine = "honda" AND year < 2003
CREATE TABLE table_name_23 (director VARCHAR, original_title VARCHAR)
what is the director of la ronde
SELECT director FROM table_name_23 WHERE original_title = "la ronde"
CREATE TABLE table_name_27 (attendance INTEGER, visitor VARCHAR, date VARCHAR)
What is the lowest number of people attending the game on May 30 with Colorado as the visitors?
SELECT MIN(attendance) FROM table_name_27 WHERE visitor = "colorado" AND date = "may 30"
CREATE TABLE table_name_67 (attendance INTEGER, home VARCHAR)
What is the lowest number of people attending the game where Colorado was the home team?
SELECT MIN(attendance) FROM table_name_67 WHERE home = "colorado"
CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR)
What was the score of the game on May 26?
SELECT score FROM table_name_24 WHERE date = "may 26"
CREATE TABLE table_name_9 (round INTEGER, player VARCHAR)
What is the lowest round that Adam Wiesel was picked?
SELECT MIN(round) FROM table_name_9 WHERE player = "adam wiesel"
CREATE TABLE table_name_81 (college_junior_club_team VARCHAR, position VARCHAR, player VARCHAR)
What college, junior, or club team did defence player Rory Fitzpatrick play for?
SELECT college_junior_club_team FROM table_name_81 WHERE position = "defence" AND player = "rory fitzpatrick"
CREATE TABLE table_name_10 (score VARCHAR, year VARCHAR)
What was the score for 1911?
SELECT score FROM table_name_10 WHERE year = 1911
CREATE TABLE table_name_47 (country VARCHAR, player VARCHAR)
what country has tiger woods
SELECT country FROM table_name_47 WHERE player = "tiger woods"
CREATE TABLE table_name_63 (place VARCHAR, score VARCHAR)
what country has a score of 69-70-72=211?
SELECT place FROM table_name_63 WHERE score = 69 - 70 - 72 = 211
CREATE TABLE table_name_66 (player VARCHAR, score VARCHAR)
what player scored 69-72-68=209?
SELECT player FROM table_name_66 WHERE score = 69 - 72 - 68 = 209
CREATE TABLE table_name_59 (earnings___ INTEGER, player VARCHAR, rank VARCHAR)
What is the largest number for earnings for tom watson when ranked more than 2?
SELECT MAX(earnings___) AS $__ FROM table_name_59 WHERE player = "tom watson" AND rank > 2
CREATE TABLE table_name_28 (nationality VARCHAR, points VARCHAR)
Which 1st (m) is the lowest one that has a Nationality of aut, and Points larger than 273.5?
SELECT MIN(1 AS st__m_) FROM table_name_28 WHERE nationality = "aut" AND points > 273.5
CREATE TABLE table_name_36 (wins INTEGER, poles INTEGER)
What is the highest number of wins associated with under 0 poles?
SELECT MAX(wins) FROM table_name_36 WHERE poles < 0
CREATE TABLE table_name_57 (poles VARCHAR, season VARCHAR, wins VARCHAR)
How many poles did he have in 2006 with under 2 wins?
SELECT poles FROM table_name_57 WHERE season = "2006" AND wins < 2
CREATE TABLE table_name_51 (wins INTEGER, poles VARCHAR, season VARCHAR)
What is the fewest number of wins when he has 3 poles in 2010?
SELECT MIN(wins) FROM table_name_51 WHERE poles = 3 AND season = "2010"
CREATE TABLE table_name_88 (Id VARCHAR)
What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?
SELECT 2012 FROM table_name_88 WHERE 2011 = "7.7%" AND 2008 = "7.9%"
CREATE TABLE table_name_8 (Id VARCHAR)
What is listed for the 2011 that has a 2005 of 4.2%?
SELECT 2011 FROM table_name_8 WHERE 2005 = "4.2%"
CREATE TABLE table_name_86 (Id VARCHAR)
What is listed for the 2012 that has a 2011 of 28.9%?
SELECT 2012 FROM table_name_86 WHERE 2011 = "28.9%"
CREATE TABLE table_name_35 (Id VARCHAR)
What is listed for the 2005 that has a 2012 of 4.2%?
SELECT 2005 FROM table_name_35 WHERE 2012 = "4.2%"
CREATE TABLE table_name_91 (favorite_professional_sport VARCHAR)
What is listed the Favorite Professional Sport that's got a 2005 of 17.1%?
SELECT favorite_professional_sport FROM table_name_91 WHERE 2005 = "17.1%"
CREATE TABLE table_name_87 (favorite_professional_sport VARCHAR)
What is listed as the Favorite Professional Sport that has a 2008 of 8.9%?
SELECT favorite_professional_sport FROM table_name_87 WHERE 2008 = "8.9%"
CREATE TABLE table_name_64 (score VARCHAR, record VARCHAR)
What was the score of the game that led to a 79-77 record?
SELECT score FROM table_name_64 WHERE record = "79-77"
CREATE TABLE table_name_95 (record VARCHAR, loss VARCHAR)
What was the record after the game in which Rosales (1-1) took the loss?
SELECT record FROM table_name_95 WHERE loss = "rosales (1-1)"
CREATE TABLE table_name_52 (name VARCHAR, province_or_country_of_birth VARCHAR)
Which supercentenarians were born in Manitoba?
SELECT name FROM table_name_52 WHERE province_or_country_of_birth = "manitoba"
CREATE TABLE table_name_23 (age_as_of_1_february_2014 VARCHAR, province_or_country_of_birth VARCHAR)
What is the average age as of February 1, 2014 for the supercentenarians born in the United States?
SELECT age_as_of_1_february_2014 FROM table_name_23 WHERE province_or_country_of_birth = "united states"
CREATE TABLE table_name_36 (Id VARCHAR)
Which 2010 Tournament has a 2001 of grand slam tournaments?
SELECT 2010 FROM table_name_36 WHERE 2001 = "grand slam tournaments"
CREATE TABLE table_name_15 (Id VARCHAR)
Which 2006 Tournament has a 2004, and a 2002 of not tier i?
SELECT 2006 FROM table_name_15 WHERE 2004 = "a" AND 2002 = "not tier i"
CREATE TABLE table_name_46 (Id VARCHAR)
Which 2008 Tournament has a 2007 of a and a 2010 of qf?
SELECT 2008 FROM table_name_46 WHERE 2007 = "a" AND 2010 = "qf"
CREATE TABLE table_name_82 (tournament VARCHAR)
Which Tournament has a 2002 of grand slam tournaments?
SELECT tournament FROM table_name_82 WHERE 2002 = "grand slam tournaments"
CREATE TABLE table_name_57 (Id VARCHAR)
Which 2000 Tournament has a 2002 of not tier i, and a 2006 of 2r?
SELECT 2000 FROM table_name_57 WHERE 2002 = "not tier i" AND 2006 = "2r"
CREATE TABLE table_name_7 (language VARCHAR, launch VARCHAR, hanzi VARCHAR)
Which language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道?
SELECT language FROM table_name_7 WHERE launch = 2006 AND hanzi = "青海电视台藏语综合频道"
CREATE TABLE table_name_84 (hanzi VARCHAR, name VARCHAR)
Which hanzi's name is nmtv mongolian satellite television?
SELECT hanzi FROM table_name_84 WHERE name = "nmtv mongolian satellite television"
CREATE TABLE table_name_71 (hanzi VARCHAR, name VARCHAR, launch VARCHAR, language VARCHAR)
Which hanzi's launch is before 2009, when the language was tibetan, and the name was qinghai tibetian general channel?
SELECT hanzi FROM table_name_71 WHERE launch < 2009 AND language = "tibetan" AND name = "qinghai tibetian general channel"
CREATE TABLE table_name_60 (team VARCHAR, qual_2 VARCHAR)
What Team had a 1:24.365 Qual 2?
SELECT team FROM table_name_60 WHERE qual_2 = "1:24.365"
CREATE TABLE table_name_51 (team VARCHAR, best VARCHAR)
What Team had a 1:24.152 Best?
SELECT team FROM table_name_51 WHERE best = "1:24.152"
CREATE TABLE table_name_47 (best VARCHAR, name VARCHAR)
What was Robert Doornbos' Best?
SELECT best FROM table_name_47 WHERE name = "robert doornbos"
CREATE TABLE table_name_47 (best VARCHAR, name VARCHAR)
What was Alex Figge's Best?
SELECT best FROM table_name_47 WHERE name = "alex figge"
CREATE TABLE table_name_41 (team VARCHAR, best VARCHAR)
What Team had a 1:25.602 Best?
SELECT team FROM table_name_41 WHERE best = "1:25.602"
CREATE TABLE table_name_59 (name VARCHAR, qual_1 VARCHAR)
What was the Name of the person with a Qual 1 of 1:26.056?
SELECT name FROM table_name_59 WHERE qual_1 = "1:26.056"
CREATE TABLE table_name_31 (pick VARCHAR, school_club_team VARCHAR)
How many picks were there for the Bentley team?
SELECT COUNT(pick) FROM table_name_31 WHERE school_club_team = "bentley"
CREATE TABLE table_name_87 (round INTEGER, player VARCHAR)
What is the largest round number for Dan Connor, the player?
SELECT MAX(round) FROM table_name_87 WHERE player = "dan connor"
CREATE TABLE table_name_54 (round INTEGER, position VARCHAR, pick VARCHAR)
What is the largest round number for the dt position when the pick number is bigger than 181?
SELECT MAX(round) FROM table_name_54 WHERE position = "dt" AND pick > 181
CREATE TABLE table_name_25 (circuit VARCHAR, round VARCHAR)
what circuit is in italy
SELECT circuit FROM table_name_25 WHERE round = "italy"
CREATE TABLE table_name_59 (pick INTEGER, player VARCHAR)
What is the average pick for clarence mason?
SELECT AVG(pick) FROM table_name_59 WHERE player = "clarence mason"
CREATE TABLE table_name_37 (frequency_mhz INTEGER, city_of_license VARCHAR)
What is the frequency for the city of Lamar, Colorado?
SELECT AVG(frequency_mhz) FROM table_name_37 WHERE city_of_license = "lamar, colorado"
CREATE TABLE table_name_97 (erp_w INTEGER, call_sign VARCHAR)
What is the average ERP W for callsign K207BK?
SELECT AVG(erp_w) FROM table_name_97 WHERE call_sign = "k207bk"
CREATE TABLE table_name_15 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz?
SELECT call_sign FROM table_name_15 WHERE frequency_mhz > 88.7 AND erp_w = 99
CREATE TABLE table_name_20 (city_of_license VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR)
Which city has ERP W under 14 and a frequency over 93.7MHz?
SELECT city_of_license FROM table_name_20 WHERE erp_w < 14 AND frequency_mhz > 93.7
CREATE TABLE table_name_80 (field_goals VARCHAR, touchdowns VARCHAR, extra_points VARCHAR)
What were the total number of field goals when there were 0 touchdowns and 2 extra points?
SELECT COUNT(field_goals) FROM table_name_80 WHERE touchdowns = 0 AND extra_points = 2
CREATE TABLE table_name_14 (field_goals INTEGER, player VARCHAR, extra_points VARCHAR)
How many field goals did Carter get when he had 0 extra points?
SELECT SUM(field_goals) FROM table_name_14 WHERE player = "carter" AND extra_points < 0
CREATE TABLE table_name_20 (extra_points INTEGER, points VARCHAR, field_goals VARCHAR)
What is the highest amount of extra points someone got when they scored 28 points but had 0 field goals?
SELECT MAX(extra_points) FROM table_name_20 WHERE points = 28 AND field_goals < 0
CREATE TABLE table_name_80 (field_goals INTEGER, extra_points VARCHAR, touchdowns VARCHAR)
What is the average field goal someone has when they have 0 extra points but more than 5 touch downs?
SELECT AVG(field_goals) FROM table_name_80 WHERE extra_points > 0 AND touchdowns > 5
CREATE TABLE table_name_80 (wins INTEGER, points VARCHAR, rank VARCHAR)
What is the lowest number of wins with more than 113 points in 4th rank?
SELECT MIN(wins) FROM table_name_80 WHERE points > 113 AND rank = "4th"
CREATE TABLE table_name_44 (wins VARCHAR, points VARCHAR, rank VARCHAR)
How many wins had less than 91 points in 25th rank?
SELECT wins FROM table_name_44 WHERE points < 91 AND rank = "25th"
CREATE TABLE table_name_52 (wins VARCHAR, year VARCHAR)
How many wins in 1992?
SELECT wins FROM table_name_52 WHERE year = 1992
CREATE TABLE table_name_31 (wins VARCHAR, rank VARCHAR)
How many wins occurred for 6th rank?
SELECT COUNT(wins) FROM table_name_31 WHERE rank = "6th"
CREATE TABLE table_name_39 (constructor VARCHAR, driver VARCHAR)
Who was the constructor of the car driven by Heikki Kovalainen?
SELECT constructor FROM table_name_39 WHERE driver = "heikki kovalainen"
CREATE TABLE table_name_31 (reg_season VARCHAR, division VARCHAR)
Which Reg Season has a Division of 2?
SELECT reg_season FROM table_name_31 WHERE division = 2
CREATE TABLE table_name_30 (year INTEGER, reg_season VARCHAR, division VARCHAR)
Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2?
SELECT MAX(year) FROM table_name_30 WHERE reg_season = "3rd, western" AND division > 2
CREATE TABLE table_name_93 (year INTEGER, playoffs VARCHAR)
Which year is the lowest one when the playoffs did not qualify?
SELECT MIN(year) FROM table_name_93 WHERE playoffs = "did not qualify"
CREATE TABLE table_name_9 (year INTEGER, reg_season VARCHAR)
Which Year has a Reg Season of 3rd, western?
SELECT AVG(year) FROM table_name_9 WHERE reg_season = "3rd, western"
CREATE TABLE table_name_36 (division INTEGER, year VARCHAR, reg_season VARCHAR, playoffs VARCHAR)
Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013?
SELECT AVG(division) FROM table_name_36 WHERE reg_season = "1st, western" AND playoffs = "champions" AND year < 2013
CREATE TABLE table_name_80 (opponent VARCHAR, attendance INTEGER)
Who was the opponent during the game that had more than 31,891 people in attendance?
SELECT opponent FROM table_name_80 WHERE attendance > 31 OFFSET 891
CREATE TABLE table_name_97 (attendance INTEGER, date VARCHAR, week VARCHAR)
What is the average attendance for the game before week 4 that was on october 16, 1955?
SELECT AVG(attendance) FROM table_name_97 WHERE date = "october 16, 1955" AND week < 4
CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR)
Who was the opponent for the game on November 20, 1955?
SELECT opponent FROM table_name_35 WHERE date = "november 20, 1955"
CREATE TABLE table_name_13 (successful_defenses INTEGER, location VARCHAR, reign VARCHAR)
What is the highest number of successful defenses in brandon, florida and a reign less than 1?
SELECT MAX(successful_defenses) FROM table_name_13 WHERE location = "brandon, florida" AND reign < 1
CREATE TABLE table_name_31 (date VARCHAR, opponent VARCHAR, results¹ VARCHAR)
What was the date of the game against Norway with a 1:1 result?
SELECT date FROM table_name_31 WHERE opponent = "norway" AND results¹ = "1:1"
CREATE TABLE table_name_17 (type_of_game VARCHAR, results¹ VARCHAR)
What type of game had a 0:0 result?
SELECT type_of_game FROM table_name_17 WHERE results¹ = "0:0"
CREATE TABLE table_name_5 (city VARCHAR, results¹ VARCHAR)
What city held that game with a 5:2 result?
SELECT city FROM table_name_5 WHERE results¹ = "5:2"
CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR)
What is the score of the game that has a record of 1-2-1?
SELECT score FROM table_name_29 WHERE record = "1-2-1"
CREATE TABLE table_name_52 (record VARCHAR, opponent VARCHAR)
What is the team's record in games against the Hartford Whalers?
SELECT record FROM table_name_52 WHERE opponent = "hartford whalers"
CREATE TABLE table_name_97 (record VARCHAR, game_site VARCHAR, week VARCHAR)
What was the Record on Week 13 at the Hoosier Dome?
SELECT record FROM table_name_97 WHERE game_site = "hoosier dome" AND week = 13
CREATE TABLE table_name_3 (week INTEGER, date VARCHAR)
What was the Week on October 18, 1992?
SELECT SUM(week) FROM table_name_3 WHERE date = "october 18, 1992"
CREATE TABLE table_name_25 (loss VARCHAR, record VARCHAR)
What loss has 16-6 as the record?
SELECT loss FROM table_name_25 WHERE record = "16-6"
CREATE TABLE table_name_73 (loss VARCHAR, record VARCHAR)
What loss has 4-2 as the record?
SELECT loss FROM table_name_73 WHERE record = "4-2"
CREATE TABLE table_name_69 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
What attendance has astros as the opponent, and april 29 as the date?
SELECT SUM(attendance) FROM table_name_69 WHERE opponent = "astros" AND date = "april 29"
CREATE TABLE table_name_13 (operator VARCHAR, width VARCHAR, type_designation VARCHAR)
Which Operator has a Width of 2.65 m, and a Type designation of m5000?
SELECT operator FROM table_name_13 WHERE width = "2.65 m" AND type_designation = "m5000"
CREATE TABLE table_name_88 (width VARCHAR, number_of_vehicles VARCHAR, type_designation VARCHAR)
Which Width has a Number of vehicles larger than 15, and a Type designation of k5000?
SELECT width FROM table_name_88 WHERE number_of_vehicles > 15 AND type_designation = "k5000"
CREATE TABLE table_name_76 (number_of_vehicles VARCHAR, type_designation VARCHAR)
Which Number of vehicles has a Type designation of u5-25 (bi-directional)?
SELECT number_of_vehicles FROM table_name_76 WHERE type_designation = "u5-25 (bi-directional)"
CREATE TABLE table_name_65 (irish_name VARCHAR, province VARCHAR, county VARCHAR)
Province of leinster, and a County of fingal has which irish name?
SELECT irish_name FROM table_name_65 WHERE province = "leinster" AND county = "fingal"
CREATE TABLE table_name_34 (county VARCHAR, irish_name VARCHAR)
Irish name of an dún (contae an dúin) has what county town?
SELECT county AS town FROM table_name_34 WHERE irish_name = "an dún (contae an dúin)"
CREATE TABLE table_name_8 (region VARCHAR, most_populous_city_town VARCHAR, irish_name VARCHAR)
Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region?
SELECT region FROM table_name_8 WHERE most_populous_city_town = "clonmel" AND irish_name = "tiobraid árann (contae thiobraid árann)"
CREATE TABLE table_name_46 (most_populous_city_town VARCHAR, irish_name VARCHAR)
Irish name of dún na ngall (contae dhún na ngall) has the most populous city/town?
SELECT most_populous_city_town FROM table_name_46 WHERE irish_name = "dún na ngall (contae dhún na ngall)"
CREATE TABLE table_name_66 (games VARCHAR, name VARCHAR)
Name the games for rubén limardo
SELECT games FROM table_name_66 WHERE name = "rubén limardo"
CREATE TABLE table_name_75 (sport VARCHAR, medal VARCHAR, event VARCHAR)
Name the sport for men's light flyweight with medal of gold
SELECT sport FROM table_name_75 WHERE medal = "gold" AND event = "men's light flyweight"
CREATE TABLE table_name_71 (name VARCHAR, event VARCHAR, sport VARCHAR)
Tell me the name for men's featherweight and sport of weightlifting
SELECT name FROM table_name_71 WHERE event = "men's featherweight" AND sport = "weightlifting"