answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MAX(laps) FROM table_name_58 WHERE time_retired = "+6.643" AND grid < 2
CREATE TABLE table_name_58 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
What is the highest number of laps with a time of +6.643 and grid less than 2?
SELECT dates_active FROM table_name_93 WHERE deaths = "204"
CREATE TABLE table_name_93 (dates_active VARCHAR, deaths VARCHAR)
When was there 204 deaths?
SELECT date_of_birth FROM table_name_74 WHERE bowling_style = "right arm fast"
CREATE TABLE table_name_74 (date_of_birth VARCHAR, bowling_style VARCHAR)
When is the birth date of player with right arm fast style?
SELECT batting_style FROM table_name_32 WHERE bowling_style = "right arm medium" AND player = "stuart williams"
CREATE TABLE table_name_32 (batting_style VARCHAR, bowling_style VARCHAR, player VARCHAR)
What batting style corresponds to a bowling style of right arm medium for Stuart Williams?
SELECT date_of_birth FROM table_name_11 WHERE player = "mervyn dillon"
CREATE TABLE table_name_11 (date_of_birth VARCHAR, player VARCHAR)
What is the birth date for Mervyn Dillon?
SELECT position FROM table_name_98 WHERE player = "michael ruffin"
CREATE TABLE table_name_98 (position VARCHAR, player VARCHAR)
What position does Michael Ruffin play?
SELECT nationality FROM table_name_72 WHERE position = "center"
CREATE TABLE table_name_72 (nationality VARCHAR, position VARCHAR)
What is the nationality of the center?
SELECT nationality FROM table_name_30 WHERE years_for_jazz = "1977-79"
CREATE TABLE table_name_30 (nationality VARCHAR, years_for_jazz VARCHAR)
What is the nationality of the Jazz player 1977-79?
SELECT school_club_team FROM table_name_53 WHERE nationality = "united states" AND position = "guard"
CREATE TABLE table_name_53 (school_club_team VARCHAR, nationality VARCHAR, position VARCHAR)
Tell me the School/Club team of the player from the United States that play'de guard?
SELECT nationality FROM table_name_69 WHERE player = "bill robinzine"
CREATE TABLE table_name_69 (nationality VARCHAR, player VARCHAR)
What nationality is Bill Robinzine?
SELECT AVG(season) FROM table_name_95 WHERE position = "10th"
CREATE TABLE table_name_95 (season INTEGER, position VARCHAR)
What is the average of seasons for 10th place finishes?
SELECT season FROM table_name_81 WHERE position = "2nd"
CREATE TABLE table_name_81 (season VARCHAR, position VARCHAR)
What season was there a 2nd place finish?
SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th"
CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR)
What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?
SELECT streak FROM table_name_61 WHERE date = "april 2"
CREATE TABLE table_name_61 (streak VARCHAR, date VARCHAR)
What was the streak on April 2?
SELECT visitor FROM table_name_9 WHERE leading_scorer = "jones : 20"
CREATE TABLE table_name_9 (visitor VARCHAR, leading_scorer VARCHAR)
Who was the visiting team when the leading scorer was Jones : 20?
SELECT viewers__in_millions_ FROM table_name_69 WHERE season = "1"
CREATE TABLE table_name_69 (viewers__in_millions_ VARCHAR, season VARCHAR)
How many people watched season 1?
SELECT SUM(pl_gp) FROM table_name_44 WHERE pick__number < 122 AND player = "rob flockhart" AND rd__number < 3
CREATE TABLE table_name_44 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR, player VARCHAR)
What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3?
SELECT MIN(reg_gp) FROM table_name_69 WHERE rd__number > 2 AND pick__number = 80 AND pl_gp > 0
CREATE TABLE table_name_69 (reg_gp INTEGER, pl_gp VARCHAR, rd__number VARCHAR, pick__number VARCHAR)
What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0?
SELECT MAX(fips_code) FROM table_name_58 WHERE coordinates = "41.827547, -74.118478" AND land___sq_mi__ < 1.196
CREATE TABLE table_name_58 (fips_code INTEGER, coordinates VARCHAR, land___sq_mi__ VARCHAR)
Name the highest FIPS code for coordinates of 41.827547, -74.118478 and land less than 1.196
SELECT cdp_name FROM table_name_58 WHERE fips_code = 3659708
CREATE TABLE table_name_58 (cdp_name VARCHAR, fips_code VARCHAR)
Name the CDP name for FIPS code of 3659708
SELECT fips_code FROM table_name_36 WHERE county = "wyoming" AND cdp_name = "pike"
CREATE TABLE table_name_36 (fips_code VARCHAR, county VARCHAR, cdp_name VARCHAR)
Name the FIPS code for county of wyoming and CDP name of pike
SELECT SUM(land___sq_mi__) FROM table_name_80 WHERE ansi_code = 2390496 AND pop__2010_ < 7 OFFSET 284
CREATE TABLE table_name_80 (land___sq_mi__ INTEGER, ansi_code VARCHAR, pop__2010_ VARCHAR)
Name the sum of land for ANSI code of 2390496 and population less than 7,284
SELECT COUNT(sack) FROM table_name_46 WHERE tackles > 1 AND assisted < 3 AND yards > 0
CREATE TABLE table_name_46 (sack VARCHAR, yards VARCHAR, tackles VARCHAR, assisted VARCHAR)
How many sacks for the player with over 1 tackle, under 3 assisted tackles, and over 0 yards?
SELECT design FROM table_name_33 WHERE denomination = "$1.18"
CREATE TABLE table_name_33 (design VARCHAR, denomination VARCHAR)
What stamp design has a denomination of $1.18?
SELECT denomination FROM table_name_34 WHERE date_of_issue = "8 january 2009"
CREATE TABLE table_name_34 (denomination VARCHAR, date_of_issue VARCHAR)
What is the denomination for the stamp issued 8 January 2009?
SELECT date_of_issue FROM table_name_43 WHERE design = "john belisle, kosta tsetsekas"
CREATE TABLE table_name_43 (date_of_issue VARCHAR, design VARCHAR)
What date was the John Belisle, Kosta Tsetsekas stamp issued?
SELECT first_day_cover_cancellation FROM table_name_31 WHERE design = "karen smith design"
CREATE TABLE table_name_31 (first_day_cover_cancellation VARCHAR, design VARCHAR)
What is the first day cover cancellation for the Karen Smith Design stamp?
SELECT date FROM table_name_37 WHERE competition = "2008 africa cup of nations"
CREATE TABLE table_name_37 (date VARCHAR, competition VARCHAR)
What is the date of Competition of 2008 africa cup of nations?
SELECT score FROM table_name_88 WHERE date = "22 january 2008"
CREATE TABLE table_name_88 (score VARCHAR, date VARCHAR)
What is the score on 22 january 2008?
SELECT venue FROM table_name_86 WHERE date = "22 january 2008"
CREATE TABLE table_name_86 (venue VARCHAR, date VARCHAR)
Which venue was used 22 january 2008?
SELECT result FROM table_name_47 WHERE score = "1–0" AND competition = "2014 fifa world cup qualification"
CREATE TABLE table_name_47 (result VARCHAR, score VARCHAR, competition VARCHAR)
What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification?
SELECT date FROM table_name_26 WHERE competition = "2014 fifa world cup qualification" AND score = "1–0"
CREATE TABLE table_name_26 (date VARCHAR, competition VARCHAR, score VARCHAR)
What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0?
SELECT object_type FROM table_name_77 WHERE right_ascension___j2000__ = "11h10m42.8s"
CREATE TABLE table_name_77 (object_type VARCHAR, right_ascension___j2000__ VARCHAR)
what is the object type when the right ascension (j2000) is 11h10m42.8s?
SELECT declination___j2000__ FROM table_name_90 WHERE ngc_number > 3593
CREATE TABLE table_name_90 (declination___j2000__ VARCHAR, ngc_number INTEGER)
what is the declination (j2000) when the ngc number is higher than 3593?
SELECT constellation FROM table_name_24 WHERE object_type = "spiral galaxy" AND ngc_number < 3593 AND right_ascension___j2000__ = "11h05m48.9s"
CREATE TABLE table_name_24 (constellation VARCHAR, right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s?
SELECT right_ascension___j2000__ FROM table_name_41 WHERE ngc_number = 3576
CREATE TABLE table_name_41 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR)
what is the right ascension (j2000) when the ngc number is 3576?
SELECT driver FROM table_name_18 WHERE grid = "18"
CREATE TABLE table_name_18 (driver VARCHAR, grid VARCHAR)
Who is the driver when the grid is 18?
SELECT time_retired FROM table_name_42 WHERE grid = "19"
CREATE TABLE table_name_42 (time_retired VARCHAR, grid VARCHAR)
What is the time/retired when the grid is 19?
SELECT home_team AS score FROM table_name_56 WHERE away_team = "st kilda"
CREATE TABLE table_name_56 (home_team VARCHAR, away_team VARCHAR)
What was St Kilda's home team opponents score?
SELECT date FROM table_name_27 WHERE home_team = "hawthorn"
CREATE TABLE table_name_27 (date VARCHAR, home_team VARCHAR)
When did Hawthorn play at home?
SELECT crowd FROM table_name_18 WHERE away_team = "st kilda"
CREATE TABLE table_name_18 (crowd VARCHAR, away_team VARCHAR)
How many people were in attendance at St Kilda's away match?
SELECT date FROM table_name_40 WHERE description = "british rail class 111 tslrb"
CREATE TABLE table_name_40 (date VARCHAR, description VARCHAR)
What is the date of the British Rail class 111 tslrb description?
SELECT number_ & _name FROM table_name_65 WHERE date = "undergoing overhaul, restoration or repairs"
CREATE TABLE table_name_65 (number_ VARCHAR, _name VARCHAR, date VARCHAR)
What is the number & name with an Undergoing overhaul, restoration or repairs date?
SELECT number_ & _name FROM table_name_78 WHERE date = "1958"
CREATE TABLE table_name_78 (number_ VARCHAR, _name VARCHAR, date VARCHAR)
What is the number & name of the livery in 1958?
SELECT MIN(rank) FROM table_name_71 WHERE silver > 5 AND total = 29 AND bronze < 16
CREATE TABLE table_name_71 (rank INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)
What is the lowest rank for a nation with 29 total medals, over 5 silvers, and under 16 bronze?
SELECT MAX(rank) FROM table_name_39 WHERE gold = 26 AND silver > 17
CREATE TABLE table_name_39 (rank INTEGER, gold VARCHAR, silver VARCHAR)
What is the highest rank for a nation with 26 golds and over 17 silvers?
SELECT catalog FROM table_name_15 WHERE date = "november 16, 2004"
CREATE TABLE table_name_15 (catalog VARCHAR, date VARCHAR)
What is the catalog number with the date November 16, 2004?
SELECT date FROM table_name_82 WHERE label = "sony bmg, epic" AND catalog = "5187482"
CREATE TABLE table_name_82 (date VARCHAR, label VARCHAR, catalog VARCHAR)
What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482?
SELECT catalog FROM table_name_61 WHERE region = "canada" AND format = "cd/dvd"
CREATE TABLE table_name_61 (catalog VARCHAR, region VARCHAR, format VARCHAR)
Which Catalog has a Region of Canada and a Format of cd/dvd?
SELECT date FROM table_name_54 WHERE region = "europe" AND format = "cd"
CREATE TABLE table_name_54 (date VARCHAR, region VARCHAR, format VARCHAR)
What is the date for a CD format with a Region of Europe?
SELECT nationality FROM table_name_28 WHERE school_club_team = "la salle"
CREATE TABLE table_name_28 (nationality VARCHAR, school_club_team VARCHAR)
What nationality is the la salle team?
SELECT nationality FROM table_name_24 WHERE player = "jim les"
CREATE TABLE table_name_24 (nationality VARCHAR, player VARCHAR)
What's the nationality of jim les?
SELECT player FROM table_name_24 WHERE nationality = "spain"
CREATE TABLE table_name_24 (player VARCHAR, nationality VARCHAR)
Which player has a nationality of spain?
SELECT position FROM table_name_75 WHERE school_club_team = "nebraska"
CREATE TABLE table_name_75 (position VARCHAR, school_club_team VARCHAR)
What position is listed for the nebraska team?
SELECT home FROM table_name_95 WHERE decision = "ward" AND date = "october 24"
CREATE TABLE table_name_95 (home VARCHAR, decision VARCHAR, date VARCHAR)
On October 24, who played at home when there was a decision of Ward?
SELECT laps FROM table_name_53 WHERE grid = 8
CREATE TABLE table_name_53 (laps VARCHAR, grid VARCHAR)
How many laps are there for grid 8?
SELECT driver FROM table_name_46 WHERE grid = 8
CREATE TABLE table_name_46 (driver VARCHAR, grid VARCHAR)
What is the driver for Grid 8?
SELECT AVG(grid) FROM table_name_29 WHERE driver = "clay regazzoni"
CREATE TABLE table_name_29 (grid INTEGER, driver VARCHAR)
What is the average grid for Clay Regazzoni?
SELECT AVG(laps) FROM table_name_6 WHERE grid < 21 AND driver = "renzo zorzi"
CREATE TABLE table_name_6 (laps INTEGER, grid VARCHAR, driver VARCHAR)
What is the average laps for the grid smaller than 21 for Renzo Zorzi?
SELECT AVG(laps) FROM table_name_87 WHERE grid = 9
CREATE TABLE table_name_87 (laps INTEGER, grid VARCHAR)
What is the average laps for Grid 9?
SELECT constituted FROM table_name_86 WHERE party = "labor" AND name = "scullin ministry"
CREATE TABLE table_name_86 (constituted VARCHAR, party VARCHAR, name VARCHAR)
Name the constituted for labor and scullin ministry
SELECT away_team FROM table_name_70 WHERE home_team = "south melbourne"
CREATE TABLE table_name_70 (away_team VARCHAR, home_team VARCHAR)
Who was South Melbourne's away team opponents?
SELECT leading_scorer FROM table_name_62 WHERE date = "november 2, 2007"
CREATE TABLE table_name_62 (leading_scorer VARCHAR, date VARCHAR)
Who was the leading scorer on November 2, 2007?
SELECT COUNT(attendance) FROM table_name_24 WHERE home = "hawks"
CREATE TABLE table_name_24 (attendance VARCHAR, home VARCHAR)
What was the attendance when the Hawks played?
SELECT AVG(bronze) FROM table_name_39 WHERE "total" > 72 AND nation = "total" AND silver < 112
CREATE TABLE table_name_39 (bronze INTEGER, silver VARCHAR, nation VARCHAR)
How many bronzes are there for the total nation with 112 silver and a total of 72?
SELECT MAX(bronze) FROM table_name_53 WHERE total < 82 AND nation = "san marino" AND gold < 3
CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR)
What is the highest bronze for San Marino with less than 82 total and less than 3 golds?
SELECT COUNT(gold) FROM table_name_92 WHERE bronze > 11 AND total = 29
CREATE TABLE table_name_92 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
How many golds were there when there was more than 11 bronze and 29 in total?
SELECT AVG(bronze) FROM table_name_66 WHERE silver < 7 AND nation = "montenegro" AND gold > 4
CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR)
What was Montenegro's average bronze with less than 7 silver and more than 4 golds?
SELECT COUNT(gold) FROM table_name_71 WHERE silver > 15 AND nation = "iceland"
CREATE TABLE table_name_71 (gold VARCHAR, silver VARCHAR, nation VARCHAR)
How many golds were there for Iceland with more than 15 silver?
SELECT SUM(total) FROM table_name_97 WHERE silver < 10 AND nation = "andorra" AND bronze > 5
CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)
What was Andorra's total with less than 10 silver and more than 5 bronze?
SELECT roll FROM table_name_45 WHERE decile = "6" AND name = "poroti school"
CREATE TABLE table_name_45 (roll VARCHAR, decile VARCHAR, name VARCHAR)
What is the roll number of Poroti school, which has a 6 decile?
SELECT roll FROM table_name_76 WHERE authority = "state" AND area = "waiotira"
CREATE TABLE table_name_76 (roll VARCHAR, authority VARCHAR, area VARCHAR)
What is the roll number of the school with a state authority in Waiotira?
SELECT area FROM table_name_33 WHERE decile = "2" AND roll = "222"
CREATE TABLE table_name_33 (area VARCHAR, decile VARCHAR, roll VARCHAR)
What is the area of the school with a decile of 2 and a roll number 222?
SELECT decile FROM table_name_38 WHERE area = "purua"
CREATE TABLE table_name_38 (decile VARCHAR, area VARCHAR)
WHat is the decile of the school in Purua?
SELECT away_team AS score FROM table_name_2 WHERE home_team = "essendon"
CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR)
what is the away team score when the home team is essendon?
SELECT COUNT(tied) FROM table_name_98 WHERE total_games < 1183 AND years = 121 AND lost > 541
CREATE TABLE table_name_98 (tied VARCHAR, lost VARCHAR, total_games VARCHAR, years VARCHAR)
How many total ties had less than 1183 total games, 121 years, and more than 541 losses?
SELECT SUM(lost) FROM table_name_2 WHERE years > 122 AND total_games > 1244
CREATE TABLE table_name_2 (lost INTEGER, years VARCHAR, total_games VARCHAR)
How many losses had more than 122 years and more than 1244 total games?
SELECT MIN(earnings__) AS $__ FROM table_name_65 WHERE wins > 24
CREATE TABLE table_name_65 (earnings__ INTEGER, wins INTEGER)
What is the lowest earnings for a player with over 24 wins?
SELECT constructor FROM table_name_28 WHERE laps = 45 AND qual < 142.29 AND driver = "chuck weyant"
CREATE TABLE table_name_28 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, qual VARCHAR)
Which constructor has Chuck Weyant as a driver, 45 laps, and a qual of less than 142.29?
SELECT time_retired FROM table_name_75 WHERE qual = 144.02
CREATE TABLE table_name_75 (time_retired VARCHAR, qual VARCHAR)
Which time/retired has a qual of 144.02?
SELECT rounds FROM table_name_63 WHERE driver = "vic elford" AND engine = "ford cosworth dfv 3.0 v8"
CREATE TABLE table_name_63 (rounds VARCHAR, driver VARCHAR, engine VARCHAR)
Which rounds did Vic Elford with a Ford cosworth dfv 3.0 v8 engine have?
SELECT chassis FROM table_name_93 WHERE rounds = "all" AND tyre = "g" AND driver = "bruce mclaren"
CREATE TABLE table_name_93 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, tyre VARCHAR)
What is the chassis for Bruce Mclaren with all rounds and a g tyre?
SELECT nhl_team FROM table_name_59 WHERE college_junior_club_team__league_ = "mississauga icedogs (ohl)"
CREATE TABLE table_name_59 (nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR)
What is the NHL team that has a team (League) of Mississauga Icedogs (ohl)?
SELECT COUNT(crowd) FROM table_name_97 WHERE home_team = "melbourne victory"
CREATE TABLE table_name_97 (crowd VARCHAR, home_team VARCHAR)
Im the match where the home team is Melbourne Victory, what was the crowd attendance?
SELECT score FROM table_name_31 WHERE round = "playoff"
CREATE TABLE table_name_31 (score VARCHAR, round VARCHAR)
What was the score of the match that took place in the playoff round?
SELECT crowd FROM table_name_79 WHERE away_team = "newcastle jets"
CREATE TABLE table_name_79 (crowd VARCHAR, away_team VARCHAR)
In the match where newcastle jets was the away team, what was the crown attendance?
SELECT opponent FROM table_name_97 WHERE date = "1990-10-21"
CREATE TABLE table_name_97 (opponent VARCHAR, date VARCHAR)
What team was the opponent on 1990-10-21?
SELECT competition FROM table_name_42 WHERE year < 1987
CREATE TABLE table_name_42 (competition VARCHAR, year INTEGER)
What was the competition earlier than 1987?
SELECT event FROM table_name_16 WHERE placed = "bronze" AND year < 1987
CREATE TABLE table_name_16 (event VARCHAR, placed VARCHAR, year VARCHAR)
What event placed bronze earlier than 1987?
SELECT score FROM table_name_20 WHERE date = "november 13, 2005"
CREATE TABLE table_name_20 (score VARCHAR, date VARCHAR)
What was the score for the match on November 13, 2005?
SELECT tournament FROM table_name_70 WHERE surface = "clay" AND date = "july 17, 2005"
CREATE TABLE table_name_70 (tournament VARCHAR, surface VARCHAR, date VARCHAR)
What tournament took place on July 17, 2005, with a clay surface?
SELECT MAX(grid) FROM table_name_8 WHERE laps > 72
CREATE TABLE table_name_8 (grid INTEGER, laps INTEGER)
What is the highest Grid with over 72 laps?
SELECT AVG(laps) FROM table_name_78 WHERE time_retired = "+1:14.801"
CREATE TABLE table_name_78 (laps INTEGER, time_retired VARCHAR)
What is the average number of laps associated with a Time/Retired of +1:14.801?
SELECT date FROM table_name_64 WHERE circuit = "wanneroo park"
CREATE TABLE table_name_64 (date VARCHAR, circuit VARCHAR)
What date is the circuit at wanneroo park?
SELECT team FROM table_name_5 WHERE race_title = "calder"
CREATE TABLE table_name_5 (team VARCHAR, race_title VARCHAR)
What team has a title of calder?
SELECT laps FROM table_name_39 WHERE time_retired = "+1:08.491"
CREATE TABLE table_name_39 (laps VARCHAR, time_retired VARCHAR)
Tell me the Laps for time/retired of +1:08.491
SELECT MAX(laps) FROM table_name_56 WHERE constructor = "toyota" AND grid = 13
CREATE TABLE table_name_56 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
Tell me the highest laps for toyota and grid of 13
SELECT driver FROM table_name_48 WHERE laps = 20
CREATE TABLE table_name_48 (driver VARCHAR, laps VARCHAR)
I want the Driver with Laps of 20
SELECT SUM(grid) FROM table_name_84 WHERE driver = "giancarlo fisichella"
CREATE TABLE table_name_84 (grid INTEGER, driver VARCHAR)
Tell me the sum of Grid for giancarlo fisichella
SELECT date FROM table_name_97 WHERE venue = "vfl park"
CREATE TABLE table_name_97 (date VARCHAR, venue VARCHAR)
What date was the venue at VFL park?