question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the attendance at the post-week 7 game against the San Diego Chargers?
CREATE TABLE table_name_53 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_53 WHERE week > 7 AND opponent = "san diego chargers"
What is the Competition on July 7?
CREATE TABLE table_name_68 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_68 WHERE date = "july 7"
At what Location in Round 3 is the Score 1-1?
CREATE TABLE table_name_12 (location VARCHAR, round VARCHAR, score VARCHAR)
SELECT location FROM table_name_12 WHERE round = "round 3" AND score = "1-1"
What is the Score of the competition on October 25?
CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_47 WHERE date = "october 25"
What is 2nd Party, when Election is "1885"?
CREATE TABLE table_name_11 (election VARCHAR)
SELECT 2 AS nd_party FROM table_name_11 WHERE election = "1885"
What is the largest Area (msr) that has an Area less than 291.045, is part of the Per family, and has a rank higher than 78?
CREATE TABLE table_name_70 (area__msr_ INTEGER, rank VARCHAR, area__sqdeg_ VARCHAR, family VARCHAR)
SELECT MAX(area__msr_) FROM table_name_70 WHERE area__sqdeg_ < 291.045 AND family = "per" AND rank > 78
What is the total sum of Areas (sq.deg) that have an Area (msr) of 43.059 and a Right ascension (hm) larger than 747.73?
CREATE TABLE table_name_47 (area__sqdeg_ INTEGER, area__msr_ VARCHAR, right_ascension__hm_ VARCHAR)
SELECT SUM(area__sqdeg_) FROM table_name_47 WHERE area__msr_ = 43.059 AND right_ascension__hm_ > 747.73
What's the total time for the summer universiade competition?
CREATE TABLE table_name_82 (time VARCHAR, competition VARCHAR)
SELECT COUNT(time) FROM table_name_82 WHERE competition = "summer universiade"
What's the highest time for the 1995 200 metres event?
CREATE TABLE table_name_31 (time INTEGER, year VARCHAR, event VARCHAR)
SELECT MAX(time) FROM table_name_31 WHERE year = 1995 AND event = "200 metres"
What position has a time over 38.61 at the gothenburg venue?
CREATE TABLE table_name_96 (position VARCHAR, time VARCHAR, venue VARCHAR)
SELECT position FROM table_name_96 WHERE time > 38.61 AND venue = "gothenburg"
What position has a time less than 40.2 at the rome venue?
CREATE TABLE table_name_69 (position VARCHAR, venue VARCHAR, time VARCHAR)
SELECT position FROM table_name_69 WHERE venue = "rome" AND time < 40.2
What is the most Bronze medals won among the participants that won less than 22 medals overall and less than 5 silver medals?
CREATE TABLE table_name_5 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT MAX(bronze) FROM table_name_5 WHERE total < 22 AND silver < 5
How many silver medals were won by the participant(s) that had more than 12 gold medals and 11 bronze medals?
CREATE TABLE table_name_54 (silver VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT silver FROM table_name_54 WHERE gold > 12 AND bronze = 11
What is the average number of gold medals won among participants that won less than 13 silver, less than 8 bronze, and more than 18 medals overall?
CREATE TABLE table_name_99 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT AVG(gold) FROM table_name_99 WHERE silver < 13 AND total > 18 AND bronze < 8
What is the number range for the T 3 class?
CREATE TABLE table_name_88 (number_range VARCHAR, class VARCHAR)
SELECT number_range FROM table_name_88 WHERE class = "t 3"
What 2009 has 52-75 as the 2010?
CREATE TABLE table_name_19 (Id VARCHAR)
SELECT 2009 FROM table_name_19 WHERE 2010 = "52-75"
What 2008 has 2013 for the year 2013?
CREATE TABLE table_name_37 (Id VARCHAR)
SELECT 2008 FROM table_name_37 WHERE "2013" = "2013"
What 2009 has 39th as the 2011?
CREATE TABLE table_name_45 (Id VARCHAR)
SELECT 2009 FROM table_name_45 WHERE 2011 = "39th"
How many specimens does the SANT institution have?
CREATE TABLE table_name_1 (no_specimens INTEGER, abbr VARCHAR)
SELECT SUM(no_specimens) FROM table_name_1 WHERE abbr = "sant"
In which city is the Universidad de Santiago de Compostela located?
CREATE TABLE table_name_37 (city VARCHAR, name VARCHAR)
SELECT city FROM table_name_37 WHERE name = "universidad de santiago de compostela"
In which city is MUB located?
CREATE TABLE table_name_29 (city VARCHAR, abbr VARCHAR)
SELECT city FROM table_name_29 WHERE abbr = "mub"
Which 1st Party has an Election of 1893 by-election?
CREATE TABLE table_name_10 (election VARCHAR)
SELECT 1 AS st_party FROM table_name_10 WHERE election = "1893 by-election"
Which 1st Member has an Election of 1895?
CREATE TABLE table_name_23 (election VARCHAR)
SELECT 1 AS st_member FROM table_name_23 WHERE election = "1895"
Which 1999 has 2000 as the year-end championship?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT 1999 FROM table_name_40 WHERE 2000 = "year-end championship"
Which 1997 has sf as the 2002?
CREATE TABLE table_name_74 (Id VARCHAR)
SELECT 1997 FROM table_name_74 WHERE 2002 = "sf"
What tournament has 1r as the 2011?
CREATE TABLE table_name_12 (tournament VARCHAR)
SELECT tournament FROM table_name_12 WHERE 2011 = "1r"
What 2009 has 3r as the 1999, and w as 2002?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT 2009 FROM table_name_40 WHERE 1999 = "3r" AND 2002 = "w"
What is Mass, when Designation is Prognoz 2?
CREATE TABLE table_name_54 (mass VARCHAR, designation VARCHAR)
SELECT mass FROM table_name_54 WHERE designation = "prognoz 2"
What is Mass, when Launch Date/Time ( GMT ) is 25 November 1976, 03:59?
CREATE TABLE table_name_29 (mass VARCHAR, launch_date_time___gmt__ VARCHAR)
SELECT mass FROM table_name_29 WHERE launch_date_time___gmt__ = "25 november 1976, 03:59"
What is Apogee, when Inclination is 65°, and when Launch Date/Time is ( GMT ) is 15 February 1973, 01:11?
CREATE TABLE table_name_48 (apogee VARCHAR, inclination VARCHAR, launch_date_time___gmt__ VARCHAR)
SELECT apogee FROM table_name_48 WHERE inclination = "65°" AND launch_date_time___gmt__ = "15 february 1973, 01:11"
What is Apogee, when Designation is Prognoz 6?
CREATE TABLE table_name_9 (apogee VARCHAR, designation VARCHAR)
SELECT apogee FROM table_name_9 WHERE designation = "prognoz 6"
What is Designation, when Launch Date/Time ( GMT ) is 29 June 1972, 03:47?
CREATE TABLE table_name_73 (designation VARCHAR, launch_date_time___gmt__ VARCHAR)
SELECT designation FROM table_name_73 WHERE launch_date_time___gmt__ = "29 june 1972, 03:47"
What is the Elimination for Candice?
CREATE TABLE table_name_96 (elimination VARCHAR, wrestler VARCHAR)
SELECT elimination FROM table_name_96 WHERE wrestler = "candice"
What Wrestler has an Elimination of 7?
CREATE TABLE table_name_6 (wrestler VARCHAR, elimination VARCHAR)
SELECT wrestler FROM table_name_6 WHERE elimination = "7"
What is Natalya's Time?
CREATE TABLE table_name_86 (time VARCHAR, wrestler VARCHAR)
SELECT time FROM table_name_86 WHERE wrestler = "natalya"
What is Maria's Elimination Move?
CREATE TABLE table_name_88 (elimination VARCHAR, wrestler VARCHAR)
SELECT elimination AS Move FROM table_name_88 WHERE wrestler = "maria"
In which area was there a score of 68?
CREATE TABLE table_name_42 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_42 WHERE score = 68
Which player had a position of t1 and played in the united states?
CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT player FROM table_name_49 WHERE place = "t1" AND country = "united states"
What person had an opponent of linda wessberg and scored an average score?
CREATE TABLE table_name_4 (score INTEGER, player VARCHAR)
SELECT AVG(score) FROM table_name_4 WHERE player = "linda wessberg"
What was the lowest total for Italy when the latest win is 1950?
CREATE TABLE table_name_43 (total INTEGER, nationality VARCHAR, latest_win VARCHAR)
SELECT MIN(total) FROM table_name_43 WHERE nationality = "italy" AND latest_win = 1950
What were the results for the incumbent from Iowa 2 district?
CREATE TABLE table_name_12 (results VARCHAR, district VARCHAR)
SELECT results FROM table_name_12 WHERE district = "iowa 2"
Who is the incumbent that has been in office since before 1996 and was again re-elected?
CREATE TABLE table_name_90 (incumbent VARCHAR, results VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_name_90 WHERE results = "re-elected" AND first_elected < 1996
From which party is the incumbent who was first elected to office in 1990?
CREATE TABLE table_name_8 (party VARCHAR, first_elected VARCHAR)
SELECT party FROM table_name_8 WHERE first_elected = 1990
In what year did the Democratic incumbent that was re-elected first take office?
CREATE TABLE table_name_52 (first_elected VARCHAR, results VARCHAR, party VARCHAR)
SELECT first_elected FROM table_name_52 WHERE results = "re-elected" AND party = "democratic"
what is the year built of kyrkjebø?
CREATE TABLE table_name_20 (year_built INTEGER, sub_parish__sogn_ VARCHAR)
SELECT AVG(year_built) FROM table_name_20 WHERE sub_parish__sogn_ = "kyrkjebø"
WHAT IS THE SUB-PARISH WITH A YEAR AFTER 1916, IN ortnevik?
CREATE TABLE table_name_41 (sub_parish__sogn_ VARCHAR, year_built VARCHAR, location_of_the_church VARCHAR)
SELECT sub_parish__sogn_ FROM table_name_41 WHERE year_built > 1916 AND location_of_the_church = "ortnevik"
What is the To par of the Player who won in 1936?
CREATE TABLE table_name_45 (to_par VARCHAR, year_s__won VARCHAR)
SELECT to_par FROM table_name_45 WHERE year_s__won = "1936"
What is the Player who won in 1931?
CREATE TABLE table_name_88 (player VARCHAR, year_s__won VARCHAR)
SELECT player FROM table_name_88 WHERE year_s__won = "1931"
What is the Total for the Player who won in 1922, 1932?
CREATE TABLE table_name_44 (total INTEGER, year_s__won VARCHAR)
SELECT AVG(total) FROM table_name_44 WHERE year_s__won = "1922, 1932"
What is the Total for the Player who won in 1936?
CREATE TABLE table_name_66 (total VARCHAR, year_s__won VARCHAR)
SELECT COUNT(total) FROM table_name_66 WHERE year_s__won = "1936"
What is the Finish of the Player with a To par of 23 of less and Total of 294?
CREATE TABLE table_name_91 (finish VARCHAR, to_par VARCHAR, total VARCHAR)
SELECT finish FROM table_name_91 WHERE to_par < 23 AND total = 294
What season has a Level of 2nd, 29 points?
CREATE TABLE table_name_84 (season VARCHAR, level VARCHAR, points VARCHAR)
SELECT season FROM table_name_84 WHERE level = "2nd" AND points = 29
What is the number of points when goals were 29–30?
CREATE TABLE table_name_98 (points INTEGER, goals VARCHAR)
SELECT SUM(points) FROM table_name_98 WHERE goals = "29–30"
What is the level when points are larger than 25, and goals are 64–31?
CREATE TABLE table_name_43 (level VARCHAR, points VARCHAR, goals VARCHAR)
SELECT level FROM table_name_43 WHERE points > 25 AND goals = "64–31"
Engine 2.5 20v d has what engine code?
CREATE TABLE table_name_46 (engine VARCHAR)
SELECT engine AS code FROM table_name_46 WHERE engine = "2.5 20v d"
Engine 2.3 16v has how many cylinders?
CREATE TABLE table_name_1 (cyl VARCHAR, engine VARCHAR)
SELECT cyl FROM table_name_1 WHERE engine = "2.3 16v"
Which Record has an Opponent of milwaukee bucks?
CREATE TABLE table_name_93 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_93 WHERE opponent = "milwaukee bucks"
Which Record has a Location/Attendance of ford center, a Game larger than 30, and a Score of 87–79?
CREATE TABLE table_name_51 (record VARCHAR, score VARCHAR, location_attendance VARCHAR, game VARCHAR)
SELECT record FROM table_name_51 WHERE location_attendance = "ford center" AND game > 30 AND score = "87–79"
Which Game has an Opponent of @ houston rockets?
CREATE TABLE table_name_22 (game INTEGER, opponent VARCHAR)
SELECT MIN(game) FROM table_name_22 WHERE opponent = "@ houston rockets"
Which Streak has a Score of 98–109?
CREATE TABLE table_name_27 (streak VARCHAR, score VARCHAR)
SELECT streak FROM table_name_27 WHERE score = "98–109"
Which Game has an Opponent of @ washington wizards?
CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR)
SELECT game FROM table_name_13 WHERE opponent = "@ washington wizards"
Which Streak has a Record of 21–22?
CREATE TABLE table_name_9 (streak VARCHAR, record VARCHAR)
SELECT streak FROM table_name_9 WHERE record = "21–22"
What was the outcome on 11 October 2009, when his partner was Jordan Kerr?
CREATE TABLE table_name_72 (outcome VARCHAR, partner VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_72 WHERE partner = "jordan kerr" AND date = "11 october 2009"
On what surface did he play with Stephen Huss on 31 October 2010?
CREATE TABLE table_name_32 (surface VARCHAR, partner VARCHAR, date VARCHAR)
SELECT surface FROM table_name_32 WHERE partner = "stephen huss" AND date = "31 october 2010"
What's was the 2008 during the Year End Ranking?
CREATE TABLE table_name_44 (tournament VARCHAR)
SELECT 2008 FROM table_name_44 WHERE tournament = "year end ranking"
What's the 2010 when Q2 happened in 2011?
CREATE TABLE table_name_45 (Id VARCHAR)
SELECT 2010 FROM table_name_45 WHERE 2011 = "q2"
What's the 2008 when 1R happened in 2009?
CREATE TABLE table_name_5 (Id VARCHAR)
SELECT 2008 FROM table_name_5 WHERE 2009 = "1r"
What is the lowest value for Olympics, when Sailors is greater than 1, when First OG is after 1948, and when Class is "Flying Dutchman"?
CREATE TABLE table_name_80 (olympics_so_far INTEGER, class VARCHAR, sailors VARCHAR, first_og VARCHAR)
SELECT MIN(olympics_so_far) FROM table_name_80 WHERE sailors > 1 AND first_og > 1948 AND class = "flying dutchman"
What is the country associated with the date in 2003?
CREATE TABLE table_name_34 (country VARCHAR, date VARCHAR)
SELECT country FROM table_name_34 WHERE date = "2003"
What is the format for UK catalog S 63795?
CREATE TABLE table_name_90 (format VARCHAR, country VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_90 WHERE country = "uk" AND catalog = "s 63795"
What is the date for US catalog CK 9942?
CREATE TABLE table_name_4 (date VARCHAR, country VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_4 WHERE country = "us" AND catalog = "ck 9942"
What is the label for catalog EMB 31956?
CREATE TABLE table_name_14 (label VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_14 WHERE catalog = "emb 31956"
What is the date for CBS label?
CREATE TABLE table_name_48 (date VARCHAR, label VARCHAR)
SELECT date FROM table_name_48 WHERE label = "cbs"
Where is constituency number 16?
CREATE TABLE table_name_57 (name VARCHAR, constituency_number VARCHAR)
SELECT name FROM table_name_57 WHERE constituency_number = "16"
Which Elevator has Elevated of april 12, 1281, a Nationality of french, and an Elector of jean cholet?
CREATE TABLE table_name_89 (elevator VARCHAR, elector VARCHAR, elevated VARCHAR, nationality VARCHAR)
SELECT elevator FROM table_name_89 WHERE elevated = "april 12, 1281" AND nationality = "french" AND elector = "jean cholet"
Which Elevated has an Elector of matteo orsini rosso?
CREATE TABLE table_name_23 (elevated VARCHAR, elector VARCHAR)
SELECT elevated FROM table_name_23 WHERE elector = "matteo orsini rosso"
Which Elector has a Title of s. cecilia?
CREATE TABLE table_name_1 (elector VARCHAR, title VARCHAR)
SELECT elector FROM table_name_1 WHERE title = "title of s. cecilia"
Which Elevator has a Title of bishop of palestrina?
CREATE TABLE table_name_29 (elevator VARCHAR, title VARCHAR)
SELECT elevator FROM table_name_29 WHERE title = "bishop of palestrina"
Which Order has a Nationality of ese milan?
CREATE TABLE table_name_68 (order VARCHAR, nationality VARCHAR)
SELECT order FROM table_name_68 WHERE nationality = "ese milan"
Which Elector has an Order of cardinal-priest, and a Nationality of french?
CREATE TABLE table_name_74 (elector VARCHAR, order VARCHAR, nationality VARCHAR)
SELECT elector FROM table_name_74 WHERE order = "cardinal-priest" AND nationality = "french"
How many foundeds have sousse as the city, with a capacity greater than 25,000?
CREATE TABLE table_name_25 (founded VARCHAR, city VARCHAR, capacity VARCHAR)
SELECT COUNT(founded) FROM table_name_25 WHERE city = "sousse" AND capacity > 25 OFFSET 000
What is the lowest founded that has bizerte athletic f.c. as the club?
CREATE TABLE table_name_42 (founded INTEGER, club VARCHAR)
SELECT MIN(founded) FROM table_name_42 WHERE club = "bizerte athletic f.c."
How many foundeds have stade tunisien as the club, with a capacity greater than 18,000?
CREATE TABLE table_name_6 (founded INTEGER, club VARCHAR, capacity VARCHAR)
SELECT SUM(founded) FROM table_name_6 WHERE club = "stade tunisien" AND capacity > 18 OFFSET 000
How much capacity has 1944 as the founded?
CREATE TABLE table_name_84 (capacity VARCHAR, founded VARCHAR)
SELECT COUNT(capacity) FROM table_name_84 WHERE founded = 1944
What is the total number of Games, when Losses is greater than 6, when Club is "Club Sportif Sfaxien", and when Wins is less than 3?
CREATE TABLE table_name_58 (games VARCHAR, wins VARCHAR, losses VARCHAR, club VARCHAR)
SELECT COUNT(games) FROM table_name_58 WHERE losses > 6 AND club = "club sportif sfaxien" AND wins < 3
What is the lowest Games, when Wins is less than 1, and when Draws is greater than 1?
CREATE TABLE table_name_40 (games INTEGER, wins VARCHAR, draws VARCHAR)
SELECT MIN(games) FROM table_name_40 WHERE wins < 1 AND draws > 1
What is the average Draws, when Losses is greater than 9, and when Wins is greater than 9?
CREATE TABLE table_name_70 (draws INTEGER, losses VARCHAR, wins VARCHAR)
SELECT AVG(draws) FROM table_name_70 WHERE losses > 9 AND wins > 9
What is the 2011 entry for the row with a 2007 entry of 558?
CREATE TABLE table_name_36 (Id VARCHAR)
SELECT 2011 FROM table_name_36 WHERE 2007 = "558"
What is the 2010 entry for the row that has a 2009 entry of 270?
CREATE TABLE table_name_35 (Id VARCHAR)
SELECT 2010 FROM table_name_35 WHERE 2009 = "270"
What is the 2009 entry for the row that has a 2007 entry of A and a tournament entry of US Open?
CREATE TABLE table_name_94 (tournament VARCHAR)
SELECT 2009 FROM table_name_94 WHERE 2007 = "a" AND tournament = "us open"
What is the 2008 entry for the row that as a 2011 entry of 1R?
CREATE TABLE table_name_32 (Id VARCHAR)
SELECT 2008 FROM table_name_32 WHERE 2011 = "1r"
What is the To par for Lanny Wadkins?
CREATE TABLE table_name_99 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_99 WHERE player = "lanny wadkins"
What is Australia's highest total?
CREATE TABLE table_name_86 (total INTEGER, country VARCHAR)
SELECT MAX(total) FROM table_name_86 WHERE country = "australia"
What country has a to par larger than 5 and a player John Mahaffey?
CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT country FROM table_name_38 WHERE to_par > 5 AND player = "john mahaffey"
Which Total has a Year(s) won of 1991?
CREATE TABLE table_name_9 (total INTEGER, year_s__won VARCHAR)
SELECT MIN(total) FROM table_name_9 WHERE year_s__won = "1991"
Which Year(s) won with a To par of 12?
CREATE TABLE table_name_84 (year_s__won VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_84 WHERE to_par = 12
Which To par has a Player of jack nicklaus, and a Total smaller than 146?
CREATE TABLE table_name_63 (to_par INTEGER, player VARCHAR, total VARCHAR)
SELECT AVG(to_par) FROM table_name_63 WHERE player = "jack nicklaus" AND total < 146
What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation?
CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR)
SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = "ng" AND points_for_foundation < 0
What is the maximum points for higher when the points for foundation is less than 0?
CREATE TABLE table_name_66 (points_for_higher INTEGER, points_for_foundation INTEGER)
SELECT MAX(points_for_higher) FROM table_name_66 WHERE points_for_foundation < 0
With 10 as the points for foundation, what is the maximum points for ordinary?
CREATE TABLE table_name_97 (points_for_ordinary INTEGER, points_for_foundation VARCHAR)
SELECT MAX(points_for_ordinary) FROM table_name_97 WHERE points_for_foundation = 10