answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT venue FROM table_name_50 WHERE away_team = "hawthorn"
Where did Hawthorn have their away match against North Melbourne?
CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_42 WHERE date = "7 february 2008"
What was the score on 7 february 2008?
CREATE TABLE table_name_42 (score VARCHAR, date VARCHAR)
SELECT MIN(2007) FROM table_name_91 WHERE 2004 = 78 AND 2006 < 80
Which 2007 is the lowest one that has a 2004 of 78, and a 2006 smaller than 80?
CREATE TABLE table_name_91 (Id VARCHAR)
SELECT college FROM table_name_50 WHERE pick < 160 AND round > 2
What college did the player drafted after round 2 before pick 160 attend?
CREATE TABLE table_name_50 (college VARCHAR, pick VARCHAR, round VARCHAR)
SELECT result FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%"
Candiates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% had what result?
CREATE TABLE table_2668336_17 (result VARCHAR, candidates VARCHAR)
SELECT COUNT(portrayed_by) FROM table_11240028_3 WHERE relationship = "Informant of Don Flack"
How many characters were portrayed by the informant of don flack?
CREATE TABLE table_11240028_3 (portrayed_by VARCHAR, relationship VARCHAR)
SELECT country FROM table_name_10 WHERE driver = "john nielsen"
what country is john nielsen from
CREATE TABLE table_name_10 (country VARCHAR, driver VARCHAR)
SELECT label FROM table_name_18 WHERE date = 1969
What was the label in 1969?
CREATE TABLE table_name_18 (label VARCHAR, date VARCHAR)
SELECT SUM(heat) FROM table_name_46 WHERE rank > 7
What is the total heat ranked higher than 7?
CREATE TABLE table_name_46 (heat INTEGER, rank INTEGER)
SELECT won FROM table_13758945_1 WHERE losing_bonus = "0"
What are the won games with losing bonus of 0?
CREATE TABLE table_13758945_1 (won VARCHAR, losing_bonus VARCHAR)
SELECT AVG(crowd) FROM table_name_35 WHERE away_team = "geelong"
How is the crowd of the team Geelong?
CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR)
SELECT series FROM table_name_96 WHERE visitor = "st. louis" AND date = "april 18"
What was the series score when st. louis was away on april 18?
CREATE TABLE table_name_96 (series VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT torque FROM table_name_91 WHERE model = "s63 amg ('01)"
Which Torque has a Model of s63 amg ('01)?
CREATE TABLE table_name_91 (torque VARCHAR, model VARCHAR)
SELECT intercontinental_cup_1999 FROM table_name_63 WHERE copa_conmebol_1999 = "runner-up"
What is the Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up?
CREATE TABLE table_name_63 (intercontinental_cup_1999 VARCHAR, copa_conmebol_1999 VARCHAR)
SELECT frequency FROM table_name_95 WHERE name = "104.3 business radio"
What is the frequency of 104.3 business radio?
CREATE TABLE table_name_95 (frequency VARCHAR, name VARCHAR)
SELECT opponent_in_the_final FROM table_name_33 WHERE year = 1942
What is Opponent In The Final, when Year is "1942"?
CREATE TABLE table_name_33 (opponent_in_the_final VARCHAR, year VARCHAR)
SELECT sport FROM table_name_26 WHERE played = "2008-2010"
What sport was played between the years of 2008-2010?
CREATE TABLE table_name_26 (sport VARCHAR, played VARCHAR)
SELECT home_team FROM table_name_57 WHERE venue = "corio oval"
What is the Home team at corio oval?
CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_61 WHERE tie_no = "13"
Which Home Team has a Tie no of 13?
CREATE TABLE table_name_61 (home_team VARCHAR, tie_no VARCHAR)
SELECT outcome FROM table_2516282_3 WHERE opponents = "Yan Zi Jie Zheng"
When the opponent was Yan Zi Jie Zheng, what was the outcome?
CREATE TABLE table_2516282_3 (outcome VARCHAR, opponents VARCHAR)
SELECT COUNT(index__year_) FROM table_19948664_2 WHERE countries_sampled = 157
How many years were listed under index when there were 157 countries sampled?
CREATE TABLE table_19948664_2 (index__year_ VARCHAR, countries_sampled VARCHAR)
SELECT score FROM table_name_83 WHERE opponent_team = "belgium" AND opponent = "kirsten flipkens"
What is Score, when Opponent Team is Belgium, and when Opponent is Kirsten Flipkens?
CREATE TABLE table_name_83 (score VARCHAR, opponent_team VARCHAR, opponent VARCHAR)
SELECT points_for FROM table_14058433_5 WHERE lost = "4"
what's the points for with lost being 4
CREATE TABLE table_14058433_5 (points_for VARCHAR, lost VARCHAR)
SELECT population__percentage_1971 FROM table_name_62 WHERE population__percentage_1981 = "1.92%"
For the group with 1.92% population in 1981, what was their percentage of the population in 1971?
CREATE TABLE table_name_62 (population__percentage_1971 VARCHAR, population__percentage_1981 VARCHAR)
SELECT written_by FROM table_10413597_5 WHERE setting = "Winter 1541/February 13, 1542"
Who wrote the episode that was set in winter 1541/february 13, 1542?
CREATE TABLE table_10413597_5 (written_by VARCHAR, setting VARCHAR)
SELECT winner FROM table_name_79 WHERE tier = "tier iii"
When the Tier is listed as tier iii, who is the Winner?
CREATE TABLE table_name_79 (winner VARCHAR, tier VARCHAR)
SELECT record FROM table_name_68 WHERE location = "boston garden" AND score = "118-110"
For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record?
CREATE TABLE table_name_68 (record VARCHAR, location VARCHAR, score VARCHAR)
SELECT method FROM table_name_15 WHERE opponent = "chris myers"
What was the method in the fight against Chris Myers?
CREATE TABLE table_name_15 (method VARCHAR, opponent VARCHAR)
SELECT first_day_cover_cancellation FROM table_name_68 WHERE denomination = "$0.50" AND date_of_issue = "13 june 2005"
What's the First Day Cover Cancellation with Denomination of $0.50 and Date of Issue as 13 June 2005?
CREATE TABLE table_name_68 (first_day_cover_cancellation VARCHAR, denomination VARCHAR, date_of_issue VARCHAR)
SELECT AVG(field_goals) FROM table_name_80 WHERE position = "right halfback" AND touchdowns > 3
What is the average number of field goals scored by a right halfback who had more than 3 touchdowns?
CREATE TABLE table_name_80 (field_goals INTEGER, position VARCHAR, touchdowns VARCHAR)
SELECT to_par FROM table_name_25 WHERE country = "australia"
What is To Par, when Country is "Australia"?
CREATE TABLE table_name_25 (to_par VARCHAR, country VARCHAR)
SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING COUNT(*) >= 3
Which countries in europe have at least 3 car manufacturers?
CREATE TABLE COUNTRIES (CountryName VARCHAR, Continent VARCHAR, CountryId VARCHAR); CREATE TABLE CONTINENTS (ContId VARCHAR, Continent VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR)
SELECT kickoff_time FROM table_name_64 WHERE week = 11
What was the kickoff time for week 11's game?
CREATE TABLE table_name_64 (kickoff_time VARCHAR, week VARCHAR)
SELECT first_baseman FROM table_name_53 WHERE shortstop = "zoilo versalles"
Who was the First Baseman when the Shortstop was zoilo versalles?
CREATE TABLE table_name_53 (first_baseman VARCHAR, shortstop VARCHAR)
SELECT AVG(year) FROM table_name_32 WHERE points < 9
Which year averaged less than 9 points?
CREATE TABLE table_name_32 (year INTEGER, points INTEGER)
SELECT home FROM table_name_85 WHERE date = "january 4"
Who was the home team on January 4?
CREATE TABLE table_name_85 (home VARCHAR, date VARCHAR)
SELECT stadium FROM table_name_91 WHERE team = "vfb stuttgart ii"
What is VFB Stuttgart II Team's Stadiuim?
CREATE TABLE table_name_91 (stadium VARCHAR, team VARCHAR)
SELECT age FROM table_24192031_2 WHERE height = "m (ft 3⁄4 in)"
How old is the person with the height of m (ft 3⁄4 in)?
CREATE TABLE table_24192031_2 (age VARCHAR, height VARCHAR)
SELECT series FROM table_name_3 WHERE home = "toronto" AND date = "may 18"
Which series is based in Toronto on may 18?
CREATE TABLE table_name_3 (series VARCHAR, home VARCHAR, date VARCHAR)
SELECT country FROM table_name_14 WHERE icao = "tjvq"
Tell me the country for ICAO tjvq
CREATE TABLE table_name_14 (country VARCHAR, icao VARCHAR)
SELECT attendance FROM table_name_10 WHERE week = 4
What is the attendance of the game on week 4?
CREATE TABLE table_name_10 (attendance VARCHAR, week VARCHAR)
SELECT COUNT(to_par) FROM table_name_42 WHERE country = "united states" AND money___$__ = 90
How much To par has a Country of united states, and a Money ($) of 90?
CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, money___$__ VARCHAR)
SELECT visiting_team FROM table_name_28 WHERE date = "november 10"
Who was the visiting team on November 10?
CREATE TABLE table_name_28 (visiting_team VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_63 WHERE championship = "johannesburg, south africa"
Who was the opponent in the championship in Johannesburg, South Africa?
CREATE TABLE table_name_63 (opponent_in_the_final VARCHAR, championship VARCHAR)
SELECT speaker FROM table_23512864_4 WHERE chief_minister = "M.G. Ramachandran"
What is the name of the speaker if the chief minister is M.G. Ramachandran?
CREATE TABLE table_23512864_4 (speaker VARCHAR, chief_minister VARCHAR)
SELECT circumstances FROM table_name_89 WHERE location = "road to jalalabad"
What was the circumstance that happened on the road to Jalalabad?
CREATE TABLE table_name_89 (circumstances VARCHAR, location VARCHAR)
SELECT COUNT(finale) FROM table_19210674_1 WHERE english_title = "Beyond the Realm of Conscience"
How many different finales had the English title "Beyond the Realm of Conscience"?
CREATE TABLE table_19210674_1 (finale VARCHAR, english_title VARCHAR)
SELECT date_of_vacancy FROM table_27133147_3 WHERE manner_of_departure = "Resigned" AND position_in_table = "10th"
If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy?
CREATE TABLE table_27133147_3 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
SELECT AVG(laps) FROM table_name_23 WHERE driver = "gerhard berger"
What is the average number of laps when Gerhard Berger is the driver?
CREATE TABLE table_name_23 (laps INTEGER, driver VARCHAR)
SELECT celebrity FROM table_name_79 WHERE finished = "6th"
What celebrity finished 6th?
CREATE TABLE table_name_79 (celebrity VARCHAR, finished VARCHAR)
SELECT position FROM table_name_86 WHERE team = "baltimore bullets" AND college = "texas tech"
Name the position that has baltimore bullets and college of texas tech
CREATE TABLE table_name_86 (position VARCHAR, team VARCHAR, college VARCHAR)
SELECT COUNT(cytoplasm) FROM table_13570_1 WHERE nucleus = "Blue"
How many cytoplasms result in a blue nucleus?
CREATE TABLE table_13570_1 (cytoplasm VARCHAR, nucleus VARCHAR)
SELECT high_rebounds FROM table_17326036_5 WHERE date = "November 1"
Who did the most high rebounds in the game played on November 1?
CREATE TABLE table_17326036_5 (high_rebounds VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_8 WHERE away_team = "fitzroy"
What did the home team score when playing Fitzroy as the away team?
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(wins) FROM table_name_47 WHERE class = "50cc" AND rank = "8th"
Tell me the average wins for class of 50cc and rank of 8th
CREATE TABLE table_name_47 (wins INTEGER, class VARCHAR, rank VARCHAR)
SELECT winning_score FROM table_name_90 WHERE year = 1965
What is the Winning score in 1965?
CREATE TABLE table_name_90 (winning_score VARCHAR, year VARCHAR)
SELECT position FROM table_21321804_1 WHERE cfl_team = "Edmonton Eskimos" AND college = "Weber State"
Which position is cfl team edmonton eskimos for weber state college?
CREATE TABLE table_21321804_1 (position VARCHAR, cfl_team VARCHAR, college VARCHAR)
SELECT SUM(laps) FROM table_name_99 WHERE driver = "tony rolt" AND grid < 10
what is the laps when the driver is tony rolt and the grid is less than 10?
CREATE TABLE table_name_99 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT class_aAAAA FROM table_14601528_2 WHERE school_year = "2005-06"
Name the class aaaaa for 2005-06
CREATE TABLE table_14601528_2 (class_aAAAA VARCHAR, school_year VARCHAR)
SELECT location FROM table_name_24 WHERE opponent = "arras paul arras"
Where was the location for Arras Paul Arras?
CREATE TABLE table_name_24 (location VARCHAR, opponent VARCHAR)
SELECT listed_owner_s_ FROM table_1529793_1 WHERE driver_s_ = "Jeremy Mayfield"
Who owned the team Jeremy Mayfield raced for?
CREATE TABLE table_1529793_1 (listed_owner_s_ VARCHAR, driver_s_ VARCHAR)
SELECT manner_of_departure FROM table_name_93 WHERE replaced_by = "wolfgang frank"
How did the manager replaced by Wolfgang Frank depart?
CREATE TABLE table_name_93 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT entrant FROM table_name_41 WHERE year < 1988
Who was the entrant before 1988?
CREATE TABLE table_name_41 (entrant VARCHAR, year INTEGER)
SELECT rank FROM table_name_77 WHERE season = "1995/96"
What is the Rank that has a Season of 1995/96?
CREATE TABLE table_name_77 (rank VARCHAR, season VARCHAR)
SELECT surface FROM table_name_42 WHERE outcome = "runner-up" AND score = "julia görges polona hercog"
What is the surface of the match when the outcome was runner-up, and a Score of julia görges polona hercog?
CREATE TABLE table_name_42 (surface VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT player FROM table_name_2 WHERE pick > 24 AND nba_years_[a_] = "9"
What is Player, when Pick is greater than 24, and when NBA years [a ] is "9"?
CREATE TABLE table_name_2 (player VARCHAR, pick VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)
SELECT home_team AS score FROM table_name_56 WHERE venue = "kardinia park"
What is the home team score for kardinia park?
CREATE TABLE table_name_56 (home_team VARCHAR, venue VARCHAR)
SELECT country FROM stadium GROUP BY country HAVING COUNT(*) <= 3
Which country has at most 3 stadiums listed?
CREATE TABLE stadium (country VARCHAR)
SELECT loss FROM table_name_96 WHERE date = "june 30"
Name the loss for june 30
CREATE TABLE table_name_96 (loss VARCHAR, date VARCHAR)
SELECT MAX(district) FROM table_26416704_2 WHERE incumbent = "Brian W. Thomas"
What is the highest numbred district that has brian w. thomas as an incumbent?
CREATE TABLE table_26416704_2 (district INTEGER, incumbent VARCHAR)
SELECT japanese_title FROM table_name_58 WHERE tv_station = "tbs" AND romaji_title = "hana yori dango"
Which Japanese Title has a TV Station of tbs, and a Romaji Title of hana yori dango?
CREATE TABLE table_name_58 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)
SELECT us_viewers__million_ FROM table_25668962_1 WHERE production_code = "1ARC12"
How many million U.S. viewers watched the epiode with a production code of 1arc12?
CREATE TABLE table_25668962_1 (us_viewers__million_ VARCHAR, production_code VARCHAR)
SELECT Delegate FROM election WHERE District = 1
Show the delegate from district 1 in election.
CREATE TABLE election (Delegate VARCHAR, District VARCHAR)
SELECT netflix FROM table_name_53 WHERE segment_c = "pills"
What is the Netflix number having a segment of C of pills?
CREATE TABLE table_name_53 (netflix VARCHAR, segment_c VARCHAR)
SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime"
What is Weekly Rank of TV series with Episode "A Love of a Lifetime"?
CREATE TABLE TV_series (Weekly_Rank VARCHAR, Episode VARCHAR)
SELECT country FROM table_name_95 WHERE place = "t9" AND score = 71 - 71 - 72 = 214 AND player = "ernie els"
Which Country has a Place of t9, and a Score of 71-71-72=214, and a Player of ernie els?
CREATE TABLE table_name_95 (country VARCHAR, player VARCHAR, place VARCHAR, score VARCHAR)
SELECT MAX(days) FROM table_name_16 WHERE launch_date = "23 january 2010"
What is Highest Days, when Launch Date is 23 January 2010?
CREATE TABLE table_name_16 (days INTEGER, launch_date VARCHAR)
SELECT SUM(round) FROM table_name_55 WHERE college = "michigan" AND overall > 37
WHAT IS THE ROUND FROM MICHIGAN COLLEGE, AND OVERALL LARGER THAN 37?
CREATE TABLE table_name_55 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT agg FROM table_name_35 WHERE team_1 = "noliko maaseik"
What is Agg., when Team 1 is "Noliko Maaseik"?
CREATE TABLE table_name_35 (agg VARCHAR, team_1 VARCHAR)
SELECT ihsaa_class FROM table_name_77 WHERE mascot = "red devils"
What's the IHSAA class of the Red Devils?
CREATE TABLE table_name_77 (ihsaa_class VARCHAR, mascot VARCHAR)
SELECT team FROM table_name_55 WHERE sport = "tennis" AND nation_of_citizenship = "united states"
Which tennis team is from the United States?
CREATE TABLE table_name_55 (team VARCHAR, sport VARCHAR, nation_of_citizenship VARCHAR)
SELECT first_elected FROM table_1341522_38 WHERE opponent = "Ralph Regula (R) 75.0% J. Michael Finn (D) 25.0%"
what's the first elected with opponent being ralph regula (r) 75.0% j. michael finn (d) 25.0%
CREATE TABLE table_1341522_38 (first_elected VARCHAR, opponent VARCHAR)
SELECT speed FROM table_name_55 WHERE rider = "john hildreth"
What was John Hildreth's speed?
CREATE TABLE table_name_55 (speed VARCHAR, rider VARCHAR)
SELECT record FROM table_24136814_3 WHERE date = "September 7"
What was the record for the Argonauts on September 7?
CREATE TABLE table_24136814_3 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_34 WHERE loss = "lemanczyk (0–1)"
What was the record at the game that had a loss of Lemanczyk (0–1)?
CREATE TABLE table_name_34 (record VARCHAR, loss VARCHAR)
SELECT general_classification FROM table_name_36 WHERE mountains_classification = "stefano garzelli" AND points_classification = "danilo di luca" AND winner = "ignatas konovalovas"
What's the general classification of Ignatas Konovalovas when the mountains classification was Stefano Garzelli and points classification was Danilo Di Luca?
CREATE TABLE table_name_36 (general_classification VARCHAR, winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR)
SELECT event_1_medley FROM table_24302700_2 WHERE event_3_squat_lift = "4 (6 in 31.85s)"
What was the result in the event 1 medley for the man with a 4 (6 in 31.85s) in the event 3 squat lift?
CREATE TABLE table_24302700_2 (event_1_medley VARCHAR, event_3_squat_lift 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 territory FROM table_name_86 WHERE channel = 83
Where is channel 83 broadcasted?
CREATE TABLE table_name_86 (territory VARCHAR, channel VARCHAR)
SELECT MIN(attendance) FROM table_name_91 WHERE opponent = "st. louis cardinals"
What was the lowest attendance at a game against the St. Louis Cardinals?
CREATE TABLE table_name_91 (attendance INTEGER, opponent VARCHAR)
SELECT color_commentator_s_ FROM table_name_3 WHERE studio_host = "gary tanguay & eric frede"
WHich Color commentatorhas a Studio host of gary tanguay & eric frede?
CREATE TABLE table_name_3 (color_commentator_s_ VARCHAR, studio_host VARCHAR)
SELECT SUM(pop_¹) FROM table_name_13 WHERE prefecture = "shizuoka"
Name the sum of pop for shizuoka
CREATE TABLE table_name_13 (pop_¹ INTEGER, prefecture VARCHAR)
SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1
What is the duration of the oldest actor?
CREATE TABLE actor (Duration VARCHAR, Age VARCHAR)
SELECT total__million_€__ FROM table_2293510_1 WHERE ppp__million_€_ = 21779
What's the total (in million €) in the region where PPP is 21779 million €?
CREATE TABLE table_2293510_1 (total__million_€__ VARCHAR, ppp__million_€_ VARCHAR)
SELECT position_in_table FROM table_27782699_3 WHERE team = "AB"
What was the AB team's position in table?
CREATE TABLE table_27782699_3 (position_in_table VARCHAR, team VARCHAR)
SELECT payload_to_gto FROM table_name_95 WHERE ccbs > 1 AND payload_to_leo = "29,400kg"
What Payload to GTO has CCBs larger than 1, and a Payload to LEO of 29,400kg?
CREATE TABLE table_name_95 (payload_to_gto VARCHAR, ccbs VARCHAR, payload_to_leo VARCHAR)
SELECT location FROM table_16527640_3 WHERE vfl_games = 9
What location had a VFL Game number of 9?
CREATE TABLE table_16527640_3 (location VARCHAR, vfl_games VARCHAR)
SELECT dirty_electric_grid_rocky_mountains__denver_ FROM table_23840623_4 WHERE clean_electric_grid_california__san_francisco_ = "160 g/mi (99 g/km)"
What is the dirty electric grid rocky mountains (denver) for the vehicle with the clean electric grid california (san francisco) of 160 g/mi (99 g/km)?
CREATE TABLE table_23840623_4 (dirty_electric_grid_rocky_mountains__denver_ VARCHAR, clean_electric_grid_california__san_francisco_ VARCHAR)
SELECT population__millions, _2011_ FROM table_2155836_1 WHERE gdp__nominal___billions_usd_ = "4"
What is the population in millions for 2011 where the GDP (nominal) (billions USD) is 4?
CREATE TABLE table_2155836_1 (population__millions VARCHAR, _2011_ VARCHAR, gdp__nominal___billions_usd_ VARCHAR)
SELECT winner FROM table_name_28 WHERE jockey = "jerry bailey" AND owner = "overbrook farm"
which winner has a jockery containing jerry bailey and the owner of overbrook farm?
CREATE TABLE table_name_28 (winner VARCHAR, jockey VARCHAR, owner VARCHAR)