answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT date FROM table_name_96 WHERE result = "w 23–17"
WHEN has a Result of w 23–17?
CREATE TABLE table_name_96 (date VARCHAR, result VARCHAR)
SELECT score FROM table_name_79 WHERE record = "4-1"
What is Score, when Record is "4-1"?
CREATE TABLE table_name_79 (score VARCHAR, record VARCHAR)
SELECT date FROM table_name_25 WHERE result = "draw" AND venue = "antigua recreation ground"
On what dates did the draw at the Antigua Recreation Ground happen?
CREATE TABLE table_name_25 (date VARCHAR, result VARCHAR, venue VARCHAR)
SELECT guest FROM table_name_98 WHERE attendance = 3
Who was the guest when attendance was 3?
CREATE TABLE table_name_98 (guest VARCHAR, attendance VARCHAR)
SELECT crowd FROM table_name_86 WHERE home_team = "geelong"
Which Crowd has a Home team of geelong?
CREATE TABLE table_name_86 (crowd VARCHAR, home_team VARCHAR)
SELECT average FROM table_17862135_3 WHERE couple = "Cody & Julianne"
What is average for Cody & Julianne?
CREATE TABLE table_17862135_3 (average VARCHAR, couple VARCHAR)
SELECT MIN(ep) FROM table_20967430_2 WHERE original_air_date = "November 29, 1985"
Name the least episode for november 29, 1985
CREATE TABLE table_20967430_2 (ep INTEGER, original_air_date VARCHAR)
SELECT COUNT(season) FROM table_name_34 WHERE location = "aspen, usa"
How many seasons took place in aspen, usa?
CREATE TABLE table_name_34 (season VARCHAR, location VARCHAR)
SELECT date FROM table_name_93 WHERE versus = "source: cricinfo.com"
What date had a versus of source: cricinfo.com?
CREATE TABLE table_name_93 (date VARCHAR, versus VARCHAR)
SELECT province FROM table_name_60 WHERE icao = "zbcf"
Name the Province with ICAO of zbcf?
CREATE TABLE table_name_60 (province VARCHAR, icao VARCHAR)
SELECT opponents FROM table_name_81 WHERE partner = "michelle strebel"
Who was Manuela Maleeva opponent when she played a match partnered with michelle strebel?
CREATE TABLE table_name_81 (opponents VARCHAR, partner VARCHAR)
SELECT away_team FROM table_name_85 WHERE venue = "victoria park"
Who was the away team at Victoria Park?
CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR)
SELECT power_output FROM table_name_29 WHERE model = "s-13"
Name the power output for model of s-13
CREATE TABLE table_name_29 (power_output VARCHAR, model VARCHAR)
SELECT week_1 FROM table_name_53 WHERE week_3 = "candice hunnicutt"
What is the week 1 with candice hunnicutt in week 3?
CREATE TABLE table_name_53 (week_1 VARCHAR, week_3 VARCHAR)
SELECT SUM(crowd) FROM table_name_90 WHERE home_team = "fitzroy"
What is Fitzroy's Home team Crowd?
CREATE TABLE table_name_90 (crowd INTEGER, home_team VARCHAR)
SELECT manufacturer FROM table_name_47 WHERE laps = 26 AND rider = "aleix espargaro"
What is the Manufacturer, when Laps is 26, and when Rider is Aleix Espargaro?
CREATE TABLE table_name_47 (manufacturer VARCHAR, laps VARCHAR, rider VARCHAR)
SELECT COUNT(socialist) FROM table_1881642_1 WHERE social_democratic = "42.2%"
How many figures are given for the Socialists in the case where the Social Democrats received 42.2%?
CREATE TABLE table_1881642_1 (socialist VARCHAR, social_democratic VARCHAR)
SELECT COUNT(*) FROM student
How many students are there?
CREATE TABLE student (Id VARCHAR)
SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "GELL" AND T1.lastname = "TAMI"
Find the last names of all the teachers that teach GELL TAMI.
CREATE TABLE teachers (lastname VARCHAR, classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
SELECT t1.product_name, t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY COUNT(*) DESC LIMIT 1
Find the name and price of the product that has been ordered the greatest number of times.
CREATE TABLE products (product_name VARCHAR, product_price VARCHAR, product_id VARCHAR); CREATE TABLE regular_order_products (product_id VARCHAR)
SELECT film FROM table_name_40 WHERE rank = "nominated" AND director_s_ = "dana dorian"
Which film, directed by Dana Dorian, was nominated?
CREATE TABLE table_name_40 (film VARCHAR, rank VARCHAR, director_s_ VARCHAR)
SELECT series FROM table_name_58 WHERE f_laps = "4"
Which series has 4 f/laps?
CREATE TABLE table_name_58 (series VARCHAR, f_laps VARCHAR)
SELECT MIN(crowd) FROM table_name_56 WHERE venue = "arden street oval"
Who has the smallest crowd in the Venue of Arden Street Oval?
CREATE TABLE table_name_56 (crowd INTEGER, venue VARCHAR)
SELECT kerry_percentage FROM table_2401326_1 WHERE county = "Oneida"
What percentage of the votes in Oneida did Kerry win?
CREATE TABLE table_2401326_1 (kerry_percentage VARCHAR, county VARCHAR)
SELECT surface FROM table_name_63 WHERE championship = "indian wells" AND outcome = "winner"
What surface has indian wells as the championship, with winner as the outcome?
CREATE TABLE table_name_63 (surface VARCHAR, championship VARCHAR, outcome VARCHAR)
SELECT record FROM table_name_13 WHERE event = "cage combat fighting championships: mayhem"
For the Cage Combat Fighting Championships: Mayhem, what was the record?
CREATE TABLE table_name_13 (record VARCHAR, event VARCHAR)
SELECT COUNT(sydney) FROM table_24291077_4 WHERE week = 3
How many episodes aired in Sydney in Week 3?
CREATE TABLE table_24291077_4 (sydney VARCHAR, week VARCHAR)
SELECT COUNT(location_s_) FROM table_19897294_8 WHERE no_overall = "UK32"
Name the number of locations for uk32
CREATE TABLE table_19897294_8 (location_s_ VARCHAR, no_overall VARCHAR)
SELECT home_team FROM table_name_8 WHERE venue = "gold coast convention centre"
Who was the home team at Gold Coast Convention Centre?
CREATE TABLE table_name_8 (home_team VARCHAR, venue VARCHAR)
SELECT 2007 FROM table_name_54 WHERE tournament = "monte carlo masters"
What was the double's performance data from the Monte Carlo Masters tournament in 2007?
CREATE TABLE table_name_54 (tournament VARCHAR)
SELECT opponent FROM table_name_9 WHERE week > 16
What's the Opponent with a Week that's larger than 16?
CREATE TABLE table_name_9 (opponent VARCHAR, week INTEGER)
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 wsu_year_s_ FROM table_name_88 WHERE pro_year_s_ = "1974-77"
What is WSU Year(s), when Pro Year(s) is 1974-77?
CREATE TABLE table_name_88 (wsu_year_s_ VARCHAR, pro_year_s_ VARCHAR)
SELECT contestant FROM table_23576576_2 WHERE hometown = "Omuthiya"
If the hometown is Omuthiya, what is the contestant name?
CREATE TABLE table_23576576_2 (contestant VARCHAR, hometown VARCHAR)
SELECT SUM(drawn) FROM table_name_80 WHERE lost > 8 AND points < 7
Which Drawn has a Lost larger than 8, and Points smaller than 7?
CREATE TABLE table_name_80 (drawn INTEGER, lost VARCHAR, points VARCHAR)
SELECT money___$__ FROM table_name_35 WHERE score = 75 - 71 - 72 - 70 = 288
What is Money ( $ ), when Score is "75-71-72-70=288"?
CREATE TABLE table_name_35 (money___$__ VARCHAR, score VARCHAR)
SELECT SUM(lane) FROM table_name_64 WHERE mark = "47.02" AND heat > 5
What is the total Lane with a Mark of 47.02, and a Heat higher than 5?
CREATE TABLE table_name_64 (lane INTEGER, mark VARCHAR, heat VARCHAR)
SELECT rider FROM table_name_23 WHERE manufacturer = "honda" AND time_retired = "+44.814"
Which rider has a Manufacturer of honda with a time of +44.814?
CREATE TABLE table_name_23 (rider VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)
SELECT COUNT(high_points) FROM table_18904831_7 WHERE location = "MCI Center"
What were the high points for the game played at the MCI Center?
CREATE TABLE table_18904831_7 (high_points VARCHAR, location VARCHAR)
SELECT attendance FROM table_name_79 WHERE opponent = "at syracuse"
What is Attendance, when Opponent is "At Syracuse"?
CREATE TABLE table_name_79 (attendance VARCHAR, opponent VARCHAR)
SELECT nation FROM table_name_35 WHERE points = 1399.3
What nation had 1399.3 points?
CREATE TABLE table_name_35 (nation VARCHAR, points VARCHAR)
SELECT tenure FROM table_28051859_3 WHERE school = "Field"
When were the members tenured in the Field school?
CREATE TABLE table_28051859_3 (tenure VARCHAR, school VARCHAR)
SELECT position FROM table_name_90 WHERE competition = "european cross country championships" AND year = 2008
What position did the player play in the european cross country championships in 2008?
CREATE TABLE table_name_90 (position VARCHAR, competition VARCHAR, year VARCHAR)
SELECT player FROM table_name_98 WHERE pick__number = "40"
Which player was Pick #40?
CREATE TABLE table_name_98 (player VARCHAR, pick__number VARCHAR)
SELECT chassis FROM table_name_59 WHERE points < 2 AND entrant = "goulds' garage (bristol)" AND year = 1954
Which chassis has fewer than 2 points, entrants of Goulds' Garage (Bristol), in 1954?
CREATE TABLE table_name_59 (chassis VARCHAR, year VARCHAR, points VARCHAR, entrant VARCHAR)
SELECT result FROM table_name_61 WHERE score = "5-1"
What was the result when the score was 5-1?
CREATE TABLE table_name_61 (result VARCHAR, score VARCHAR)
SELECT team_1 FROM table_name_13 WHERE team_2 = "vfl gummersbach"
Which team 1 has vfl gummersbach as team 2?
CREATE TABLE table_name_13 (team_1 VARCHAR, team_2 VARCHAR)
SELECT SUM(points) FROM table_name_56 WHERE team_chassis = "alfa romeo 184t"
What is the total number of points team Alfa Romeo 184T won?
CREATE TABLE table_name_56 (points INTEGER, team_chassis VARCHAR)
SELECT state FROM table_name_6 WHERE member = "gil duthie"
What is State, when Member is "Gil Duthie"?
CREATE TABLE table_name_6 (state VARCHAR, member VARCHAR)
SELECT MAX(nominated_by_the_taoiseach) FROM table_name_11 WHERE administrative_panel > 0 AND industrial_and_commercial_panel < 1
What is the highest number of nominations by Taoiseach of the composition with an administrative panel greater than 0 and an industrial and commercial panel less than 1?
CREATE TABLE table_name_11 (nominated_by_the_taoiseach INTEGER, administrative_panel VARCHAR, industrial_and_commercial_panel VARCHAR)
SELECT result FROM table_name_29 WHERE week = 14
What was the result for week 14?
CREATE TABLE table_name_29 (result VARCHAR, week VARCHAR)
SELECT MIN(crowd) FROM table_name_61 WHERE away_team = "north melbourne"
What is the smallest crowd with the away team of North Melbourne?
CREATE TABLE table_name_61 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(position) FROM table_name_84 WHERE difference = "5" AND drawn < 3
Which Position has a Difference of 5, and a Drawn smaller than 3?
CREATE TABLE table_name_84 (position INTEGER, difference VARCHAR, drawn VARCHAR)
SELECT 2 AS nd_leg FROM table_name_88 WHERE aggregate = "4-2"
What was the 2nd leg score having an aggregate score of 4-2?
CREATE TABLE table_name_88 (aggregate VARCHAR)
SELECT venue FROM table_name_40 WHERE home_team = "melbourne"
What is the stadium of melbourne?
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
SELECT COUNT(country) FROM table_1081235_1 WHERE name_of_lava_dome = "Tata Sabaya lava domes"
How many countries are the Tata Sabaya Lava domes located in?
CREATE TABLE table_1081235_1 (country VARCHAR, name_of_lava_dome VARCHAR)
SELECT to_par FROM table_name_70 WHERE place = "t8" AND score = 71 - 66 - 66 - 71 = 274
What was the to par for place t8 and a score of 71-66-66-71=274?
CREATE TABLE table_name_70 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT batsmen FROM table_name_98 WHERE year = "2002"
Who are the Batsmen from the year 2002?
CREATE TABLE table_name_98 (batsmen VARCHAR, year VARCHAR)
SELECT team FROM table_name_95 WHERE player = "jim garcia category:articles with hcards"
What team is Jim Garcia category:Articles with Hcards on?
CREATE TABLE table_name_95 (team VARCHAR, player VARCHAR)
SELECT COUNT(team_europe) FROM table_19072602_3 WHERE team_usa = "Chris Barnes"
When chris barnes is on team usa how many europe teams are there?
CREATE TABLE table_19072602_3 (team_europe VARCHAR, team_usa VARCHAR)
SELECT score FROM table_name_37 WHERE date = "october 16, 1983"
What was the score on October 16, 1983?
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
SELECT COUNT(lines) FROM table_2385460_1 WHERE route = "Porta Nolana - Ottaviano- Sarno"
Name the number of lines for porta nolana - ottaviano- sarno
CREATE TABLE table_2385460_1 (lines VARCHAR, route VARCHAR)
SELECT kosal FROM table_name_97 WHERE sitalsasthi_carnival = "balangir town"
What is the Kosal with a balangir town sitalsasthi carnival?
CREATE TABLE table_name_97 (kosal VARCHAR, sitalsasthi_carnival VARCHAR)
SELECT administrative_division FROM table_24027047_1 WHERE population_density___km²_2011_ = "8,552.4"
What division had a population density of 8,552.4 km2 in 2011?
CREATE TABLE table_24027047_1 (administrative_division VARCHAR, population_density___km²_2011_ VARCHAR)
SELECT product_type_code, product_name FROM products WHERE product_price > 1000 OR product_price < 500
Show the product type and name for the products with price higher than 1000 or lower than 500.
CREATE TABLE products (product_type_code VARCHAR, product_name VARCHAR, product_price VARCHAR)
SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the high schooler who has the greatest number of friends?
CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR)
SELECT SUM(grid) FROM table_name_22 WHERE laps = 24 AND rider = "marco melandri"
Which Grid has Laps of 24, and a Rider of marco melandri?
CREATE TABLE table_name_22 (grid INTEGER, laps VARCHAR, rider VARCHAR)
SELECT lyricist FROM table_10848177_1 WHERE length = "6:14"
Which lyricist has a song with a length of 6:14?
CREATE TABLE table_10848177_1 (lyricist VARCHAR, length VARCHAR)
SELECT score FROM table_name_93 WHERE date = "29-jun-2009"
What is the score for the game that was played on 29-Jun-2009?
CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)
SELECT name FROM table_name_86 WHERE place = 1
Can you tell me the Name that has the Place of 1?
CREATE TABLE table_name_86 (name VARCHAR, place VARCHAR)
SELECT DISTINCT product_name FROM product ORDER BY product_id
List all the distinct product names ordered by product id?
CREATE TABLE product (product_name VARCHAR, product_id VARCHAR)
SELECT COUNT(play_off) FROM table_1059743_1 WHERE points = "813.5"
How many games had a score value of 813.5 in post-season play?
CREATE TABLE table_1059743_1 (play_off VARCHAR, points VARCHAR)
SELECT socket FROM table_16400024_1 WHERE sspec_number = "SL3F7(kC0)SL3FJ(kC0)"
What is the socket location for sSPEC number sl3f7(kc0)sl3fj(kc0)?
CREATE TABLE table_16400024_1 (socket VARCHAR, sspec_number VARCHAR)
SELECT gdp_per_capita__us$_ FROM table_name_54 WHERE population = "2,011,473"
What is the GDP per capita (US$) of the country that has a Population of 2,011,473?
CREATE TABLE table_name_54 (gdp_per_capita__us$_ VARCHAR, population VARCHAR)
SELECT MIN(podiums) FROM table_2725949_6 WHERE season = 2009
Name the least podiums for 2009
CREATE TABLE table_2725949_6 (podiums INTEGER, season VARCHAR)
SELECT circuit FROM table_name_11 WHERE date = "10/08/86"
For the race held on 10/08/86, what was the circuit?
CREATE TABLE table_name_11 (circuit VARCHAR, date VARCHAR)
SELECT us_viewers__millions_ FROM table_11411026_2 WHERE written_by = "Krystal Houghton"
How many millions of U.S. viewers whatched episodes written by Krystal Houghton?
CREATE TABLE table_11411026_2 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT outcome FROM table_name_2 WHERE opponents = "bob hewitt frew mcmillan"
What Outcome has Opponents of bob hewitt frew mcmillan?
CREATE TABLE table_name_2 (outcome VARCHAR, opponents VARCHAR)
SELECT affiliation FROM table_name_28 WHERE mls_team = "metrostars" AND pick__number = 26
Tell me the affiliation for mls team of metrostars and pick number of 26
CREATE TABLE table_name_28 (affiliation VARCHAR, mls_team VARCHAR, pick__number VARCHAR)
SELECT opponent FROM table_name_94 WHERE game = 27
Who was the opponent in Game 27?
CREATE TABLE table_name_94 (opponent VARCHAR, game VARCHAR)
SELECT MIN(series__number) FROM table_15824796_4
What is the lowest number of series?
CREATE TABLE table_15824796_4 (series__number INTEGER)
SELECT away_team FROM table_name_18 WHERE venue = "mcg"
What home team played at MCG?
CREATE TABLE table_name_18 (away_team VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_87 WHERE week = 3
Who was the opponent the falcons played against on week 3?
CREATE TABLE table_name_87 (opponent VARCHAR, week VARCHAR)
SELECT language FROM table_name_64 WHERE title = "strong heart"
What is the language for Strong Heart?
CREATE TABLE table_name_64 (language VARCHAR, title VARCHAR)
SELECT works_no FROM table_name_69 WHERE class = "15th" AND year = "1940"
Which works number has a class of 15th and year of 1940?
CREATE TABLE table_name_69 (works_no VARCHAR, class VARCHAR, year VARCHAR)
SELECT date FROM table_name_71 WHERE record = "38-22"
What date was the record 38-22?
CREATE TABLE table_name_71 (date VARCHAR, record VARCHAR)
SELECT pick__number FROM table_name_74 WHERE cfl_team = "montreal alouettes" AND player = "peter moore"
What is the pick number for Peter Moore of the Montreal Alouettes?
CREATE TABLE table_name_74 (pick__number VARCHAR, cfl_team VARCHAR, player VARCHAR)
SELECT 2009 FROM table_name_53 WHERE tournament = "cincinnati"
What tournament what held in Cincinnati in 2009?
CREATE TABLE table_name_53 (tournament VARCHAR)
SELECT played FROM table_name_1 WHERE lost = "2"
What play has a loss of 2?
CREATE TABLE table_name_1 (played VARCHAR, lost VARCHAR)
SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id
Find name of the services that has never been used.
CREATE TABLE services (service_name VARCHAR); CREATE TABLE party_services (service_id VARCHAR); CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
SELECT event_2 FROM table_name_32 WHERE air_date = "8 june 2008"
What was the 2nd event aired on 8 June 2008?
CREATE TABLE table_name_32 (event_2 VARCHAR, air_date VARCHAR)
SELECT college FROM table_name_30 WHERE player = "hunter henry"
What college did hunter henry go to?
CREATE TABLE table_name_30 (college VARCHAR, player VARCHAR)
SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
Show the ids of all employees who have authorized destruction.
CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR)
SELECT save FROM table_name_92 WHERE date = "september 15"
What is the save of the game on September 15?
CREATE TABLE table_name_92 (save VARCHAR, date VARCHAR)
SELECT venue FROM table_name_83 WHERE score = "3 & 2" AND year = "1965"
What venue has 3 & 2 as the score, and 1965 as the year?
CREATE TABLE table_name_83 (venue VARCHAR, score VARCHAR, year VARCHAR)
SELECT SUM(week) FROM table_name_78 WHERE date = "december 24, 1994"
What week was the December 24, 1994 game?
CREATE TABLE table_name_78 (week INTEGER, date VARCHAR)
SELECT best_blocker FROM table_name_94 WHERE league_champion = "queens of pain" AND cantsleep_award = "chassis crass (brooklyn)"
Who was the best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award of chassis crass (brooklyn)?
CREATE TABLE table_name_94 (best_blocker VARCHAR, league_champion VARCHAR, cantsleep_award VARCHAR)
SELECT qual FROM table_name_55 WHERE year = "1966"
What is 1966's Qual rating?
CREATE TABLE table_name_55 (qual VARCHAR, year VARCHAR)
SELECT team FROM table_11960944_4 WHERE high_points = "Wallace (20)"
Which team was played when the high points was from Wallace (20)?
CREATE TABLE table_11960944_4 (team VARCHAR, high_points VARCHAR)
SELECT MIN(total_goals) FROM table_name_3 WHERE league_apps < 171 AND total_apps = 151 AND position = "df"
What is the fewest total goals scored for players with under 171 league appearances, 151 total appearances, and the DF position?
CREATE TABLE table_name_3 (total_goals INTEGER, position VARCHAR, league_apps VARCHAR, total_apps VARCHAR)