answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT birth FROM table_name_79 WHERE became_queen = "15 april 1820"
When was the person who became queen on 15 April 1820 born?
CREATE TABLE table_name_79 (birth VARCHAR, became_queen VARCHAR)
SELECT country FROM table_name_16 WHERE place = "3"
What country placed 3?
CREATE TABLE table_name_16 (country VARCHAR, place VARCHAR)
SELECT date FROM table_name_5 WHERE loss = "geisel (0-1)"
What was the date of the game that had a loss of Geisel (0-1)?
CREATE TABLE table_name_5 (date VARCHAR, loss VARCHAR)
SELECT title FROM table_27547668_2 WHERE prod_code = 102
What is the title of the episode with production code 102?
CREATE TABLE table_27547668_2 (title VARCHAR, prod_code VARCHAR)
SELECT MAX(wins) FROM table_name_86 WHERE earnings___$__ = 130 OFFSET 002
Name the most wins for earnings of 130,002
CREATE TABLE table_name_86 (wins INTEGER, earnings___$__ VARCHAR)
SELECT player FROM table_name_16 WHERE position = "lock" AND caps = 1
What player is a lock with 1 cap?
CREATE TABLE table_name_16 (player VARCHAR, position VARCHAR, caps VARCHAR)
SELECT born_died FROM table_name_74 WHERE left_office = "1021" AND throne_name = "315"
What is teh born-died dates of the king with a throne name 315 and left office in 1021?
CREATE TABLE table_name_74 (born_died VARCHAR, left_office VARCHAR, throne_name VARCHAR)
SELECT status FROM table_176521_2 WHERE area_km_2 = "304.06"
What is the status(es) of the place with an area of 304.06 km2?
CREATE TABLE table_176521_2 (status VARCHAR, area_km_2 VARCHAR)
SELECT streak FROM table_name_56 WHERE game > 49
Which Streak has a Game larger than 49?
CREATE TABLE table_name_56 (streak VARCHAR, game INTEGER)
SELECT MAX(year) FROM table_name_37 WHERE time = 10.56
What is the most recent year with a time of 10.56?
CREATE TABLE table_name_37 (year INTEGER, time VARCHAR)
SELECT original_artist FROM table_15383430_1 WHERE theme = "Year They Were Born"
The theme year they were born belongs to what artist?
CREATE TABLE table_15383430_1 (original_artist VARCHAR, theme VARCHAR)
SELECT MAX(w) FROM table_17012578_37 WHERE l = 5
Of the teams that lost 5 games, what is the highest number of wins?
CREATE TABLE table_17012578_37 (w INTEGER, l VARCHAR)
SELECT bandwidth FROM table_17304621_14 WHERE downstream = "20 Mbit/s" AND price_tl = "69 TL"
What is the bandwidth for downstream of 20 mbit/s for 69 tl?
CREATE TABLE table_17304621_14 (bandwidth VARCHAR, downstream VARCHAR, price_tl VARCHAR)
SELECT rocket FROM table_name_31 WHERE cospar_id = "2002-001a"
What rocket has a COSPAR ID of 2002-001a?
CREATE TABLE table_name_31 (rocket VARCHAR, cospar_id VARCHAR)
SELECT internet_explorer FROM table_name_91 WHERE chrome = "29.07%"
What internet explorer has 29.07% for the chrome?
CREATE TABLE table_name_91 (internet_explorer VARCHAR, chrome VARCHAR)
SELECT MIN(apps) FROM table_name_24 WHERE name = "smith"
what is the apps when the name is smith?
CREATE TABLE table_name_24 (apps INTEGER, name VARCHAR)
SELECT years FROM table_name_7 WHERE rank > 6 AND name = "oleksandr kosyrin"
Which years had a rank of more than 6 and involved Oleksandr Kosyrin?
CREATE TABLE table_name_7 (years VARCHAR, rank VARCHAR, name VARCHAR)
SELECT first_elected FROM table_1342249_32 WHERE result = "Lost renomination Democratic loss"
Name the first elected for lost renomination democratic loss
CREATE TABLE table_1342249_32 (first_elected VARCHAR, result VARCHAR)
SELECT to_par FROM table_name_21 WHERE score = 70 - 70 = 140
What was the to par of the player of who scored 70-70=140?
CREATE TABLE table_name_21 (to_par VARCHAR, score VARCHAR)
SELECT result FROM table_name_43 WHERE week > 6 AND opponent = "buffalo bills"
What is the result when the week is greater than 6 and the Buffalo Bills are the opponent?
CREATE TABLE table_name_43 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_4 WHERE home_team = "st kilda"
When was the game played where St Kilda was the home team?
CREATE TABLE table_name_4 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(musical_guest_and_song) FROM table_11951237_2 WHERE production_code = "K0519"
How many musical guests and songs were in episodes with a production code k0519?
CREATE TABLE table_11951237_2 (musical_guest_and_song VARCHAR, production_code VARCHAR)
SELECT SUM(attendance) FROM table_name_21 WHERE opponent = "virginia tech"
How many people attended when Wake Forest played Virginia Tech?
CREATE TABLE table_name_21 (attendance INTEGER, opponent VARCHAR)
SELECT MIN(december) FROM table_27537870_5 WHERE location_attendance = "HSBC Arena/18,017"
Name the least december for hsbc arena/18,017
CREATE TABLE table_27537870_5 (december INTEGER, location_attendance VARCHAR)
SELECT country FROM table_name_85 WHERE status = "transferred" AND moving_to = "released" AND name = "solano"
Which country has the status of transferred, moving to of released, and Solano as the listed name?
CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR, status VARCHAR, moving_to VARCHAR)
SELECT network FROM table_2899987_2 WHERE origin = "Xalapa"
Which of the networks originate in Xalapa?
CREATE TABLE table_2899987_2 (network VARCHAR, origin VARCHAR)
SELECT date FROM table_27756314_10 WHERE high_points = "Michael Beasley , Martell Webster (16)"
What is the date when the high points is michael beasley , martell webster (16)?
CREATE TABLE table_27756314_10 (date VARCHAR, high_points VARCHAR)
SELECT score FROM table_name_91 WHERE attendance < 83 AND away_team = "raunds town"
What is the score when the attendance is less than 83 and Raunds Town is the away team?
CREATE TABLE table_name_91 (score VARCHAR, attendance VARCHAR, away_team VARCHAR)
SELECT entrant FROM table_name_77 WHERE year < 1960 AND engine = "veritas straight-6"
What entrant has a year earlier than 1960 and a veritas straight-6 engine?
CREATE TABLE table_name_77 (entrant VARCHAR, year VARCHAR, engine VARCHAR)
SELECT settlement FROM table_2562572_25 WHERE dominant_religion__2002_ = "Orthodox Christianity" AND type = "village" AND cyrillic_name_other_names = "Ратково"
When ратково is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement?
CREATE TABLE table_2562572_25 (settlement VARCHAR, cyrillic_name_other_names VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR)
SELECT COUNT(attendance) FROM table_name_65 WHERE date = "october 8"
How many were in Attendance on October 8?
CREATE TABLE table_name_65 (attendance VARCHAR, date VARCHAR)
SELECT surface FROM table_name_61 WHERE championship = "palermo, italy"
What is the surface of the palermo, italy championship?
CREATE TABLE table_name_61 (surface VARCHAR, championship VARCHAR)
SELECT MAX(episodes) FROM table_14855908_3 WHERE region_4 = "March 4, 2010"
How many episodes were put out in Region 4 on March 4, 2010?
CREATE TABLE table_14855908_3 (episodes INTEGER, region_4 VARCHAR)
SELECT COUNT(no_in_series) FROM table_2226817_12 WHERE directed_by = "Mark K. Samuels"
how many episodes has been directed by Mark K. Samuels ?
CREATE TABLE table_2226817_12 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT category_3 FROM table_name_77 WHERE category_1 = 0.05
If category 1 is 0.05, what is category 3?
CREATE TABLE table_name_77 (category_3 VARCHAR, category_1 VARCHAR)
SELECT record FROM table_21197135_1 WHERE opponent = "@ Utah"
What was the team record when the team played @ Utah?
CREATE TABLE table_21197135_1 (record VARCHAR, opponent VARCHAR)
SELECT season FROM table_name_63 WHERE year = "2005–06"
Which Season has a Year of 2005–06?
CREATE TABLE table_name_63 (season VARCHAR, year VARCHAR)
SELECT year_erected FROM table_name_51 WHERE artist = "enrique alciati"
what year did enrique alciati make a statue
CREATE TABLE table_name_51 (year_erected VARCHAR, artist VARCHAR)
SELECT AVG(destroyed) FROM table_name_17 WHERE 1990 > 12 AND damaged > 1 AND to_iran < 4 AND survived = 6
What's the average destroyed with a 1990 over 12, more than 1 damaged, 6 survivors, and a to Iran less than 4?
CREATE TABLE table_name_17 (destroyed INTEGER, survived VARCHAR, to_iran VARCHAR, damaged VARCHAR)
SELECT canadian_air_date FROM table_30012404_4 WHERE us_air_date = "24 August 2012"
What is the canadian air date when the US air date is 24 august 2012?
CREATE TABLE table_30012404_4 (canadian_air_date VARCHAR, us_air_date VARCHAR)
SELECT winning_song FROM table_name_32 WHERE debut_album = "in progress"
Which winning song had a debut album in progress?
CREATE TABLE table_name_32 (winning_song VARCHAR, debut_album VARCHAR)
SELECT hometown FROM table_29418619_1 WHERE name = "Jarrid Famous"
What is the hometown of Jarrid Famous?
CREATE TABLE table_29418619_1 (hometown VARCHAR, name VARCHAR)
SELECT weight__kg_ FROM table_15926991_1 WHERE jockey = "D. Nikolic"
What is the entry for weight in kilograms of jockey D. Nikolic?
CREATE TABLE table_15926991_1 (weight__kg_ VARCHAR, jockey VARCHAR)
SELECT AVG(2002) FROM table_name_31 WHERE 2010 < 5587 AND production_year = "sunflower" AND 2007 > 546
What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546?
CREATE TABLE table_name_31 (production_year VARCHAR)
SELECT office FROM table_name_74 WHERE liberal_ticket = "spencer c. young"
What is the Office when spencer c. young is on the liberal ticket??
CREATE TABLE table_name_74 (office VARCHAR, liberal_ticket VARCHAR)
SELECT seasons_and_winners FROM table_16884579_1 WHERE premiere = "28 January 2007"
Name the seasons and winners that airs 28 january 2007
CREATE TABLE table_16884579_1 (seasons_and_winners VARCHAR, premiere VARCHAR)
SELECT MIN(laps) FROM table_name_83 WHERE grid > 7 AND name = "fabian coulthard"
What is the lowest Laps, when Grid is greater than 7, and when Name is "Fabian Coulthard"?
CREATE TABLE table_name_83 (laps INTEGER, grid VARCHAR, name VARCHAR)
SELECT AVG(round) FROM table_name_94 WHERE college = "syracuse" AND pick < 3
what is the round when the college is syracuse and the pick is less than 3?
CREATE TABLE table_name_94 (round INTEGER, college VARCHAR, pick VARCHAR)
SELECT status FROM table_name_16 WHERE opposing_teams = "italy"
What is Status, when Opposing Teams is "Italy"?
CREATE TABLE table_name_16 (status VARCHAR, opposing_teams VARCHAR)
SELECT score FROM table_name_43 WHERE date = "10 april 2007" AND opponent = "selima sfar"
Name the score for 10 april 2007 and opponent of selima sfar
CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR, opponent VARCHAR)
SELECT height_m___ft FROM table_name_26 WHERE name = "shanghai world plaza"
What is the height for the Shanghai World Plaza?
CREATE TABLE table_name_26 (height_m___ft VARCHAR, name VARCHAR)
SELECT finish FROM table_name_83 WHERE country = "fiji"
For the player from Fiji, what was his finish?
CREATE TABLE table_name_83 (finish VARCHAR, country VARCHAR)
SELECT player FROM table_name_56 WHERE college = "alberta"
What Player has a College that is alberta?
CREATE TABLE table_name_56 (player VARCHAR, college VARCHAR)
SELECT COUNT(week) FROM table_name_30 WHERE attendance > 84 OFFSET 816
How many weeks had an attendance larger than 84,816?
CREATE TABLE table_name_30 (week VARCHAR, attendance INTEGER)
SELECT 1 AS st_leg FROM table_name_73 WHERE team__number1 = "unics kazan"
What was the team Unics Kazan's 1st leg score?
CREATE TABLE table_name_73 (team__number1 VARCHAR)
SELECT college FROM table_name_70 WHERE overall < 243 AND name = "tony green"
What college has an overall less than 243, and tony green as the name?
CREATE TABLE table_name_70 (college VARCHAR, overall VARCHAR, name VARCHAR)
SELECT stations FROM table_2093995_1 WHERE city__neighborhood = "Tarzana"
What are the stations in Tarzana?
CREATE TABLE table_2093995_1 (stations VARCHAR, city__neighborhood VARCHAR)
SELECT visitor FROM table_name_67 WHERE record = "31–31–8"
Which visiting team had a record of 31–31–8?
CREATE TABLE table_name_67 (visitor VARCHAR, record VARCHAR)
SELECT score FROM table_name_47 WHERE result = "2–1" AND date = "5 july 2007"
What is the Score that has a Result of 2–1 on 5 july 2007?
CREATE TABLE table_name_47 (score VARCHAR, result VARCHAR, date VARCHAR)
SELECT COUNT(place) FROM table_29583818_3 WHERE couple = "Laura and Colin"
How many times is the couple laura and colin?
CREATE TABLE table_29583818_3 (place VARCHAR, couple VARCHAR)
SELECT SUM(overall) FROM table_name_90 WHERE name = "charley barnes" AND pick < 3
How many overalls have charley barnes as the name, with a pick less than 3?
CREATE TABLE table_name_90 (overall INTEGER, name VARCHAR, pick VARCHAR)
SELECT MIN(year) FROM table_1241987_1 WHERE regular_season = "4th, Rocky Mountain"
What is the lowest year that regular season is 4th, Rocky Mountain?
CREATE TABLE table_1241987_1 (year INTEGER, regular_season VARCHAR)
SELECT MIN(year) FROM table_name_5 WHERE position < 1
What is the earliest year a song with a position less than 1 has?
CREATE TABLE table_name_5 (year INTEGER, position INTEGER)
SELECT MAX(crowd) FROM table_name_27 WHERE venue = "windy hill"
What was the attendance at Windy Hill?
CREATE TABLE table_name_27 (crowd INTEGER, venue VARCHAR)
SELECT first_leg FROM table_name_78 WHERE round = "semi-final"
What was the first leg of the semi-final?
CREATE TABLE table_name_78 (first_leg VARCHAR, round VARCHAR)
SELECT date FROM table_name_3 WHERE crowd > 25 OFFSET 000
What is the date of the game that had a crowd larger than 25,000?
CREATE TABLE table_name_3 (date VARCHAR, crowd INTEGER)
SELECT COUNT(production_code) FROM table_24425976_2 WHERE season = "10"
How many production codes are there for episode 10 in the season?
CREATE TABLE table_24425976_2 (production_code VARCHAR, season VARCHAR)
SELECT MAX(season) FROM table_1165048_1 WHERE leading_goalkicker = "Scott Simister (54)"
what is the maximum season where leading goalkicker is scott simister (54)
CREATE TABLE table_1165048_1 (season INTEGER, leading_goalkicker VARCHAR)
SELECT circuit FROM table_name_94 WHERE date = "4 june"
what is the circuit when the date is 4 june?
CREATE TABLE table_name_94 (circuit VARCHAR, date VARCHAR)
SELECT MAX(weeks_on_chart) FROM table_name_49 WHERE peak_position < 5 AND country = "sweden"
what is the most weeks on chart when the peak position is less than 5 and from Sweden?
CREATE TABLE table_name_49 (weeks_on_chart INTEGER, peak_position VARCHAR, country VARCHAR)
SELECT name FROM table_name_20 WHERE mission = "apollo 16" AND age_at_first_step = "36y 6m 18d"
Which astronaut went on the Apollo 16 mission at the age of 36y 6m 18d to step on the moon?
CREATE TABLE table_name_20 (name VARCHAR, mission VARCHAR, age_at_first_step VARCHAR)
SELECT entrant FROM table_name_65 WHERE chassis = "m185b m186"
What is the name of the entrant with a chassis of m185b m186?
CREATE TABLE table_name_65 (entrant VARCHAR, chassis VARCHAR)
SELECT away_team FROM table_name_28 WHERE venue = "lake oval"
What is the away team at lake oval?
CREATE TABLE table_name_28 (away_team VARCHAR, venue VARCHAR)
SELECT date FROM table_name_94 WHERE pole_position = "michael devaney"
Which Date has a Pole Position of michael devaney?
CREATE TABLE table_name_94 (date VARCHAR, pole_position VARCHAR)
SELECT SUM(bronze) FROM table_name_30 WHERE total < 4 AND gold > 0 AND silver = 0
Who has a total of the Bronze less than 4, gold more than 0, and no silver?
CREATE TABLE table_name_30 (bronze INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR)
SELECT AVG(played) FROM table_name_3 WHERE position > 3 AND against < 27 AND lost < 6
What is the average games Played with positions higher than 3 that have goals Against less than 27 and a Lost games smaller than 6?
CREATE TABLE table_name_3 (played INTEGER, lost VARCHAR, position VARCHAR, against VARCHAR)
SELECT COUNT(against) FROM table_name_32 WHERE position > 11
Which Against has a Position larger than 11?
CREATE TABLE table_name_32 (against VARCHAR, position INTEGER)
SELECT COUNT(year) FROM table_13012165_1 WHERE maryland = "Easton LL Easton"
In what year did Easton LL Easton play in Maryland?
CREATE TABLE table_13012165_1 (year VARCHAR, maryland VARCHAR)
SELECT score FROM table_name_7 WHERE save = "lancaster (3)"
Name the score for save of lancaster (3)
CREATE TABLE table_name_7 (score VARCHAR, save VARCHAR)
SELECT chinese_title FROM table_name_91 WHERE premiere = 31
What is the Chinese title with a premiere rating of 31?
CREATE TABLE table_name_91 (chinese_title VARCHAR, premiere VARCHAR)
SELECT date_performed FROM table_name_58 WHERE main_contestant = "karanvir bohra"
Which Date performed has a Main contestant of karanvir bohra?
CREATE TABLE table_name_58 (date_performed VARCHAR, main_contestant VARCHAR)
SELECT locale FROM table_1543845_63 WHERE stolen_ends = 12 AND shot_pct = "77%"
What was the location when the stolen ends is 12 and shot pct is 77%?
CREATE TABLE table_1543845_63 (locale VARCHAR, stolen_ends VARCHAR, shot_pct VARCHAR)
SELECT district FROM table_1341568_39 WHERE incumbent = "Curt Weldon"
What districts does incumbent Curt Weldon hold?
CREATE TABLE table_1341568_39 (district VARCHAR, incumbent VARCHAR)
SELECT analogue_terrestrial_channel FROM table_name_95 WHERE internet = "channel4.com"
What is the analogue terrestrial channel when the internet shows channel4.com?
CREATE TABLE table_name_95 (analogue_terrestrial_channel VARCHAR, internet VARCHAR)
SELECT paul_mccartney FROM table_name_15 WHERE linda_mccartney = "keyboards or drum"
Which Paul McCartney has a Linda McCartney of keyboards or drum?
CREATE TABLE table_name_15 (paul_mccartney VARCHAR, linda_mccartney VARCHAR)
SELECT COUNT(against) FROM table_name_96 WHERE points > 31 AND drawn > 6
How many Againsts have Points larger than 31 and a Drawn larger than 6?
CREATE TABLE table_name_96 (against VARCHAR, points VARCHAR, drawn VARCHAR)
SELECT title FROM table_14330096_3 WHERE writer = "Rob Heyland"
What's the title of the episode that Rob Heyland wrote?
CREATE TABLE table_14330096_3 (title VARCHAR, writer VARCHAR)
SELECT pick__number FROM table_name_8 WHERE position = "ol" AND player = "dominic picard"
What numbered pick was dominic picard, ol, selected?
CREATE TABLE table_name_8 (pick__number VARCHAR, position VARCHAR, player VARCHAR)
SELECT country FROM table_14752049_1 WHERE rank = 5
Which country has a rank of 5?
CREATE TABLE table_14752049_1 (country VARCHAR, rank VARCHAR)
SELECT japanese_title FROM table_name_89 WHERE episodes < 11 AND romaji_title = "regatta~kimi to ita eien~"
For what Japanese title is there less than 11 episodes and the Romaji title is Regatta~Kimi to Ita Eien~?
CREATE TABLE table_name_89 (japanese_title VARCHAR, episodes VARCHAR, romaji_title VARCHAR)
SELECT green_communist FROM table_name_87 WHERE left_bloc = "3.0%"
What is the result for the Green-Communist party when the Left Bloc has 3.0%?
CREATE TABLE table_name_87 (green_communist VARCHAR, left_bloc VARCHAR)
SELECT driver___rider FROM table_name_58 WHERE car___motorcycle = "indian"
Which driver is Indian?
CREATE TABLE table_name_58 (driver___rider VARCHAR, car___motorcycle VARCHAR)
SELECT COUNT(location_attendance) FROM table_27882867_6 WHERE date = "January 11"
How many games did they play on january 11?
CREATE TABLE table_27882867_6 (location_attendance VARCHAR, date VARCHAR)
SELECT MIN(games_played) FROM table_22993636_5 WHERE steals = 50
What is the lowest number of games played by the player with 50 steals?
CREATE TABLE table_22993636_5 (games_played INTEGER, steals VARCHAR)
SELECT COUNT(frequency_mhz) FROM table_name_22 WHERE erp_w = 1 AND call_sign = "w215bj"
Name the total number of frequency Mhz for when it has ERP W of 1 and call sign of w215bj
CREATE TABLE table_name_22 (frequency_mhz VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
SELECT team FROM table_name_5 WHERE captain = "robbie earle"
On which team was Robbie Earle the captain?
CREATE TABLE table_name_5 (team VARCHAR, captain VARCHAR)
SELECT MIN(rank) FROM table_name_21 WHERE name = "oscar míguez" AND goals > 107
When Oscar Míguez had over 107 goals, what was the lowest he ranked?
CREATE TABLE table_name_21 (rank INTEGER, name VARCHAR, goals VARCHAR)
SELECT MIN(to_par) FROM table_name_9 WHERE player = "bobby cruickshank"
What is the lowest par for Bobby Cruickshank?
CREATE TABLE table_name_9 (to_par INTEGER, player VARCHAR)
SELECT ifop_5_11_09 FROM table_name_18 WHERE ifop_1_9_09 = "5%"
Name the lfop for 5/11/09 with lfop 1/9/09 of 5%
CREATE TABLE table_name_18 (ifop_5_11_09 VARCHAR, ifop_1_9_09 VARCHAR)
SELECT MAX(founded) FROM table_27816698_2 WHERE nickname = "Titans"
When was the Titans founded?
CREATE TABLE table_27816698_2 (founded INTEGER, nickname VARCHAR)