answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT 2006 FROM table_name_98 WHERE 2007 = "a"
CREATE TABLE table_name_98 (Id VARCHAR)
Which 2006 has a 2007 of A?
SELECT 2008 AS _12 FROM table_name_80 WHERE 2007 = "a" AND tournament = "us open"
CREATE TABLE table_name_80 (tournament VARCHAR)
Which 2008-12 has a 2007 of A, and a Tournament of us open?
SELECT record FROM table_name_57 WHERE date = "april 1"
CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR)
What was the record on April 1?
SELECT score FROM table_name_62 WHERE date = "april 9"
CREATE TABLE table_name_62 (score VARCHAR, date VARCHAR)
What's the score on April 9?
SELECT home FROM table_name_71 WHERE date = "april 3"
CREATE TABLE table_name_71 (home VARCHAR, date VARCHAR)
Where was home on April 3?
SELECT score FROM table_name_12 WHERE date = "april 9"
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)
What's the score on April 9?
SELECT AVG(points) FROM table_name_72 WHERE played > 18
CREATE TABLE table_name_72 (points INTEGER, played INTEGER)
What is the average number of points of the team with more than 18 played?
SELECT MIN(scored) FROM table_name_82 WHERE points = 19 AND played < 18
CREATE TABLE table_name_82 (scored INTEGER, points VARCHAR, played VARCHAR)
What is the lowest score of the team with 19 points and less than 18 played?
SELECT AVG(draws) FROM table_name_31 WHERE points < 17 AND wins < 4
CREATE TABLE table_name_31 (draws INTEGER, points VARCHAR, wins VARCHAR)
What is the average number of draws of the team with less than 17 points and less than 4 wins?
SELECT title FROM table_name_46 WHERE artist = "tangorodrim" AND cat__number = "fsr006"
CREATE TABLE table_name_46 (title VARCHAR, artist VARCHAR, cat__number VARCHAR)
What is the title of the record with an artist of Tangorodrim, category number FSR006?
SELECT format FROM table_name_31 WHERE artist = "triumfall"
CREATE TABLE table_name_31 (format VARCHAR, artist VARCHAR)
What was the format of the release by Triumfall?
SELECT cat__number FROM table_name_85 WHERE release_date = "november 2007"
CREATE TABLE table_name_85 (cat__number VARCHAR, release_date VARCHAR)
What is the category number that was released in November 2007?
SELECT MIN(round) FROM table_name_86 WHERE pick__number = 12 AND position = "linebacker"
CREATE TABLE table_name_86 (round INTEGER, pick__number VARCHAR, position VARCHAR)
Which is the lowest round to have a pick of 12 and position of linebacker?
SELECT name FROM table_name_76 WHERE pick__number < 13 AND round = 15
CREATE TABLE table_name_76 (name VARCHAR, pick__number VARCHAR, round VARCHAR)
Which player was picked in round 15 with a pick smaller than 13?
SELECT COUNT(pick__number) FROM table_name_34 WHERE college = "lamar"
CREATE TABLE table_name_34 (pick__number VARCHAR, college VARCHAR)
How many picks were from Lamar College?
SELECT COUNT(overall) FROM table_name_97 WHERE college = "notre dame" AND round > 2
CREATE TABLE table_name_97 (overall VARCHAR, college VARCHAR, round VARCHAR)
How many overall values have a college of Notre Dame and rounds over 2?
SELECT player FROM table_name_90 WHERE venue = "albion"
CREATE TABLE table_name_90 (player VARCHAR, venue VARCHAR)
What player was at Albion?
SELECT venue FROM table_name_29 WHERE runs = "274"
CREATE TABLE table_name_29 (venue VARCHAR, runs VARCHAR)
Where was the venue that had 274 runs?
SELECT player FROM table_name_17 WHERE opponent = "queensland"
CREATE TABLE table_name_17 (player VARCHAR, opponent VARCHAR)
which athlete played against Queensland?
SELECT venue FROM table_name_71 WHERE runs = "245"
CREATE TABLE table_name_71 (venue VARCHAR, runs VARCHAR)
Where is the venue with more than 245 runs?
SELECT venue FROM table_name_22 WHERE player = "jack badcock"
CREATE TABLE table_name_22 (venue VARCHAR, player VARCHAR)
Where did Jack Badcock play?
SELECT surface FROM table_name_73 WHERE date = "16 november 2007"
CREATE TABLE table_name_73 (surface VARCHAR, date VARCHAR)
Which Surface has a Date of 16 november 2007?
SELECT date FROM table_name_23 WHERE competition = "2004 afc asian cup qualifier"
CREATE TABLE table_name_23 (date VARCHAR, competition VARCHAR)
Name the date for 2004 afc asian cup qualifier
SELECT venue FROM table_name_88 WHERE date = "23 january 2009"
CREATE TABLE table_name_88 (venue VARCHAR, date VARCHAR)
Name the venue for 23 january 2009
SELECT competition FROM table_name_54 WHERE venue = "khartoum"
CREATE TABLE table_name_54 (competition VARCHAR, venue VARCHAR)
Name the competition for khartoum
SELECT MIN(drawn) FROM table_name_25 WHERE games < 7
CREATE TABLE table_name_25 (drawn INTEGER, games INTEGER)
What is the fewest ties the team had with fewer than 7 games?
SELECT population FROM table_name_25 WHERE median_household_income = "$69,760"
CREATE TABLE table_name_25 (population VARCHAR, median_household_income VARCHAR)
What is the population for a county that has a median income of $69,760?
SELECT county FROM table_name_37 WHERE per_capita_income = "$51,456"
CREATE TABLE table_name_37 (county VARCHAR, per_capita_income VARCHAR)
What county has $51,456 income per capita?
SELECT opponent FROM table_name_87 WHERE attendance = "60,355"
CREATE TABLE table_name_87 (opponent VARCHAR, attendance VARCHAR)
Who was the opponent when attendance was 60,355?
SELECT SUM(net_profit_loss__sek_) FROM table_name_87 WHERE basic_eps__sek_ = -6.58 AND employees__average_year_ > 31 OFFSET 035
CREATE TABLE table_name_87 (net_profit_loss__sek_ INTEGER, basic_eps__sek_ VARCHAR, employees__average_year_ VARCHAR)
Which Net profit/loss (SEK) has a Basic eps (SEK) of -6.58, and Employees (Average/Year) larger than 31,035?
SELECT result FROM table_name_64 WHERE week = 13
CREATE TABLE table_name_64 (result VARCHAR, week VARCHAR)
What is the result when 13 is the week?
SELECT AVG(week) FROM table_name_11 WHERE game_site = "shea stadium" AND date = "1979-12-09"
CREATE TABLE table_name_11 (week INTEGER, game_site VARCHAR, date VARCHAR)
What average week has shea stadium as the game site, and 1979-12-09 as the date?
SELECT MAX(rank) FROM table_name_18 WHERE country = "united states" AND wins < 1
CREATE TABLE table_name_18 (rank INTEGER, country VARCHAR, wins VARCHAR)
Name the most rank for the United States with wins less than 1
SELECT MAX(rank) FROM table_name_58 WHERE events = 26 AND wins > 0
CREATE TABLE table_name_58 (rank INTEGER, events VARCHAR, wins VARCHAR)
Name the most rank for wins more than 0 and events of 26
SELECT AVG(earnings___) AS $__ FROM table_name_34 WHERE rank = 3 AND wins < 3
CREATE TABLE table_name_34 (earnings___ INTEGER, rank VARCHAR, wins VARCHAR)
Name the average earnings for rank of 3 and wins less than 3
SELECT AVG(area__km_2__) FROM table_name_14 WHERE density__inhabitants_km_2__ < 206.2 AND altitude__mslm_ < 85
CREATE TABLE table_name_14 (area__km_2__ INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR)
What is the average area of the city that has a density less than than 206.2 and an altitude of less than 85?
SELECT MIN(density__inhabitants_km_2__) FROM table_name_39 WHERE area__km_2__ > 16.02 AND altitude__mslm_ < 116 AND city = "alessandria"
CREATE TABLE table_name_39 (density__inhabitants_km_2__ INTEGER, city VARCHAR, area__km_2__ VARCHAR, altitude__mslm_ VARCHAR)
What is the lowest density of alessandria where the area is bigger than 16.02 and altitude is less than 116?
SELECT MIN(density__inhabitants_km_2__) FROM table_name_87 WHERE city = "serravalle scrivia"
CREATE TABLE table_name_87 (density__inhabitants_km_2__ INTEGER, city VARCHAR)
What is the lowest density of serravalle scrivia?
SELECT MIN(population) FROM table_name_37 WHERE altitude__mslm_ < 197 AND city = "alessandria" AND density__inhabitants_km_2__ < 461.8
CREATE TABLE table_name_37 (population INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR, city VARCHAR)
What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8?
SELECT AVG(myspace) FROM table_name_62 WHERE site = "linkedin" AND orkut > 3
CREATE TABLE table_name_62 (myspace INTEGER, site VARCHAR, orkut VARCHAR)
What myspace has linkedin as the site, with an orkit greater than 3?
SELECT COUNT(linkedin) FROM table_name_79 WHERE site = "facebook" AND myspace < 64
CREATE TABLE table_name_79 (linkedin VARCHAR, site VARCHAR, myspace VARCHAR)
How many linkedin have Facebook as the site, with a myspace less than 64?
SELECT MAX(ning) FROM table_name_40 WHERE bebo < 4 AND orkut < 100 AND plaxo > 0
CREATE TABLE table_name_40 (ning INTEGER, plaxo VARCHAR, bebo VARCHAR, orkut VARCHAR)
What is the highest Ning that has a bebo less than 4, an orkut less than 100, with a plaxo greater than 0?
SELECT AVG(plaxo) FROM table_name_63 WHERE myspace > 64 AND bebo > 3 AND friendster = 4
CREATE TABLE table_name_63 (plaxo INTEGER, friendster VARCHAR, myspace VARCHAR, bebo VARCHAR)
What is the average plaxo that has a myspace greater than 64, a bebo greater than 3, with 4 as the friendster?
SELECT album FROM table_name_18 WHERE label = "warp records / paper bag records" AND title = "i need a life"
CREATE TABLE table_name_18 (album VARCHAR, label VARCHAR, title VARCHAR)
What album has the title I Need A Life with the label of warp records / paper bag records?
SELECT title FROM table_name_39 WHERE label = "warp records / paper bag records"
CREATE TABLE table_name_39 (title VARCHAR, label VARCHAR)
What title has a Label of warp records / paper bag records?
SELECT MIN(points) FROM table_name_84 WHERE team = "san martín de tucumán" AND played < 38
CREATE TABLE table_name_84 (points INTEGER, team VARCHAR, played VARCHAR)
What's the lowest Points for the Team of San Martín De Tucumán, and a Played that's smaller than 38?
SELECT nation FROM table_name_29 WHERE total > 3 AND bronze > 5 AND silver < 4
CREATE TABLE table_name_29 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR)
What nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver?
SELECT MAX(bronze) FROM table_name_61 WHERE rank = "19"
CREATE TABLE table_name_61 (bronze INTEGER, rank VARCHAR)
What is the largest number for bronze with a rank of 19?
SELECT season FROM table_name_4 WHERE score = "1:0"
CREATE TABLE table_name_4 (season VARCHAR, score VARCHAR)
what season had a score of 1:0
SELECT record FROM table_name_70 WHERE indoor_year = "1978"
CREATE TABLE table_name_70 (record VARCHAR, indoor_year VARCHAR)
indoor year is 1978, what is the record?
SELECT SUM(game__number) FROM table_name_57 WHERE record = "11-10-3"
CREATE TABLE table_name_57 (game__number INTEGER, record VARCHAR)
Record of 11-10-3 is what sum of game #?
SELECT home FROM table_name_51 WHERE points = 31 AND score = "1 - 5"
CREATE TABLE table_name_51 (home VARCHAR, points VARCHAR, score VARCHAR)
Points of 31, and a Score of 1 - 5 is what home?
SELECT record FROM table_name_30 WHERE visitor = "calgary"
CREATE TABLE table_name_30 (record VARCHAR, visitor VARCHAR)
Visitor of calgary has what record?
SELECT points FROM table_name_47 WHERE score = "2 - 2"
CREATE TABLE table_name_47 (points VARCHAR, score VARCHAR)
Score of 2 - 2 had what points?
SELECT COUNT(attendance) FROM table_name_20 WHERE opponents = "lincoln city" AND h___a = "a"
CREATE TABLE table_name_20 (attendance VARCHAR, opponents VARCHAR, h___a VARCHAR)
What was the Attendance when Lincoln City was the Opponents with H/A of A?
SELECT area_served FROM table_name_94 WHERE frequency = "100.3" AND on_air_id = "yass fm"
CREATE TABLE table_name_94 (area_served VARCHAR, frequency VARCHAR, on_air_id VARCHAR)
what Area has the frequency of 100.3 and an On-air ID of yass fm?
SELECT callsign FROM table_name_8 WHERE area_served = "tamworth" AND frequency = "0 88.9"
CREATE TABLE table_name_8 (callsign VARCHAR, area_served VARCHAR, frequency VARCHAR)
What is the Callsign with an Area of tamworth and frequency of 0 88.9?
SELECT purpose FROM table_name_62 WHERE area_served = "braidwood"
CREATE TABLE table_name_62 (purpose VARCHAR, area_served VARCHAR)
What is the Purpose of the Area Braidwood?
SELECT band FROM table_name_34 WHERE frequency = "0 99.7" AND area_served = "newcastle"
CREATE TABLE table_name_34 (band VARCHAR, frequency VARCHAR, area_served VARCHAR)
What Band has a Frequency of 0 99.7 in the Area of Newcastle?
SELECT frequency FROM table_name_5 WHERE area_served = "gosford" AND callsign = "2cfm"
CREATE TABLE table_name_5 (frequency VARCHAR, area_served VARCHAR, callsign VARCHAR)
What is the Frequency of Gosford when the Callsign of 2cfm?
SELECT on_air_id FROM table_name_24 WHERE frequency = "105.9" AND purpose = "commercial"
CREATE TABLE table_name_24 (on_air_id VARCHAR, frequency VARCHAR, purpose VARCHAR)
What is the On-air ID with the frequency of 105.9, and purpose of commercial?
SELECT time_retired FROM table_name_48 WHERE points < 11 AND laps = 74
CREATE TABLE table_name_48 (time_retired VARCHAR, points VARCHAR, laps VARCHAR)
What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?
SELECT time_retired FROM table_name_73 WHERE laps = 86 AND team = "hvm racing"
CREATE TABLE table_name_73 (time_retired VARCHAR, laps VARCHAR, team VARCHAR)
What Time/Retired has a Laps of 86 and the Team of HVM Racing?
SELECT catalog FROM table_name_19 WHERE region = "france"
CREATE TABLE table_name_19 (catalog VARCHAR, region VARCHAR)
What is the Catalog number in France?
SELECT format FROM table_name_99 WHERE catalog = "f4 87199"
CREATE TABLE table_name_99 (format VARCHAR, catalog VARCHAR)
What is the Format o Catalog F4 87199?
SELECT region FROM table_name_74 WHERE catalog = "885 973-4"
CREATE TABLE table_name_74 (region VARCHAR, catalog VARCHAR)
What is the Region of Catalog 885 973-4?
SELECT catalog FROM table_name_42 WHERE region = "france"
CREATE TABLE table_name_42 (catalog VARCHAR, region VARCHAR)
What is the Catalog number in the Region of France?
SELECT COUNT(attendance) FROM table_name_37 WHERE date = "1 november 1997"
CREATE TABLE table_name_37 (attendance VARCHAR, date VARCHAR)
How many people in total attended the game on 1 november 1997?
SELECT AVG(loses) FROM table_name_75 WHERE wins = 3 AND pos > 3
CREATE TABLE table_name_75 (loses INTEGER, wins VARCHAR, pos VARCHAR)
Wins of 3, and a Pos. larger than 3 is what average loses?
SELECT SUM(pos) FROM table_name_67 WHERE matches > 5
CREATE TABLE table_name_67 (pos INTEGER, matches INTEGER)
Matches larger than 5 is the sum of what position?
SELECT years FROM table_name_11 WHERE pct < 0.389 AND lost < 12 AND name = "dwane morrison"
CREATE TABLE table_name_11 (years VARCHAR, name VARCHAR, pct VARCHAR, lost VARCHAR)
What years did Dwane Morrison had a pct less than 0.389 and losses less than 12?
SELECT COUNT(seasons) FROM table_name_56 WHERE name = "charles c. farrell"
CREATE TABLE table_name_56 (seasons VARCHAR, name VARCHAR)
How many seasons did Charles C. Farrell coach?
SELECT AVG(pct) FROM table_name_4 WHERE lost > 7 AND name = "george felton"
CREATE TABLE table_name_4 (pct INTEGER, lost VARCHAR, name VARCHAR)
What's the average pct for George Felton when he had losses greater than 7?
SELECT margin_of_victory FROM table_name_38 WHERE runner_s__up = "josé maria cañizares"
CREATE TABLE table_name_38 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
Which Margin of victory has a Runner(s)-up of josé maria cañizares?
SELECT tournament FROM table_name_49 WHERE runner_s__up = "bob charles"
CREATE TABLE table_name_49 (tournament VARCHAR, runner_s__up VARCHAR)
Which Tournament has a Runner(s)-up of bob charles?
SELECT winning_score FROM table_name_4 WHERE date = "7 jun 1976"
CREATE TABLE table_name_4 (winning_score VARCHAR, date VARCHAR)
What was the winning score on 7 jun 1976?
SELECT winning_score FROM table_name_19 WHERE margin_of_victory = "1 stroke" AND date = "21 jun 1981"
CREATE TABLE table_name_19 (winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
Which Winning score has a Margin of victory of 1 stroke, and a Date of 21 jun 1981?
SELECT date FROM table_name_92 WHERE winning_score = –5(70 - 65 - 69 - 75 = 279)
CREATE TABLE table_name_92 (date VARCHAR, winning_score VARCHAR)
On which date was the Winning score –5 (70-65-69-75=279)?
SELECT runner_s__up FROM table_name_71 WHERE winning_score = –9(71 - 68 - 72 - 68 = 279)
CREATE TABLE table_name_71 (runner_s__up VARCHAR, winning_score VARCHAR)
Which Runner(s)-up has a Winning score of –9 (71-68-72-68=279)?
SELECT leading_scorer FROM table_name_97 WHERE attendance = "14,096"
CREATE TABLE table_name_97 (leading_scorer VARCHAR, attendance VARCHAR)
What is the leading scorer of the game with an attendance of 14,096?
SELECT leading_scorer FROM table_name_59 WHERE visitor = "celtics"
CREATE TABLE table_name_59 (leading_scorer VARCHAR, visitor VARCHAR)
What is the leading scorer of the game with the Celtics as the visiting team?
SELECT date FROM table_name_7 WHERE attendance = "19,183"
CREATE TABLE table_name_7 (date VARCHAR, attendance VARCHAR)
What is the date of the game with an attendance of 19,183?
SELECT time FROM table_name_58 WHERE track_number < 4 AND song_title = "you're my everything"
CREATE TABLE table_name_58 (time VARCHAR, track_number VARCHAR, song_title VARCHAR)
Name the time with track number less than 4 for you're my everything
SELECT orchestra FROM table_name_41 WHERE songwriter_s_ = "ted varnick"
CREATE TABLE table_name_41 (orchestra VARCHAR, songwriter_s_ VARCHAR)
Name the orchestra for ted varnick
SELECT songwriter_s_ FROM table_name_60 WHERE track_number = 12
CREATE TABLE table_name_60 (songwriter_s_ VARCHAR, track_number VARCHAR)
Name the songwriter for track number 12
SELECT MAX(round) FROM table_name_59 WHERE player = "dan federman" AND pick > 114
CREATE TABLE table_name_59 (round INTEGER, player VARCHAR, pick VARCHAR)
Player of dan federman, and a Pick larger than 114 involves which highest round?
SELECT round FROM table_name_65 WHERE college = "villanova"
CREATE TABLE table_name_65 (round VARCHAR, college VARCHAR)
College of villanova has what round?
SELECT pick FROM table_name_61 WHERE college = "boston college"
CREATE TABLE table_name_61 (pick VARCHAR, college VARCHAR)
College of boston college has what pick?
SELECT SUM(finalists) FROM table_name_47 WHERE years_won = "2008" AND _percentage_won > 33
CREATE TABLE table_name_47 (finalists INTEGER, years_won VARCHAR, _percentage_won VARCHAR)
How many finalists were there when the years won was 2008 and the won % was greater than 33?
SELECT game_site FROM table_name_37 WHERE record = "2-2"
CREATE TABLE table_name_37 (game_site VARCHAR, record VARCHAR)
Where was the game site for the game that had a packers record of 2-2?
SELECT final_score FROM table_name_42 WHERE game_site = "raymond james stadium"
CREATE TABLE table_name_42 (final_score VARCHAR, game_site VARCHAR)
What is the final score of the game that was at raymond james stadium?
SELECT match_report FROM table_name_12 WHERE opponent = "houston"
CREATE TABLE table_name_12 (match_report VARCHAR, opponent VARCHAR)
What is the match report for the game that was against Houston?
SELECT game_site FROM table_name_29 WHERE record = "2-3"
CREATE TABLE table_name_29 (game_site VARCHAR, record VARCHAR)
Where is the game site for the game that had a packers record of 2-3?
SELECT record FROM table_name_10 WHERE score = "118–105"
CREATE TABLE table_name_10 (record VARCHAR, score VARCHAR)
What was the Record of the game with a Score of 118–105?
SELECT record FROM table_name_85 WHERE score = "107–108"
CREATE TABLE table_name_85 (record VARCHAR, score VARCHAR)
What is the Record of the game with a Score of 107–108?
SELECT record FROM table_name_16 WHERE score = "113–103"
CREATE TABLE table_name_16 (record VARCHAR, score VARCHAR)
What was the Record during the game with a Score of 113–103?
SELECT SUM(points) FROM table_name_92 WHERE percentage_of_possible_points = "67.22%"
CREATE TABLE table_name_92 (points INTEGER, percentage_of_possible_points VARCHAR)
How many points have a percentage of possible points of 67.22%?
SELECT races FROM table_name_77 WHERE points > 123 AND driver = "fernando alonso" AND percentage_of_possible_points = "74.44%"
CREATE TABLE table_name_77 (races VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, driver VARCHAR)
Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%?
SELECT SUM(season) FROM table_name_31 WHERE driver = "fernando alonso" AND percentage_of_possible_points = "64.12%" AND points < 109
CREATE TABLE table_name_31 (season INTEGER, points VARCHAR, driver VARCHAR, percentage_of_possible_points VARCHAR)
How many seasons have fernando alonso as the driver, and a percentage of possible points of 64.12% and points less than 109?
SELECT remixed_by FROM table_name_97 WHERE year > 1999
CREATE TABLE table_name_97 (remixed_by VARCHAR, year INTEGER)
Who remixed the version after 1999?