answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT race_caller FROM table_22514845_5 WHERE s_host = "Jim McKay" AND reporters = "Howard Cosell"
Name the race caller for jim mckay and howard cosell
CREATE TABLE table_22514845_5 (race_caller VARCHAR, s_host VARCHAR, reporters VARCHAR)
SELECT party FROM table_2668329_18 WHERE incumbent = "Hutchins G. Burton"
Name the party for hutchins g. burton
CREATE TABLE table_2668329_18 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(publisher) FROM table_1217448_1 WHERE cover_date = "May 1939"
what is the total number of publisher where cover date is may 1939
CREATE TABLE table_1217448_1 (publisher VARCHAR, cover_date VARCHAR)
SELECT original_air_date FROM table_29803475_2 WHERE us_viewers__million_ = "0.23"
What is every original air date with U.S. viewers of 0.23 million?
CREATE TABLE table_29803475_2 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT opponent_in_the_final FROM table_name_42 WHERE tournament = "blenheim"
Who is the opponent in the final of the Tournament of Blenheim?
CREATE TABLE table_name_42 (opponent_in_the_final VARCHAR, tournament VARCHAR)
SELECT final_score FROM table_name_11 WHERE host_team = "detroit lions"
What was the final score in the game in which the Detroit Lions were the home team?
CREATE TABLE table_name_11 (final_score VARCHAR, host_team VARCHAR)
SELECT date__ce_ FROM table_16162581_1 WHERE pinyin = "qíngyuán … yìmǎ"
Name the date for qíngyuán … yìmǎ
CREATE TABLE table_16162581_1 (date__ce_ VARCHAR, pinyin VARCHAR)
SELECT year_startup FROM table_name_41 WHERE operator = "apache energy/inpex"
What was the startup year for the project with apache energy/inpex as the operator?
CREATE TABLE table_name_41 (year_startup VARCHAR, operator VARCHAR)
SELECT AVG(games) FROM table_name_47 WHERE team = "maccabi tel aviv" AND rebounds < 208
What is the number of Games for the Maccabi Tel Aviv Team with less than 208 Rebounds?
CREATE TABLE table_name_47 (games INTEGER, team VARCHAR, rebounds VARCHAR)
SELECT SUM(year) FROM table_name_94 WHERE seats = "48 of 120" AND _percentage_votes > 34.18
In what Year were there 48 of 120 Seats and a % votes larger than 34.18?
CREATE TABLE table_name_94 (year INTEGER, seats VARCHAR, _percentage_votes VARCHAR)
SELECT competition FROM table_1233026_4 WHERE aggregate = "1–4"
What is the competition when aggregate is 1–4?
CREATE TABLE table_1233026_4 (competition VARCHAR, aggregate VARCHAR)
SELECT COUNT(goals_scored) FROM table_name_7 WHERE place > 5 AND lost = 11 AND goals_conceded < 45
How many goals that were scored had a place of more than 5, a lost of 11, and goals conceded of less than 45?
CREATE TABLE table_name_7 (goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR, lost VARCHAR)
SELECT Title FROM Cartoon ORDER BY title
List the title of all cartoons in alphabetical order.
CREATE TABLE Cartoon (Title VARCHAR, title VARCHAR)
SELECT first_name, last_name FROM Maintenance_Engineers WHERE NOT engineer_id IN (SELECT engineer_id FROM Engineer_Visits)
Which engineers have never visited to maintain the assets? List the engineer first name and last name.
CREATE TABLE Engineer_Visits (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR)
SELECT MAX(goals) FROM table_name_4 WHERE points = 13 AND assists = 10 AND club = "eisbären berlin"
What is the highest number of goals Eisbären Berlin had along with 13 points and 10 assists?
CREATE TABLE table_name_4 (goals INTEGER, club VARCHAR, points VARCHAR, assists VARCHAR)
SELECT hangul FROM table_name_3 WHERE kana = "ちゅうせいなんどう"
What is the Hangul of the Province with a Kana of ちゅうせいなんどう?
CREATE TABLE table_name_3 (hangul VARCHAR, kana VARCHAR)
SELECT charter_range FROM table_name_15 WHERE status = "inactive" AND state = "north carolina"
What years were the inactive North Carolina chapter active?
CREATE TABLE table_name_15 (charter_range VARCHAR, status VARCHAR, state VARCHAR)
SELECT area__1930__in_1, 000 AS skm_2 FROM table_name_72 WHERE capital = "brześć nad bugiem"
Capital of brześć nad bugiem has what area (1930) in 1000skm?
CREATE TABLE table_name_72 (area__1930__in_1 VARCHAR, capital VARCHAR)
SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.mainten...
Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.
CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR); CREATE TABLE Maintenance_Engineers (company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR, company_name VARCHAR)
SELECT 2011 FROM table_name_95 WHERE country = "united states"
What was the value in 2011 for United States?
CREATE TABLE table_name_95 (country VARCHAR)
SELECT vacator FROM table_224840_4 WHERE date_successor_seated = "November 26, 1800"
Who left office on November 26, 1800?
CREATE TABLE table_224840_4 (vacator VARCHAR, date_successor_seated VARCHAR)
SELECT laps FROM table_name_77 WHERE grid > 9 AND driver = "mark webber"
Which lap number had a grid number bigger than 9 and where the driver was Mark Webber?
CREATE TABLE table_name_77 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT class FROM table_name_16 WHERE chassis = "mazda 787b"
Which Class has a Chassis of Mazda 787B?
CREATE TABLE table_name_16 (class VARCHAR, chassis VARCHAR)
SELECT position FROM table_10015132_1 WHERE school_club_team = "Baylor"
What position did the player from Baylor play?
CREATE TABLE table_10015132_1 (position VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_40 WHERE year_born = 1981
Who is the Player born in 1981?
CREATE TABLE table_name_40 (player VARCHAR, year_born VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_51 WHERE place = "1" AND to_par < 1
How much money for 1st place with a to par less than 1?
CREATE TABLE table_name_51 (money___ VARCHAR, place VARCHAR, to_par VARCHAR)
SELECT DISTINCT Theme FROM journal
Show the distinct themes of journals.
CREATE TABLE journal (Theme VARCHAR)
SELECT name FROM table_name_30 WHERE county = "sheridan" AND built = "1915"
What bridge in Sheridan county was built in 1915?
CREATE TABLE table_name_30 (name VARCHAR, county VARCHAR, built VARCHAR)
SELECT first_year FROM table_12148147_2 WHERE third_year = "Geometry"
What is the first year course in the program where geometry is taken in the third year?
CREATE TABLE table_12148147_2 (first_year VARCHAR, third_year VARCHAR)
SELECT COUNT(silver) FROM table_name_62 WHERE total < 6 AND bronze < 0
How many silvers for the nation with under 6 total and under 0 bronze?
CREATE TABLE table_name_62 (silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT developer FROM table_name_96 WHERE year_of_release = "cancelled"
Which developer has a year of cancelled releases?
CREATE TABLE table_name_96 (developer VARCHAR, year_of_release VARCHAR)
SELECT date FROM table_name_59 WHERE attendance > 20 OFFSET 682
What is the date of the game when attendance is more than 20,682?
CREATE TABLE table_name_59 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_41 WHERE team = "miami"
What is the date of the game against miami?
CREATE TABLE table_name_41 (date VARCHAR, team VARCHAR)
SELECT result FROM table_22118197_1 WHERE english_title = "Morning Undersea"
What was the result for the film with the English name of Morning Undersea?
CREATE TABLE table_22118197_1 (result VARCHAR, english_title VARCHAR)
SELECT name FROM table_name_56 WHERE talent = "ballet en pointe"
Whose talent was ballet en pointe?
CREATE TABLE table_name_56 (name VARCHAR, talent VARCHAR)
SELECT location FROM table_1140082_2 WHERE race = "German Grand Prix"
Where is the German Grand Prix?
CREATE TABLE table_1140082_2 (location VARCHAR, race VARCHAR)
SELECT COUNT(number) FROM table_name_52 WHERE born = "1368"
How many people were born in 1368?
CREATE TABLE table_name_52 (number VARCHAR, born VARCHAR)
SELECT class FROM table_name_49 WHERE part_3 = "trafen"
What is the class for trafen in part 3?
CREATE TABLE table_name_49 (class VARCHAR, part_3 VARCHAR)
SELECT non_suited_match FROM table_name_60 WHERE number_of_decks > 6
Name the Non-Suited Match that has greater than 6 Number of Decks.
CREATE TABLE table_name_60 (non_suited_match VARCHAR, number_of_decks INTEGER)
SELECT profits__billion_$_ FROM table_1682026_6 WHERE market_value__billion_$_ = "204.9"
what is the amount of profits in billions for companies with a market value of 204.9 billion?
CREATE TABLE table_1682026_6 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)
SELECT _number_of_lanes FROM table_name_43 WHERE street = "20th street"
What is the # of lanes on 20th street?
CREATE TABLE table_name_43 (_number_of_lanes VARCHAR, street VARCHAR)
SELECT occupied_territory FROM table_10335_1 WHERE operational = "May 1940 – January 1945"
what's the occupied territory with operational period of may 1940 – january 1945
CREATE TABLE table_10335_1 (occupied_territory VARCHAR, operational VARCHAR)
SELECT date FROM table_name_31 WHERE away_team = "st kilda"
On what date is St Kilda the away team?
CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR)
SELECT director FROM table_17155250_1 WHERE original_title = "The Patience Stone"
Who was the director of the film with the original title of "The Patience Stone"?
CREATE TABLE table_17155250_1 (director VARCHAR, original_title VARCHAR)
SELECT type FROM table_2562572_50 WHERE settlement = "Jazak"
What type of settlement is Jazak?
CREATE TABLE table_2562572_50 (type VARCHAR, settlement VARCHAR)
SELECT region___nuts_2006_ FROM table_2293510_1 WHERE ppp__million_€_ = 23164
Where is the PPP 23164 million €?
CREATE TABLE table_2293510_1 (region___nuts_2006_ VARCHAR, ppp__million_€_ VARCHAR)
SELECT label FROM table_name_5 WHERE format = "cd single" AND date = "1993"
What Label released a CD single in 1993?
CREATE TABLE table_name_5 (label VARCHAR, format VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_24 WHERE game > 77 AND team = "milwaukee"
Who had the high assist in a game number above 77 for Milwaukee?
CREATE TABLE table_name_24 (high_assists VARCHAR, game VARCHAR, team VARCHAR)
SELECT type FROM table_name_92 WHERE country = "sco"
What is the type of sco country?
CREATE TABLE table_name_92 (type VARCHAR, country VARCHAR)
SELECT MAX(played) FROM table_name_92 WHERE against < 18 AND points < 10
Which Played is the highest one that has an Against smaller than 18, and Points smaller than 10?
CREATE TABLE table_name_92 (played INTEGER, against VARCHAR, points VARCHAR)
SELECT AVG(place) FROM table_name_70 WHERE ties < 1 AND points = "6 qc" AND losses > 3
Name the average place for ties less than 1 and losess more than 3 with points of 6 qc
CREATE TABLE table_name_70 (place INTEGER, losses VARCHAR, ties VARCHAR, points VARCHAR)
SELECT result FROM table_name_10 WHERE week > 11 AND date = "december 14, 1986"
What was the Result of the game on December 14, 1986 after Week 11?
CREATE TABLE table_name_10 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT role FROM table_name_22 WHERE pick__number = 10
What role did Pick # 10 have?
CREATE TABLE table_name_22 (role VARCHAR, pick__number VARCHAR)
SELECT type FROM table_name_81 WHERE themed_land = "wild asia" AND opened_in = 2000
What type ride is Wild Asia that opened in 2000?
CREATE TABLE table_name_81 (type VARCHAR, themed_land VARCHAR, opened_in VARCHAR)
SELECT to_par FROM table_name_85 WHERE score = 71 - 73 - 71 - 71 = 286
What To par has a Score of 71-73-71-71=286?
CREATE TABLE table_name_85 (to_par VARCHAR, score VARCHAR)
SELECT bird_uniform FROM table_name_8 WHERE eagle_riders = "mickey dugan"
What is the bird uniform for Eagle Rider Mickey Dugan?
CREATE TABLE table_name_8 (bird_uniform VARCHAR, eagle_riders VARCHAR)
SELECT returning FROM table_name_13 WHERE last_aired = 2002
When did a show last aired in 2002 return?
CREATE TABLE table_name_13 (returning VARCHAR, last_aired VARCHAR)
SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC
What are the names of body builders in descending order of total scores?
CREATE TABLE body_builder (People_ID VARCHAR, Total VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT tournament FROM table_name_24 WHERE 1983 = "0 / 1"
In 1983 what is the tournament that is 0 / 1?
CREATE TABLE table_name_24 (tournament VARCHAR)
SELECT position FROM table_name_3 WHERE player = "jj gagiano"
What position for jj gagiano?
CREATE TABLE table_name_3 (position VARCHAR, player VARCHAR)
SELECT MIN(draws) FROM table_name_98 WHERE club = "burgos cf" AND position > 8
Which Draws have a Club of burgos cf, and a Position larger than 8?
CREATE TABLE table_name_98 (draws INTEGER, club VARCHAR, position VARCHAR)
SELECT aid FROM Aircraft WHERE distance > 1000
Show ids for all aircrafts with more than 1000 distance.
CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER)
SELECT result FROM table_name_41 WHERE attendance = "82,113"
What are the results for the game with 82,113 attending?
CREATE TABLE table_name_41 (result VARCHAR, attendance VARCHAR)
SELECT COUNT(loss) FROM table_name_84 WHERE coach = "john kowalski" AND pts < 9
What is the number of losses that coach John Kowalski has with a PTS smaller than 9?
CREATE TABLE table_name_84 (loss VARCHAR, coach VARCHAR, pts VARCHAR)
SELECT event FROM table_name_60 WHERE method = "tko (punches)" AND record = "7-1"
What is the event when the method was tko (punches), and the record was 7-1?
CREATE TABLE table_name_60 (event VARCHAR, method VARCHAR, record VARCHAR)
SELECT COUNT(denominations__gold_weight_) FROM table_2592308_1 WHERE country = "Austria"
How many catagories for denominations does Austria have?
CREATE TABLE table_2592308_1 (denominations__gold_weight_ VARCHAR, country VARCHAR)
SELECT captain FROM table_name_56 WHERE team = "crystal palace"
Who was the team captain for Crystal Palace?
CREATE TABLE table_name_56 (captain VARCHAR, team VARCHAR)
SELECT high_rebounds FROM table_22654073_13 WHERE date = "May 11"
List all high rebound entries from May 11.
CREATE TABLE table_22654073_13 (high_rebounds VARCHAR, date VARCHAR)
SELECT MIN(rank) FROM table_18590048_1 WHERE title = "Super Mario Land 2: 6 Golden Coins"
What rank is Super Mario Land 2: 6 Golden Coins?
CREATE TABLE table_18590048_1 (rank INTEGER, title VARCHAR)
SELECT decision FROM table_name_35 WHERE opponent = "new york yankees" AND season = "1983"
What was the decision for the 1983 season for the game played against the New York Yankees?
CREATE TABLE table_name_35 (decision VARCHAR, opponent VARCHAR, season VARCHAR)
SELECT result FROM table_name_89 WHERE competition = "international friendly" AND date = "may 15, 1966"
What is the result of the International Friendly competition on May 15, 1966?
CREATE TABLE table_name_89 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT result FROM table_1360997_2 WHERE venue = "Rosehill"
Was the rosehill venue a win or loss?
CREATE TABLE table_1360997_2 (result VARCHAR, venue VARCHAR)
SELECT MAX(tries) FROM table_name_49 WHERE player = "paul sykes" AND points > 0
How many tries did the player Paul Sykes take when he earned 0 points?
CREATE TABLE table_name_49 (tries INTEGER, player VARCHAR, points VARCHAR)
SELECT under_13 FROM table_26368963_1 WHERE under_11 = "Aly Abou El Einen"
When the under-11 was Aly Abou El Einen, who was the under-13?
CREATE TABLE table_26368963_1 (under_13 VARCHAR, under_11 VARCHAR)
SELECT MAX(year) FROM table_1914090_2 WHERE europe = 471895
What is the latest year that Europe had 471895?
CREATE TABLE table_1914090_2 (year INTEGER, europe VARCHAR)
SELECT score FROM table_name_84 WHERE record = "25-41-9"
What was the score when they had a 25-41-9 record?
CREATE TABLE table_name_84 (score VARCHAR, record VARCHAR)
SELECT date_outgoing FROM table_name_12 WHERE outgoing_manager = "peter butler"
When did Peter Butler leave his team?
CREATE TABLE table_name_12 (date_outgoing VARCHAR, outgoing_manager VARCHAR)
SELECT SUM(pick) FROM table_name_23 WHERE school = "tulane university"
What is the pick number for tulane university?
CREATE TABLE table_name_23 (pick INTEGER, school VARCHAR)
SELECT hometown FROM table_name_58 WHERE player = "shabazz muhammad"
Where is shabazz muhammad from?
CREATE TABLE table_name_58 (hometown VARCHAR, player VARCHAR)
SELECT player FROM table_name_16 WHERE pick = "24"
Which player is the 24 pick?
CREATE TABLE table_name_16 (player VARCHAR, pick VARCHAR)
SELECT mls_team FROM table_29836557_2 WHERE player = "Babayele Sodade"
What MLS team picked Babayele Sodade?
CREATE TABLE table_29836557_2 (mls_team VARCHAR, player VARCHAR)
SELECT COUNT(reason_for_change) FROM table_2160008_4 WHERE date_successor_seated = "May 11, 1939"
Name the number of reason for change on may 11, 1939
CREATE TABLE table_2160008_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT COUNT(diff) FROM table_name_50 WHERE lost < 5 AND points < 32
What is the difference with a loss smaller than 5 and points lower than 32?
CREATE TABLE table_name_50 (diff VARCHAR, lost VARCHAR, points VARCHAR)
SELECT july FROM table_1539201_1
Name the julys
CREATE TABLE table_1539201_1 (july VARCHAR)
SELECT us_viewers__in_millions_ FROM table_24223834_3 WHERE directed_by = "Daniel H. Forer"
How many million U.S. viewers watched the episode that Daniel H. Forer directed?
CREATE TABLE table_24223834_3 (us_viewers__in_millions_ VARCHAR, directed_by VARCHAR)
SELECT MAX(pick__number) FROM table_2508633_5 WHERE nfl_team = "Los Angeles Raiders"
What is the highest pick number the los angeles raiders got?
CREATE TABLE table_2508633_5 (pick__number INTEGER, nfl_team VARCHAR)
SELECT runner_s__up FROM table_1615980_4 WHERE tournament = "Volvo Masters Andalucia"
Who was the runner up at the Volvo Masters Andalucia?
CREATE TABLE table_1615980_4 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT area FROM table_name_63 WHERE roll = 26
What is the Area with 26 in Roll
CREATE TABLE table_name_63 (area VARCHAR, roll VARCHAR)
SELECT SUM(drawn) FROM table_name_32 WHERE games > 6
How many Drawn has a Games larger than 6?
CREATE TABLE table_name_32 (drawn INTEGER, games INTEGER)
SELECT became_consort FROM table_name_31 WHERE spouse = "christian ix"
Name the became consort for christian ix spouse
CREATE TABLE table_name_31 (became_consort VARCHAR, spouse VARCHAR)
SELECT SUM(high_schools) FROM table_name_38 WHERE cemeteries = 8
How many High schools in the Region with 8 Cemeteries?
CREATE TABLE table_name_38 (high_schools INTEGER, cemeteries VARCHAR)
SELECT director FROM table_17155250_1 WHERE original_title = "16 Days in Afghanistan"
Who was the director of the film with an original title of "16 Days in Afghanistan"?
CREATE TABLE table_17155250_1 (director VARCHAR, original_title VARCHAR)
SELECT result FROM table_21058823_1 WHERE opponent = "Villanova"
What did they do against Villanova?
CREATE TABLE table_21058823_1 (result VARCHAR, opponent VARCHAR)
SELECT velodrome FROM table_name_6 WHERE year < 1950 AND country = "france" AND pacing = "tandem paced" AND distance = "951.750 km"
What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750 km?
CREATE TABLE table_name_6 (velodrome VARCHAR, distance VARCHAR, pacing VARCHAR, year VARCHAR, country VARCHAR)
SELECT COUNT(2008 AS _candidates) FROM table_16185956_1 WHERE incumbent = "Doc Hastings"
How many groups of candidates are there in there in the district where the incumbent is Doc Hastings?
CREATE TABLE table_16185956_1 (incumbent VARCHAR)
SELECT written_by FROM table_name_33 WHERE production_code = "ad1d09"
tell me the writer of production code ad1d09.
CREATE TABLE table_name_33 (written_by VARCHAR, production_code VARCHAR)
SELECT quantity_made FROM table_name_38 WHERE class = "d-2"
what is the quantity made when the class is d-2?
CREATE TABLE table_name_38 (quantity_made VARCHAR, class VARCHAR)
SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 3
What are the first and last names of the instructors who teach the top 3 number of courses?
CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR)
SELECT call_sign FROM table_name_26 WHERE frequency = "102.5 fm"
Which Call sign has a Frequency of 102.5 fm?
CREATE TABLE table_name_26 (call_sign VARCHAR, frequency VARCHAR)
SELECT date FROM table_18042031_16 WHERE against = "Morocco"
What date was the match against Morocco played?
CREATE TABLE table_18042031_16 (date VARCHAR, against VARCHAR)