answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MAX(week) FROM table_name_89 WHERE result = "w 34-21"
CREATE TABLE table_name_89 (week INTEGER, result VARCHAR)
What is the highest Week, when Result is W 34-21?
SELECT MAX(season) FROM table_name_22 WHERE position = "2nd"
CREATE TABLE table_name_22 (season INTEGER, position VARCHAR)
What is the most recent year with a finish in 2nd position?
SELECT position FROM table_name_62 WHERE season > 2004
CREATE TABLE table_name_62 (position VARCHAR, season INTEGER)
What is the position in the 2004 season?
SELECT division FROM table_name_60 WHERE season < 2004
CREATE TABLE table_name_60 (division VARCHAR, season INTEGER)
What is the division for the season earlier than 2004?
SELECT team FROM table_name_70 WHERE qual_1 = "1:16.417"
CREATE TABLE table_name_70 (team VARCHAR, qual_1 VARCHAR)
What is Team, when Qual 1 is 1:16.417?
SELECT team FROM table_name_65 WHERE qual_1 = "1:16.417"
CREATE TABLE table_name_65 (team VARCHAR, qual_1 VARCHAR)
What is Team, when Qual 1 is 1:16.417?
SELECT team FROM table_name_57 WHERE qual_1 = "1:20.139"
CREATE TABLE table_name_57 (team VARCHAR, qual_1 VARCHAR)
What is Team when Qual 1 is 1:20.139?
SELECT name FROM table_name_36 WHERE qual_2 = "1:15.582"
CREATE TABLE table_name_36 (name VARCHAR, qual_2 VARCHAR)
What is Name when Qual 2 is 1:15.582?
SELECT name FROM table_name_44 WHERE best = "1:15.673"
CREATE TABLE table_name_44 (name VARCHAR, best VARCHAR)
What is Name, when Best is 1:15.673?
SELECT tournament FROM table_name_18 WHERE date = 1987 AND surface = "clay"
CREATE TABLE table_name_18 (tournament VARCHAR, date VARCHAR, surface VARCHAR)
Where was the tournament that happened in 1987 on a clay surface?
SELECT opponent_in_the_final FROM table_name_48 WHERE date < 1990 AND partnering = "yannick noah" AND score = "4–6, 6–3, 6–4"
CREATE TABLE table_name_48 (opponent_in_the_final VARCHAR, score VARCHAR, date VARCHAR, partnering VARCHAR)
Who was the opponent before 1990 that had a score of 4–6, 6–3, 6–4 and Partnering of Yannick Noah?
SELECT seats_in_hamburgische_bürgerschaft FROM table_name_83 WHERE ideology = "green politics"
CREATE TABLE table_name_83 (seats_in_hamburgische_bürgerschaft VARCHAR, ideology VARCHAR)
WHAT IS THE SEATS IN Hamburgische Bürgerschaft THAT HAS GREEN POLITICS?
SELECT abbr FROM table_name_70 WHERE votes__2011_ = "11.2%"
CREATE TABLE table_name_70 (abbr VARCHAR, votes__2011_ VARCHAR)
WHAT IS THE ABBR WITH VOTES OF 11.2% IN 2011?
SELECT COUNT(seats_in_hamburgische_bürgerschaft) FROM table_name_18 WHERE abbr = "bündnis 90 / die grünen (gal)"
CREATE TABLE table_name_18 (seats_in_hamburgische_bürgerschaft VARCHAR, abbr VARCHAR)
WHAT IS THE TOTAL NUMBER OF SEATS IN Hamburgische Bürgerschaft WITH AN ABBR OF bündnis 90 / die grünen (gal)?
SELECT name__german_ FROM table_name_85 WHERE ideology = "liberalism"
CREATE TABLE table_name_85 (name__german_ VARCHAR, ideology VARCHAR)
WHAT IS THE GERMAN NAME OF LIBERALISM?
SELECT seats_in_hamburgische_bürgerschaft FROM table_name_57 WHERE name__english_ = "alliance '90/the greens"
CREATE TABLE table_name_57 (seats_in_hamburgische_bürgerschaft VARCHAR, name__english_ VARCHAR)
WHAT ARE THE SEATS IN Hamburgische Bürgerschaft WITH THE NAME alliance '90/the greens?
SELECT MIN(game) FROM table_name_99 WHERE location = "td waterhouse centre"
CREATE TABLE table_name_99 (game INTEGER, location VARCHAR)
What is the earliest game played at the TD Waterhouse Centre?
SELECT opponent FROM table_name_56 WHERE date = "april 2"
CREATE TABLE table_name_56 (opponent VARCHAR, date VARCHAR)
Who was the opponent on April 2?
SELECT MAX(game) FROM table_name_5 WHERE opponent = "miami heat"
CREATE TABLE table_name_5 (game INTEGER, opponent VARCHAR)
What was the highest game number when the opponent was the Miami Heat?
SELECT website FROM table_name_55 WHERE license = "apache license 2.0"
CREATE TABLE table_name_55 (website VARCHAR, license VARCHAR)
What is Website, when License is Apache License 2.0?
SELECT source_version FROM table_name_10 WHERE target_version = "java 7, 6, 5"
CREATE TABLE table_name_10 (source_version VARCHAR, target_version VARCHAR)
What is Source Version, when Target Version is Java 7, 6, 5?
SELECT source_version FROM table_name_42 WHERE license = "lgpl or mpl"
CREATE TABLE table_name_42 (source_version VARCHAR, license VARCHAR)
What is Source Version, when License is LGPL or MPL?
SELECT target_version FROM table_name_91 WHERE last_release = "2009-08-09, 1.2.9"
CREATE TABLE table_name_91 (target_version VARCHAR, last_release VARCHAR)
What is Target Version, when Last Release is 2009-08-09, 1.2.9?
SELECT website FROM table_name_25 WHERE last_release = "2009-08-09, 1.2.9"
CREATE TABLE table_name_25 (website VARCHAR, last_release VARCHAR)
What is Website, when Last Release is 2009-08-09, 1.2.9?
SELECT target_version FROM table_name_68 WHERE license = "lgpl or mpl"
CREATE TABLE table_name_68 (target_version VARCHAR, license VARCHAR)
What is Target Version, when License is LGPL or MPL?
SELECT class FROM table_name_12 WHERE erp_w = 500
CREATE TABLE table_name_12 (class VARCHAR, erp_w VARCHAR)
What is the class for the ERP W of 500?
SELECT AVG(erp_w) FROM table_name_59 WHERE call_sign = "k248bj" AND frequency_mhz > 97.5
CREATE TABLE table_name_59 (erp_w INTEGER, call_sign VARCHAR, frequency_mhz VARCHAR)
What is the ERP W for the station whose call sign is K248BJ and whose frequency MHz is higher than 97.5?
SELECT city_of_license FROM table_name_60 WHERE frequency_mhz = 102.3 AND erp_w < 1 OFFSET 000
CREATE TABLE table_name_60 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
In which city is the station licensed whose frequency MHz is higher than 102.3 and the ERP W is lower than 1,000?
SELECT city_of_license FROM table_name_28 WHERE frequency_mhz > 102.3 AND call_sign = "k292eu"
CREATE TABLE table_name_28 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
In which city is the station licensed whose frequency MHz is higher than 102.3 and whose call sign is K292EU?
SELECT SUM(purse___us_) AS $__ FROM table_name_58 WHERE country = "sweden"
CREATE TABLE table_name_58 (purse___us_ INTEGER, country VARCHAR)
What was sweden's purse in USD?
SELECT to_par FROM table_name_31 WHERE year = 2003
CREATE TABLE table_name_31 (to_par VARCHAR, year VARCHAR)
What was 2003's To Par?
SELECT MAX(laps) FROM table_name_82 WHERE grid = 7
CREATE TABLE table_name_82 (laps INTEGER, grid VARCHAR)
What is the highest laps for the grid of 7?
SELECT AVG(laps) FROM table_name_4 WHERE time_retired = "+16.874 secs" AND grid < 5
CREATE TABLE table_name_4 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
What are the average Laps for the time/retired of +16.874 secs, and a grid less than 5?
SELECT MAX(points) FROM table_name_88 WHERE time_retired = "+32.256 secs" AND grid > 12
CREATE TABLE table_name_88 (points INTEGER, time_retired VARCHAR, grid VARCHAR)
What are the greatest points for a time/retired of +32.256 secs, and a a grid larger than 12?
SELECT MAX(grid) FROM table_name_86 WHERE laps = 65
CREATE TABLE table_name_86 (grid INTEGER, laps VARCHAR)
What is biggest grid when the laps are 65?
SELECT team FROM table_name_6 WHERE grid = 15
CREATE TABLE table_name_6 (team VARCHAR, grid VARCHAR)
What team has a grid of 15?
SELECT AVG(new_council) FROM table_name_57 WHERE election_result < 0
CREATE TABLE table_name_57 (new_council INTEGER, election_result INTEGER)
What is the average new council number when the election result is smaller than 0?
SELECT SUM(seats_up_for_election) FROM table_name_10 WHERE election_result = 9 AND new_council > 27
CREATE TABLE table_name_10 (seats_up_for_election INTEGER, election_result VARCHAR, new_council VARCHAR)
How many seats were up for election during the vote where the election result was 9 and the new council 27?
SELECT AVG(staying_councillors) FROM table_name_42 WHERE election_result > 0 AND party = "conservatives" AND new_council < 27
CREATE TABLE table_name_42 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR)
How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives?
SELECT opponent FROM table_name_93 WHERE date = "november 16"
CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR)
What opponent did the Broncos play on November 16?
SELECT record FROM table_name_98 WHERE game_site = "mile high stadium" AND opponent = "detroit lions"
CREATE TABLE table_name_98 (record VARCHAR, game_site VARCHAR, opponent VARCHAR)
What was the Bronco's record when they played the Detroit Lions at Mile High Stadium?
SELECT result FROM table_name_8 WHERE date = "november 22"
CREATE TABLE table_name_8 (result VARCHAR, date VARCHAR)
What was the score of the game on November 22?
SELECT MIN(points) FROM table_name_50 WHERE attendance = "1,500"
CREATE TABLE table_name_50 (points INTEGER, attendance VARCHAR)
What is the lowest number of points scored when there were 1,500 in attendance?
SELECT SUM(2001) FROM table_name_73 WHERE year = "ebitda" AND 2009 < 3 OFFSET 600
CREATE TABLE table_name_73 (year VARCHAR)
what is 2001 when the year is ebitda and 2009 is less than 3,600?
SELECT author FROM table_name_17 WHERE title = "harry potter and the deathly hallows"
CREATE TABLE table_name_17 (author VARCHAR, title VARCHAR)
who is the author for harry potter and the deathly hallows?
SELECT title FROM table_name_94 WHERE citation = "honor" AND narrator = "lincoln hoppe"
CREATE TABLE table_name_94 (title VARCHAR, citation VARCHAR, narrator VARCHAR)
what is the title when the citation is honor and the narrator is lincoln hoppe?
SELECT producer FROM table_name_17 WHERE narrator = "katherine kellgren" AND year < 2013 AND author = "karen cushman"
CREATE TABLE table_name_17 (producer VARCHAR, author VARCHAR, narrator VARCHAR, year VARCHAR)
who is the producer when the narrator is katherine kellgren, the year is before 2013 and the author is karen cushman?
SELECT SUM(year) FROM table_name_37 WHERE citation = "honor" AND author = "kadir nelson"
CREATE TABLE table_name_37 (year INTEGER, citation VARCHAR, author VARCHAR)
what is the year when the citation is honor and the author is kadir nelson?
SELECT opponent_in_the_final FROM table_name_33 WHERE year = 1942
CREATE TABLE table_name_33 (opponent_in_the_final VARCHAR, year VARCHAR)
What is Opponent In The Final, when Year is "1942"?
SELECT AVG(year) FROM table_name_98 WHERE outcome = "winner"
CREATE TABLE table_name_98 (year INTEGER, outcome VARCHAR)
What is the average Year, when Outcome is "Winner"?
SELECT tournament FROM table_name_54 WHERE opponent_in_the_final = "julia kimmelmann"
CREATE TABLE table_name_54 (tournament VARCHAR, opponent_in_the_final VARCHAR)
What tournament did Pemra Özgen play against julia kimmelmann in the finals?
SELECT home FROM table_name_44 WHERE visitor = "nashville"
CREATE TABLE table_name_44 (home VARCHAR, visitor VARCHAR)
Which Home has a Visitor of nashville?
SELECT visitor FROM table_name_63 WHERE decision = "osgood" AND date = "february 15"
CREATE TABLE table_name_63 (visitor VARCHAR, decision VARCHAR, date VARCHAR)
Which Visitor has a Decision of osgood, and a Date of february 15?
SELECT date FROM table_name_15 WHERE record = "36–11–7"
CREATE TABLE table_name_15 (date VARCHAR, record VARCHAR)
Which Date has a Record of 36–11–7?
SELECT date FROM table_name_24 WHERE visitor = "edmonton"
CREATE TABLE table_name_24 (date VARCHAR, visitor VARCHAR)
Which Date has a Visitor of edmonton?
SELECT SUM(bronze) FROM table_name_49 WHERE gold < 1 AND total > 1 AND rank = 10
CREATE TABLE table_name_49 (bronze INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR)
What is the sum of Bronze, when Gold is less than 1, when Total is greater than 1, and when Rank is 10?
SELECT AVG(bronze) FROM table_name_78 WHERE rank > 6 AND nation = "italy (ita)" AND total < 1
CREATE TABLE table_name_78 (bronze INTEGER, total VARCHAR, rank VARCHAR, nation VARCHAR)
What is the average Bronze, when Rank is greater than 6, when Nation is Italy (ITA), and when Total is less than 1?
SELECT SUM(total) FROM table_name_14 WHERE silver > 1 AND rank = 9 AND bronze > 0
CREATE TABLE table_name_14 (total INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
What is the sum of Total, when Silver is greater than 1, when Rank is 9, and when Bronze is greater than 0?
SELECT AVG(gold) FROM table_name_95 WHERE total = 2 AND silver < 1 AND rank > 5
CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR)
What is the average Gold, when Total is 2, when Silver is less than 1, and when Rank is greater than 5?
SELECT SUM(rank) FROM table_name_32 WHERE bronze < 1 AND nation = "switzerland (sui)" AND total < 2
CREATE TABLE table_name_32 (rank INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR)
What is the sum of Rank, when Bronze is less than 1, when Nation is Switzerland (SUI), and when Total is less than 2?
SELECT SUM(total) FROM table_name_87 WHERE silver > 1 AND nation = "germany (ger)" AND gold < 1
CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR)
What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1?
SELECT player FROM table_name_10 WHERE to_par = 7 AND score = 73 - 72 - 67 - 75 = 287
CREATE TABLE table_name_10 (player VARCHAR, to_par VARCHAR, score VARCHAR)
What is Player, when To Par is "7", and when Score is "73-72-67-75=287"?
SELECT AVG(to_par) FROM table_name_20 WHERE player = "billy casper"
CREATE TABLE table_name_20 (to_par INTEGER, player VARCHAR)
What is the average To Par, when Player is "Billy Casper"?
SELECT MAX(money___) AS $__ FROM table_name_11 WHERE to_par < 2
CREATE TABLE table_name_11 (money___ INTEGER, to_par INTEGER)
What is the highest Money ( $ ), when To Par is less than 2?
SELECT event FROM table_name_39 WHERE res = "win" AND location = "guam" AND opponent = "patrick madayag"
CREATE TABLE table_name_39 (event VARCHAR, opponent VARCHAR, res VARCHAR, location VARCHAR)
What event in guam did Tetsuji Kato win against patrick madayag?
SELECT res FROM table_name_73 WHERE record = "19-9"
CREATE TABLE table_name_73 (res VARCHAR, record VARCHAR)
What was the result of the fight when Tetsuji Kato's record was 19-9?
SELECT COUNT(reception) FROM table_name_12 WHERE long < 7
CREATE TABLE table_name_12 (reception VARCHAR, long INTEGER)
How many receptions were smaller than 7?
SELECT AVG(yards) FROM table_name_81 WHERE games > 15 AND reception > 2 AND player = "jimmie giles"
CREATE TABLE table_name_81 (yards INTEGER, player VARCHAR, games VARCHAR, reception VARCHAR)
What is the average yards for Jimmie Giles in a game larger than 15 and reception larger than 2?
SELECT year FROM table_name_63 WHERE league_position = "8/12"
CREATE TABLE table_name_63 (year VARCHAR, league_position VARCHAR)
What year had a league position of 8/12?
SELECT league FROM table_name_88 WHERE league_position = "8/13"
CREATE TABLE table_name_88 (league VARCHAR, league_position VARCHAR)
What league has a position of 8/13?
SELECT year FROM table_name_93 WHERE league = "malaysia premier league" AND league_position = "8/12"
CREATE TABLE table_name_93 (year VARCHAR, league VARCHAR, league_position VARCHAR)
What year did the malaysia premier league get a position of 8/12?
SELECT year FROM table_name_70 WHERE cup_position = "round 1" AND league_position = "5/12"
CREATE TABLE table_name_70 (year VARCHAR, cup_position VARCHAR, league_position VARCHAR)
What year had a cup position of round 1 and a league position of 5/12?
SELECT year FROM table_name_9 WHERE domestic_cup = "singapore cup"
CREATE TABLE table_name_9 (year VARCHAR, domestic_cup VARCHAR)
What year had a domestic cup of singapore cup?
SELECT SUM(laps) FROM table_name_75 WHERE rider = "olivier jacque" AND grid > 7
CREATE TABLE table_name_75 (laps INTEGER, rider VARCHAR, grid VARCHAR)
How many Laps have Rider of olivier jacque, and a Grid larger than 7?
SELECT MAX(laps) FROM table_name_93 WHERE manufacturer = "suzuki" AND grid < 16
CREATE TABLE table_name_93 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)
Which Laps have a Manufacturer of suzuki, and a Grid smaller than 16?
SELECT COUNT(laps) FROM table_name_87 WHERE grid > 9 AND time_retired = "+32.354"
CREATE TABLE table_name_87 (laps VARCHAR, grid VARCHAR, time_retired VARCHAR)
How many Laps have a Grid larger than 9, and a Time/Retired of +32.354?
SELECT record FROM table_name_30 WHERE date = "oct 19"
CREATE TABLE table_name_30 (record VARCHAR, date VARCHAR)
What is Record, when Date is Oct 19?
SELECT attendance FROM table_name_1 WHERE opponent = "montreal alouettes" AND date = "oct 4"
CREATE TABLE table_name_1 (attendance VARCHAR, opponent VARCHAR, date VARCHAR)
What is Attendance, when Opponent is Montreal Alouettes, and when Date is Oct 4?
SELECT opponent FROM table_name_67 WHERE result = "win" AND date = "aug 7"
CREATE TABLE table_name_67 (opponent VARCHAR, result VARCHAR, date VARCHAR)
What is Opponent, when Result is Win, and when Date is Aug 7?
SELECT date FROM table_name_68 WHERE score = "115-93"
CREATE TABLE table_name_68 (date VARCHAR, score VARCHAR)
what is the date when the score is 115-93?
SELECT AVG(crowd) FROM table_name_64 WHERE away_team = "new zealand breakers" AND venue = "cairns convention centre"
CREATE TABLE table_name_64 (crowd INTEGER, away_team VARCHAR, venue VARCHAR)
what is the average crowd when the away team is new zealand breakers and the venue is cairns convention centre?
SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = "wollongong hawks"
CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR)
how many times is the home team wollongong hawks?
SELECT date FROM table_name_70 WHERE venue = "gold coast convention centre"
CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR)
what is the date when the venue is gold coast convention centre?
SELECT score FROM table_name_45 WHERE points < 67 AND home = "calgary flames"
CREATE TABLE table_name_45 (score VARCHAR, points VARCHAR, home VARCHAR)
Which Score has Points smaller than 67, and a Home of calgary flames?
SELECT date FROM table_name_33 WHERE score = "4–2"
CREATE TABLE table_name_33 (date VARCHAR, score VARCHAR)
Whic Date has a Score of 4–2?
SELECT decision FROM table_name_53 WHERE record = "29–18–6"
CREATE TABLE table_name_53 (decision VARCHAR, record VARCHAR)
Which Decision has a Record of 29–18–6?
SELECT date FROM table_name_14 WHERE score = "4–2"
CREATE TABLE table_name_14 (date VARCHAR, score VARCHAR)
Which Date has a Score of 4–2?
SELECT COUNT(lost) FROM table_name_93 WHERE years = "1975" AND seasons < 1
CREATE TABLE table_name_93 (lost VARCHAR, years VARCHAR, seasons VARCHAR)
How many losses did the coach who served under 1 season and in 1975 have?
SELECT MIN(seasons) FROM table_name_2 WHERE name = "kathy graham"
CREATE TABLE table_name_2 (seasons INTEGER, name VARCHAR)
What is the number of seasons coached by Kathy Graham?
SELECT result FROM table_name_80 WHERE date = "september 25, 1966"
CREATE TABLE table_name_80 (result VARCHAR, date VARCHAR)
What is the result on September 25, 1966?
SELECT attendance FROM table_name_54 WHERE week > 10 AND date = "november 20, 1966"
CREATE TABLE table_name_54 (attendance VARCHAR, week VARCHAR, date VARCHAR)
What is the attendance of the game on November 20, 1966 after week 10?
SELECT opponent FROM table_name_73 WHERE week = 2
CREATE TABLE table_name_73 (opponent VARCHAR, week VARCHAR)
Who is the opponent on week 2?
SELECT opponent FROM table_name_88 WHERE date = "november 20, 1966"
CREATE TABLE table_name_88 (opponent VARCHAR, date VARCHAR)
Who is the opponent on November 20, 1966?
SELECT COUNT(attendance) FROM table_name_59 WHERE home = "ny islanders"
CREATE TABLE table_name_59 (attendance VARCHAR, home VARCHAR)
What is the attendance of the game with the NY Islanders as home team?
SELECT date FROM table_name_52 WHERE opponent = "seattle"
CREATE TABLE table_name_52 (date VARCHAR, opponent VARCHAR)
What was the date of the game against seattle?
SELECT opponent FROM table_name_82 WHERE game = 30
CREATE TABLE table_name_82 (opponent VARCHAR, game VARCHAR)
Who were the opponents during game 30?
SELECT record FROM table_name_52 WHERE score = "78-59"
CREATE TABLE table_name_52 (record VARCHAR, score VARCHAR)
What was the record during the game with a score of 78-59?
SELECT team FROM table_name_95 WHERE state_province = "maryland" AND league = "mlb"
CREATE TABLE table_name_95 (team VARCHAR, state_province VARCHAR, league VARCHAR)
Which mlb team is located in maryland?
SELECT team FROM table_name_5 WHERE city = "brooklyn"
CREATE TABLE table_name_5 (team VARCHAR, city VARCHAR)
What team is located in brooklyn?
SELECT est FROM table_name_6 WHERE state_province = "alberta" AND league = "cfl" AND city = "edmonton"
CREATE TABLE table_name_6 (est VARCHAR, city VARCHAR, state_province VARCHAR, league VARCHAR)
In what year was the cfl team in edmonton, alberta established?