answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT last_season FROM table_name_65 WHERE team = "worcester wolves"
What is the last season the Worcester Wolves played?
CREATE TABLE table_name_65 (last_season VARCHAR, team VARCHAR)
SELECT MIN(losses) FROM table_name_24 WHERE gains < 0
Can you tell me the lowest Losses that has the Gains smaller than 0?
CREATE TABLE table_name_24 (losses INTEGER, gains INTEGER)
SELECT violent_crime FROM table_1818254_1 WHERE robbery = "201.4"
What was the violent crime rate in the city where the robbery rate was 201.4?
CREATE TABLE table_1818254_1 (violent_crime VARCHAR, robbery VARCHAR)
SELECT type FROM table_name_40 WHERE engine = "v16"
What type of car has the v16 engine?
CREATE TABLE table_name_40 (type VARCHAR, engine VARCHAR)
SELECT player FROM table_name_6 WHERE country = "united states" AND score = 73 - 76 - 72 - 66 = 287
What is Player, when Country is United States, and when Score is 73-76-72-66=287?
CREATE TABLE table_name_6 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT region_1 FROM table_1337525_1 WHERE region_4 = "TBA" AND complete_series = "The Complete Eighth Series"
What is the region 1 where region 4 is tba is the complete eighth series?
CREATE TABLE table_1337525_1 (region_1 VARCHAR, region_4 VARCHAR, complete_series VARCHAR)
SELECT years FROM table_name_72 WHERE type_code = "cubic centimetres (cuin) v8 ( m273 )"
Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?
CREATE TABLE table_name_72 (years VARCHAR, type_code VARCHAR)
SELECT nationality FROM table_1965650_4 WHERE player = "Steve Langdon"
What's Steve Langdon's naitionality?
CREATE TABLE table_1965650_4 (nationality VARCHAR, player VARCHAR)
SELECT stadium FROM table_name_48 WHERE city = "halifax"
What stadium is located in Halifax?
CREATE TABLE table_name_48 (stadium VARCHAR, city VARCHAR)
SELECT rank FROM table_name_41 WHERE lane = 4
What rank was the swimmer in lane 4?
CREATE TABLE table_name_41 (rank VARCHAR, lane VARCHAR)
SELECT away_captain FROM table_name_83 WHERE result = "draw" AND date = "12,13,14 jun 1902"
Who was the Away captain that played on 12,13,14 Jun 1902 which resulted in a draw?
CREATE TABLE table_name_83 (away_captain VARCHAR, result VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_13 WHERE score = "6–3, 2–6, 6–3"
What Tournament had a Score of 6–3, 2–6, 6–3?
CREATE TABLE table_name_13 (tournament VARCHAR, score VARCHAR)
SELECT score FROM table_name_27 WHERE place = "t9" AND country = "sweden"
What was sweden's score in T9 place?
CREATE TABLE table_name_27 (score VARCHAR, place VARCHAR, country VARCHAR)
SELECT high_rebounds FROM table_name_9 WHERE high_assists = "bryant (7)" AND team = "@ utah"
What is the High rebounds with a High assists with bryant (7), and a Team of @ utah?
CREATE TABLE table_name_9 (high_rebounds VARCHAR, high_assists VARCHAR, team VARCHAR)
SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)
How many cars have a larger accelerate than the car with the largest horsepower?
CREATE TABLE CARS_DATA (Accelerate INTEGER, Horsepower VARCHAR)
SELECT result FROM table_name_13 WHERE matches = "6"
What was the result when there were 6 matches?
CREATE TABLE table_name_13 (result VARCHAR, matches VARCHAR)
SELECT MIN(week) FROM table_name_66 WHERE attendance = 51 OFFSET 499
What is the lowest week that has 51,499 as the attendance?
CREATE TABLE table_name_66 (week INTEGER, attendance VARCHAR)
SELECT SUM(bronze) FROM table_name_19 WHERE gold = 1 AND silver < 1
What is the sum of bronzes for countries with 1 gold and under 1 silver?
CREATE TABLE table_name_19 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT latin FROM table_25401_15 WHERE catalan = "mar"
What is every entry for Latin when Catalan is Mar?
CREATE TABLE table_25401_15 (latin VARCHAR, catalan VARCHAR)
SELECT issue FROM table_name_50 WHERE spoofed_title = "the crockford files"
What issue was the Spoofed Title of the crockford files in?
CREATE TABLE table_name_50 (issue VARCHAR, spoofed_title VARCHAR)
SELECT no_in_series FROM table_25276528_2 WHERE written_by = "Kim Weiskopf and Jeff Franklin"
Kim Weiskopf and Jeff Franklin wrote all the no. in series.
CREATE TABLE table_25276528_2 (no_in_series VARCHAR, written_by VARCHAR)
SELECT nationality FROM table_name_65 WHERE player = "jani hakanpaa"
What is the nationality of player Jani Hakanpaa?
CREATE TABLE table_name_65 (nationality VARCHAR, player VARCHAR)
SELECT date FROM table_name_1 WHERE week > 4 AND venue = "city stadium" AND attendance > 14 OFFSET 297
Which date's week was more than 4 with the venue being City Stadium and where the attendance was more than 14,297?
CREATE TABLE table_name_1 (date VARCHAR, attendance VARCHAR, week VARCHAR, venue VARCHAR)
SELECT venue FROM table_name_70 WHERE year > 2006 AND position = "7th" AND notes = "heptathlon"
What is the Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Position 7th?
CREATE TABLE table_name_70 (venue VARCHAR, notes VARCHAR, year VARCHAR, position VARCHAR)
SELECT MIN(position) FROM table_name_21 WHERE lost > 15 AND team = "cheadle town" AND drawn > 8
What is the lowest Position, when Lost is greater than 15, when Team is Cheadle Town, and when Drawn is greater than 8?
CREATE TABLE table_name_21 (position INTEGER, drawn VARCHAR, lost VARCHAR, team VARCHAR)
SELECT regulations FROM table_name_84 WHERE winning_constructor = "hudson"
What regulations have hudson as the winning constructor?
CREATE TABLE table_name_84 (regulations VARCHAR, winning_constructor VARCHAR)
SELECT COUNT(road_number) FROM table_name_18 WHERE year < 1922
How many road numbers are before 1922?
CREATE TABLE table_name_18 (road_number VARCHAR, year INTEGER)
SELECT opponent FROM table_name_51 WHERE november > 26 AND game > 18
Can you tell me the Opponent that has the November larger than 26, and the Game larger than 18?
CREATE TABLE table_name_51 (opponent VARCHAR, november VARCHAR, game VARCHAR)
SELECT venue FROM table_17120964_8 WHERE result = "Lost 3-4"
What was the venue of the game that was lost 3-4?
CREATE TABLE table_17120964_8 (venue VARCHAR, result VARCHAR)
SELECT frequency FROM table_name_33 WHERE origin = "bus station" AND number = 3
What is the frequency of number 3 with a bus station origin?
CREATE TABLE table_name_33 (frequency VARCHAR, origin VARCHAR, number VARCHAR)
SELECT player FROM table_28846752_13 WHERE average = "35.42"
Who is the player with an average of 35.42?
CREATE TABLE table_28846752_13 (player VARCHAR, average VARCHAR)
SELECT coefficient FROM table_name_16 WHERE parts_per_example = "2 ppt"
What is the Coefficient of 2 ppt?
CREATE TABLE table_name_16 (coefficient VARCHAR, parts_per_example VARCHAR)
SELECT country FROM table_name_53 WHERE to_par > 8 AND player = "andy north"
What is Andy North with a To par greater than 8 Country?
CREATE TABLE table_name_53 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT developer FROM table_name_97 WHERE publisher = "rockstar games"
Who does Rockstar Games use as a developer?
CREATE TABLE table_name_97 (developer VARCHAR, publisher VARCHAR)
SELECT third_vice_skip FROM table_name_13 WHERE second = "éric sylvain"
Which Third/Vice skip has a Second of éric sylvain?
CREATE TABLE table_name_13 (third_vice_skip VARCHAR, second VARCHAR)
SELECT total_prize_pool FROM table_2715355_1 WHERE location = "New Orleans"
What was the prize pool in New Orleans?
CREATE TABLE table_2715355_1 (total_prize_pool VARCHAR, location VARCHAR)
SELECT MIN(year) FROM table_name_9 WHERE result = "12th"
What was the first year he placed 12th
CREATE TABLE table_name_9 (year INTEGER, result VARCHAR)
SELECT date FROM table_name_45 WHERE transfer_fee = "£8.8m"
Which Date had a Transfer fee of £8.8m?
CREATE TABLE table_name_45 (date VARCHAR, transfer_fee VARCHAR)
SELECT heat_ & _lane FROM table_name_72 WHERE time = "1:01.12"
What Heat & Lane is the person who has a time of 1:01.12?
CREATE TABLE table_name_72 (heat_ VARCHAR, _lane VARCHAR, time VARCHAR)
SELECT third FROM table_name_40 WHERE runner_up = "paris saint-germain" AND edition < 5
I want to know the third with runner of paris saint-germain and edition less than 5
CREATE TABLE table_name_40 (third VARCHAR, runner_up VARCHAR, edition VARCHAR)
SELECT method FROM table_name_40 WHERE time = "3:20"
What is Method, when Time is "3:20"?
CREATE TABLE table_name_40 (method VARCHAR, time VARCHAR)
SELECT engine FROM table_1181375_1 WHERE number_range = "8–9, 13–16"
what's the engine where number range is 8–9, 13–16
CREATE TABLE table_1181375_1 (engine VARCHAR, number_range VARCHAR)
SELECT socialist_labor_ticket FROM table_name_60 WHERE liberal_ticket = "arthur levitt"
Who was on the Socialist Labor ticket that had Arthur Levitt as the Liberal Ticket?
CREATE TABLE table_name_60 (socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT COUNT(date) FROM table_23248869_8 WHERE high_points = "David Lee (30)"
How many times was the high points david lee (30)
CREATE TABLE table_23248869_8 (date VARCHAR, high_points VARCHAR)
SELECT event FROM table_name_2 WHERE year = 2006
What event was in 2006?
CREATE TABLE table_name_2 (event VARCHAR, year VARCHAR)
SELECT team FROM table_name_48 WHERE finish = "19"
What is the name of the team with a finish of 19?
CREATE TABLE table_name_48 (team VARCHAR, finish VARCHAR)
SELECT AVG(year) FROM table_name_19 WHERE chassis = "lotus 25"
What is the year of the Lotus 25 chassis?
CREATE TABLE table_name_19 (year INTEGER, chassis VARCHAR)
SELECT model FROM table_name_54 WHERE specification = "dl-066"
Name the model for specification of dl-066
CREATE TABLE table_name_54 (model VARCHAR, specification VARCHAR)
SELECT class FROM table_name_26 WHERE part_4 = "geholfen gedroschen"
What is the class for Geholfen Gedroschen in part 4?
CREATE TABLE table_name_26 (class VARCHAR, part_4 VARCHAR)
SELECT coding FROM table_name_48 WHERE variant_id = "abd'1a 3"
Which coding's variant id is abd'1a 3?
CREATE TABLE table_name_48 (coding VARCHAR, variant_id VARCHAR)
SELECT _percentage_hindu FROM table_name_74 WHERE area = "azad kashmir"
What percentage of Azad Kashmir is Hindu?
CREATE TABLE table_name_74 (_percentage_hindu VARCHAR, area VARCHAR)
SELECT winners FROM table_1139835_3 WHERE season_result = "7th"
who is the winners where season result is 7th
CREATE TABLE table_1139835_3 (winners VARCHAR, season_result VARCHAR)
SELECT position FROM table_name_2 WHERE pick < 20
What position has a pick less than 20?
CREATE TABLE table_name_2 (position VARCHAR, pick INTEGER)
SELECT time_retired FROM table_name_80 WHERE grid < 9 AND laps = 21 AND rider = "jeremy mcwilliams"
What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps?
CREATE TABLE table_name_80 (time_retired VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT COUNT(reverse) FROM table_12284476_8 WHERE series = "III series"
how many reverse with series being iii series
CREATE TABLE table_12284476_8 (reverse VARCHAR, series VARCHAR)
SELECT COUNT(wins) FROM table_name_28 WHERE top_25 > 6 AND cuts_made < 13
In the tournament with more than 6 top-25's and less than 13 cuts made, how many wins were there?
CREATE TABLE table_name_28 (wins VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)
SELECT MIN(points) FROM table_name_16 WHERE driver = "sébastien bourdais" AND laps < 63
What were Sébastien Bourdais' lowest points when there were less than 63 laps?
CREATE TABLE table_name_16 (points INTEGER, driver VARCHAR, laps VARCHAR)
SELECT power__kw_ FROM table_name_74 WHERE location = "davao"
What is the power (kW) of Davao?
CREATE TABLE table_name_74 (power__kw_ VARCHAR, location VARCHAR)
SELECT COUNT(f_laps) FROM table_26400438_1 WHERE poles = 12
How many times did he hold 12 poles?
CREATE TABLE table_26400438_1 (f_laps VARCHAR, poles VARCHAR)
SELECT COUNT(start_of_stage) FROM table_275506_1 WHERE year = "2006"
How many entries for start of stage occur in the year 2006?
CREATE TABLE table_275506_1 (start_of_stage VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_17 WHERE opponent = "@ florida panthers" AND game > 58
Which Points have an Opponent of @ florida panthers, and a Game larger than 58?
CREATE TABLE table_name_17 (points INTEGER, opponent VARCHAR, game VARCHAR)
SELECT school FROM table_name_34 WHERE city = "brookville"
What school is in Brookville?
CREATE TABLE table_name_34 (school VARCHAR, city VARCHAR)
SELECT opponent FROM table_name_89 WHERE h_a_n = "h" AND score = "120-99"
What is the Opponent of the game with a H/A/N of H and Score of 120-99?
CREATE TABLE table_name_89 (opponent VARCHAR, h_a_n VARCHAR, score VARCHAR)
SELECT years FROM table_name_18 WHERE actor = "claudia ruffo"
What years have claudia ruffo as the actor?
CREATE TABLE table_name_18 (years VARCHAR, actor VARCHAR)
SELECT COUNT(start) FROM table_name_21 WHERE finish < 4
Name the total number of start when finish is less than 4
CREATE TABLE table_name_21 (start VARCHAR, finish INTEGER)
SELECT college FROM table_name_46 WHERE overall > 187 AND round < 7 AND position = "defensive end"
Name the college that has an overall larger than 187 and a round smaller than 7 for the defensive end position.
CREATE TABLE table_name_46 (college VARCHAR, position VARCHAR, overall VARCHAR, round VARCHAR)
SELECT date FROM table_14945608_1 WHERE opponent = "New York Jets"
What date did the Colts play New York Jets?
CREATE TABLE table_14945608_1 (date VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_30 WHERE country = "united states" AND to_par = "e" AND player = "mike reid"
What was the score for United States when the player was Mike Reid and the To par was e?
CREATE TABLE table_name_30 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT margin_of_victory FROM table_name_53 WHERE runner_s__up = "mark calcavecchia"
What was the margin of victory when Mark Calcavecchia was the runner-up?
CREATE TABLE table_name_53 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT manner_of_departure FROM table_24162080_3 WHERE replaced_by = "Steve McClaren"
When steve mcclaren is the replacer what is the manner of departure?
CREATE TABLE table_24162080_3 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT date FROM table_name_63 WHERE score = "3–6, 7–5, 6–4"
Score of 3–6, 7–5, 6–4 included what date?
CREATE TABLE table_name_63 (date VARCHAR, score VARCHAR)
SELECT Major AS facility FROM table_25346763_1 WHERE year_opened = "1968"
Is the facility opened in 1968 a major facility?
CREATE TABLE table_25346763_1 (Major VARCHAR, year_opened VARCHAR)
SELECT score FROM table_name_27 WHERE date = "january 12"
What was the score on January 12?
CREATE TABLE table_name_27 (score VARCHAR, date VARCHAR)
SELECT COUNT(years) FROM table_14707564_1 WHERE total = 402
How many years was the total 402?
CREATE TABLE table_14707564_1 (years VARCHAR, total VARCHAR)
SELECT date FROM table_name_64 WHERE away = "high park demons"
When did the High Park Demons play Away?
CREATE TABLE table_name_64 (date VARCHAR, away VARCHAR)
SELECT class FROM table_1745843_10 WHERE part_3 = "heldu"
What class is the verb wich its part 3 is heldu
CREATE TABLE table_1745843_10 (class VARCHAR, part_3 VARCHAR)
SELECT opponent FROM table_name_93 WHERE date = "november 16"
What opponent did the Broncos play on November 16?
CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR)
SELECT MIN(year) FROM table_name_83 WHERE notes = "ordinary people"
What is the earliest year for ordinary people to appear in the notes?
CREATE TABLE table_name_83 (year INTEGER, notes VARCHAR)
SELECT MIN(against) FROM table_name_16 WHERE venue = "twickenham, london" AND status = "five nations" AND opposing_teams = "ireland"
What is the lowest against score for Twickenham, London with the status of Five Nations against Ireland?
CREATE TABLE table_name_16 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)
SELECT occupation² FROM table_name_52 WHERE age¹ > 24 AND alias = "black"
What is Occupation², when Age¹ is greater than 24, when Alias is "Black"?
CREATE TABLE table_name_52 (occupation² VARCHAR, age¹ VARCHAR, alias VARCHAR)
SELECT MIN(draws) FROM table_name_98 WHERE wins > 3 AND mid_gippsland_fl = "yarragon" AND against < 966
What is the low draw total for yarragon teams with over 3 wins, and under 966 against?
CREATE TABLE table_name_98 (draws INTEGER, against VARCHAR, wins VARCHAR, mid_gippsland_fl VARCHAR)
SELECT competition FROM table_name_35 WHERE result = "1-1" AND venue = "gwangju"
what is the competition when the result is 1-1 and venue is gwangju?
CREATE TABLE table_name_35 (competition VARCHAR, result VARCHAR, venue VARCHAR)
SELECT best_female_artist FROM table_22546460_4 WHERE best_female_lyricist = "People's Male MC"
What won the Best Female Artist if People's Male MC won the Best Female Lyricist?
CREATE TABLE table_22546460_4 (best_female_artist VARCHAR, best_female_lyricist VARCHAR)
SELECT order_year FROM table_name_73 WHERE fleet_series__quantity_ = "12081-12090 (10)"
Which order year has a Fleet Series (Quantity) of 12081-12090 (10)?
CREATE TABLE table_name_73 (order_year VARCHAR, fleet_series__quantity_ VARCHAR)
SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING COUNT(*) >= 1
Find the name and country of origin for all artists who have release at least one song of resolution above 900.
CREATE TABLE song (artist_name VARCHAR, resolution INTEGER); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
SELECT population FROM table_22815568_7 WHERE market_income_per_capita = "$17,362"
What is the population in those place where the market income per capita is $17,362?
CREATE TABLE table_22815568_7 (population VARCHAR, market_income_per_capita VARCHAR)
SELECT march_27_29 FROM table_25252080_3 WHERE november_3 = "153"
What is the number for march 27-29 whern november 3 is 153?
CREATE TABLE table_25252080_3 (march_27_29 VARCHAR, november_3 VARCHAR)
SELECT finish FROM table_name_61 WHERE date = "june 1, 2008"
What is the Finish on June 1, 2008?
CREATE TABLE table_name_61 (finish VARCHAR, date VARCHAR)
SELECT weeks_on_chart FROM table_name_92 WHERE country = "france"
what is the weeks on chart for the single from france?
CREATE TABLE table_name_92 (weeks_on_chart VARCHAR, country VARCHAR)
SELECT no_s_ FROM table_name_18 WHERE height_in_ft = "6-7"
Tell me the number for height in ft of 6-7
CREATE TABLE table_name_18 (no_s_ VARCHAR, height_in_ft VARCHAR)
SELECT MAX(elevation__ft_) FROM table_name_40 WHERE type = "stratovolcano" AND name = "goat rocks" AND elevation__m_ > 2 OFFSET 494
Type of stratovolcano, and a Name of goat rocks, and a Elevation (m) larger than 2,494 has what highest elevation in feet?
CREATE TABLE table_name_40 (elevation__ft_ INTEGER, elevation__m_ VARCHAR, type VARCHAR, name VARCHAR)
SELECT MAX(avg_emission_per_km_2_of_its_land__tons_) FROM table_11251601_2 WHERE country = "India"
WHAT WAS THE AVERAGE EMISSION PER KM 2 IN INDIA?
CREATE TABLE table_11251601_2 (avg_emission_per_km_2_of_its_land__tons_ INTEGER, country VARCHAR)
SELECT opponent FROM table_name_30 WHERE attendance = "60,066"
Who was the opponent in the game that had an attendance of 60,066?
CREATE TABLE table_name_30 (opponent VARCHAR, attendance VARCHAR)
SELECT label FROM table_name_34 WHERE region = "uk" AND date = "1996"
What is the label for the UK in 1996?
CREATE TABLE table_name_34 (label VARCHAR, region VARCHAR, date VARCHAR)
SELECT COUNT(pick__number) FROM table_name_9 WHERE position = "m" AND affiliation = "williams college"
Tell me the total number of picks for position of m of williams college
CREATE TABLE table_name_9 (pick__number VARCHAR, position VARCHAR, affiliation VARCHAR)
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "8741"
Find the distinct last names of all the students who have president votes and whose advisor is 8741.
CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
SELECT current_venue FROM table_14903081_1 WHERE location = "Mason, Ohio"
Which current venues location is Mason, Ohio?
CREATE TABLE table_14903081_1 (current_venue VARCHAR, location VARCHAR)
SELECT MAX(premiere) FROM table_24856090_1 WHERE english_title = "The Mysteries of Love"
What is the premiere number for the episode titled "The Mysteries of Love" in English?
CREATE TABLE table_24856090_1 (premiere INTEGER, english_title VARCHAR)
SELECT COUNT(driver) FROM table_2175858_1 WHERE race_time = "3:09:45"
How many drivers had a time of 3:09:45?
CREATE TABLE table_2175858_1 (driver VARCHAR, race_time VARCHAR)
SELECT result FROM table_1341897_45 WHERE incumbent = "Lindley Beckworth"
What was the result of the election in which Lindley Beckworth was the incumbent?
CREATE TABLE table_1341897_45 (result VARCHAR, incumbent VARCHAR)