answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_11960944_4 WHERE team = "@ Memphis"
Which date was the team playing @ Memphis?
CREATE TABLE table_11960944_4 (date VARCHAR, team VARCHAR)
SELECT rider FROM table_name_42 WHERE grid > 6 AND laps = 28 AND time = "+39.476"
Which Rider has a Grid larger than 6, and has Laps of 28, and a Time of +39.476?
CREATE TABLE table_name_42 (rider VARCHAR, time VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT MAX(cars_entered) FROM table_name_69 WHERE season = 1958
What are the largest Cars Entered with a Season of 1958?
CREATE TABLE table_name_69 (cars_entered INTEGER, season VARCHAR)
SELECT MAX(defective_year) FROM table_28985631_1 WHERE regular_year = "29 days" AND month_sequence = 2
What is the defective year for the regular year of 29 days and month sequence of 2?
CREATE TABLE table_28985631_1 (defective_year INTEGER, regular_year VARCHAR, month_sequence VARCHAR)
SELECT venue FROM table_name_4 WHERE home_team = "collingwood"
What venue features collingwood as the home side?
CREATE TABLE table_name_4 (venue VARCHAR, home_team VARCHAR)
SELECT region FROM table_name_93 WHERE catalog = "sir021-6"
What region has the catalog sir021-6?
CREATE TABLE table_name_93 (region VARCHAR, catalog VARCHAR)
SELECT mlb_draft FROM table_11677100_3 WHERE player = "Shion Newton"
What's Shion Newton's MLB draft result?
CREATE TABLE table_11677100_3 (mlb_draft VARCHAR, player VARCHAR)
SELECT regular_season___preseason FROM table_name_70 WHERE date = "august 25, 2007"
What type of regular season/preseason game was played on August 25, 2007?
CREATE TABLE table_name_70 (regular_season___preseason VARCHAR, date VARCHAR)
SELECT date FROM table_name_77 WHERE opponent = "royals" AND record = "18-12"
What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12?
CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT name FROM table_name_18 WHERE goals = 25
What name is the goals of 25?
CREATE TABLE table_name_18 (name VARCHAR, goals VARCHAR)
SELECT third FROM table_name_47 WHERE skip = "barbora vojtusova"
What is the name of the third who has Barbora Vojtusova as Skip?
CREATE TABLE table_name_47 (third VARCHAR, skip VARCHAR)
SELECT winning_driver FROM table_name_30 WHERE date = "18 may"
Who is Winning driver on 18 may?
CREATE TABLE table_name_30 (winning_driver VARCHAR, date VARCHAR)
SELECT introductory_phrase FROM table_25691838_11 WHERE episode__number = 794
What was the introductory phrase for episode 794?
CREATE TABLE table_25691838_11 (introductory_phrase VARCHAR, episode__number VARCHAR)
SELECT winner FROM table_name_11 WHERE year = 2013
What is Winner, when Year is 2013?
CREATE TABLE table_name_11 (winner VARCHAR, year VARCHAR)
SELECT input_clock__mhz_ FROM table_15261_1 WHERE s_spec_number = "SK096"
What is the input clock (mhz) for s-spec number sk096?
CREATE TABLE table_15261_1 (input_clock__mhz_ VARCHAR, s_spec_number VARCHAR)
SELECT magazine_type FROM table_name_32 WHERE title = "dengeki game appli"
What was the type of the magazine that was named dengeki game appli?
CREATE TABLE table_name_32 (magazine_type VARCHAR, title VARCHAR)
SELECT date_s__released FROM table_name_76 WHERE democratic_alternative = "1%" AND labour = "34%"
Which date released had a Democratic Alternative value of 1% and Labour of 34%?
CREATE TABLE table_name_76 (date_s__released VARCHAR, democratic_alternative VARCHAR, labour VARCHAR)
SELECT city___state FROM table_name_79 WHERE event_circuit = "hidden valley raceway"
What city is the hidden valley raceway in?
CREATE TABLE table_name_79 (city___state VARCHAR, event_circuit VARCHAR)
SELECT diameter__km_ FROM table_16799784_7 WHERE latitude = "23.0S"
what is the diameter (km) of the feature of latitude 23.0s
CREATE TABLE table_16799784_7 (diameter__km_ VARCHAR, latitude VARCHAR)
SELECT SUM(laps) FROM table_name_16 WHERE year < 1987
What is the total number of Laps that's got a Year less than 1987?
CREATE TABLE table_name_16 (laps INTEGER, year INTEGER)
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code
Show all cities and corresponding number of students.
CREATE TABLE Student (city_code VARCHAR)
SELECT platform FROM table_name_84 WHERE publisher = "mindark"
On what platform does Mindark publish?
CREATE TABLE table_name_84 (platform VARCHAR, publisher VARCHAR)
SELECT COUNT(dominant_religion__2002_) FROM table_2562572_30 WHERE settlement = "Đala"
How many dominant religions are in đala?
CREATE TABLE table_2562572_30 (dominant_religion__2002_ VARCHAR, settlement VARCHAR)
SELECT frequency FROM table_name_64 WHERE voltage = "1.6v" AND part_number_s_ = "kp80524kx300256kc80524kx300256pmg30002002aa"
Which frequency has voltage of 1.6v and part number kp80524kx300256kc80524kx300256pmg30002002aa?
CREATE TABLE table_name_64 (frequency VARCHAR, voltage VARCHAR, part_number_s_ VARCHAR)
SELECT rank FROM table_name_52 WHERE actor_actress = "jolene anderson"
What is Jolene Anderson's Rank?
CREATE TABLE table_name_52 (rank VARCHAR, actor_actress VARCHAR)
SELECT MAX(silver) FROM table_name_19 WHERE gold > 4 AND nation = "united states" AND total > 26
What is the largest silver with Gold larger than 4, a Nation of united states, and a Total larger than 26?
CREATE TABLE table_name_19 (silver INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT event FROM table_name_75 WHERE athlete = "tatyana lebedeva"
Which event was Tatyana Lebedeva in?
CREATE TABLE table_name_75 (event VARCHAR, athlete VARCHAR)
SELECT COUNT(total_region) FROM table_name_40 WHERE eidsvold = 970 AND biggenden > 1 OFFSET 570
What is the Total Region number of hte one that has Eidsvold at 970 and Biggenden larger than 1,570?
CREATE TABLE table_name_40 (total_region VARCHAR, eidsvold VARCHAR, biggenden VARCHAR)
SELECT MAX(losses) FROM table_name_58 WHERE draws > 0
How many Losses have Draws larger than 0?
CREATE TABLE table_name_58 (losses INTEGER, draws INTEGER)
SELECT winner FROM table_name_22 WHERE prize = "zł2,153,999"
What Winner had a Prize of zł2,153,999?
CREATE TABLE table_name_22 (winner VARCHAR, prize VARCHAR)
SELECT MAX(joined) FROM table_1974782_1 WHERE institution = "Clark University"
When has Clark University joined the Conference?
CREATE TABLE table_1974782_1 (joined INTEGER, institution VARCHAR)
SELECT record FROM table_22871239_9 WHERE date = "March 16"
Name the record for march 16
CREATE TABLE table_22871239_9 (record VARCHAR, date VARCHAR)
SELECT MAX(points) FROM table_name_64 WHERE game < 43 AND january > 8
Which Points is the highest one that has a Game smaller than 43, and a January larger than 8?
CREATE TABLE table_name_64 (points INTEGER, game VARCHAR, january VARCHAR)
SELECT decision FROM table_name_51 WHERE home = "anaheim"
Who was the Decision at Anaheim's home game?
CREATE TABLE table_name_51 (decision VARCHAR, home VARCHAR)
SELECT MIN(won) FROM table_13018091_1 WHERE club = "Whitehaven"
How many games did whitehaven win?
CREATE TABLE table_13018091_1 (won INTEGER, club VARCHAR)
SELECT AVG(year) FROM table_name_30 WHERE position = "13th"
What is the average year in which the finish position was 13th?
CREATE TABLE table_name_30 (year INTEGER, position VARCHAR)
SELECT score FROM table_name_94 WHERE home_team = "tottenham hotspur"
What is the score of the home team tottenham hotspur?
CREATE TABLE table_name_94 (score VARCHAR, home_team VARCHAR)
SELECT default_desktop_environment FROM table_27329061_2 WHERE code_base = "Ubuntu 8.04" AND edition = "Fluxbox CE"
What is the default desktop environment when the code base is ubuntu 8.04 and edition is fluxbox ce?
CREATE TABLE table_27329061_2 (default_desktop_environment VARCHAR, code_base VARCHAR, edition VARCHAR)
SELECT college FROM table_name_62 WHERE position = "safety"
The safety position is represented in the draft by which colleges?
CREATE TABLE table_name_62 (college VARCHAR, position VARCHAR)
SELECT date_of_successors_formal_installation FROM table_225099_3 WHERE reason_for_change = "Resigned December 4, 1819"
What is the date of successors formal installation when the reason for change is resigned december 4, 1819?
CREATE TABLE table_225099_3 (date_of_successors_formal_installation VARCHAR, reason_for_change VARCHAR)
SELECT gt_winning_car FROM table_27965906_2 WHERE a_winning_car = "#88 Team Mitsubishi 88 Mitsubishi Starion"
Name the gt winning car for #88 team mitsubishi 88 mitsubishi starion
CREATE TABLE table_27965906_2 (gt_winning_car VARCHAR, a_winning_car VARCHAR)
SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT MIN(amount_piad) FROM claim_headers)
What is the name of the customer who has made the minimum amount of payment in one claim?
CREATE TABLE claim_headers (amount_piad INTEGER); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (policy_id VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (policy_id VARCHAR, amount_piad INTEGER)
SELECT wins FROM table_name_82 WHERE wpct = "0.2"
What wins has WPct of 0.2?
CREATE TABLE table_name_82 (wins VARCHAR, wpct VARCHAR)
SELECT record FROM table_name_9 WHERE opponent = "atlanta hawks"
What is the record for the opponent Atlanta Hawks?
CREATE TABLE table_name_9 (record VARCHAR, opponent VARCHAR)
SELECT employment_area FROM table_21531764_1 WHERE october_2010 = "5.7"
Where is the rate 5.7 in October 2010?
CREATE TABLE table_21531764_1 (employment_area VARCHAR, october_2010 VARCHAR)
SELECT home_team AS score FROM table_name_99 WHERE venue = "brunswick street oval"
Which home team has the Brunswick Street Oval venue?
CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR)
SELECT qual FROM table_name_86 WHERE laps = 200 AND rank = "27"
What is the qual with 200 laps and a rank of 27?
CREATE TABLE table_name_86 (qual VARCHAR, laps VARCHAR, rank VARCHAR)
SELECT MIN(draw) FROM table_name_89 WHERE artist = "ketil stokkan" AND points < 44
What is the draw for the artist Ketil Stokkan which has less than 44 points?
CREATE TABLE table_name_89 (draw INTEGER, artist VARCHAR, points VARCHAR)
SELECT MIN(rank) FROM table_name_75 WHERE bronze > 1 AND gold < 4
What is the rank of the nation that has more than 1 Bronze medals and fewer than 4 Gold medals?
CREATE TABLE table_name_75 (rank INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT date FROM table_11636213_7 WHERE result = "6–2, 4–6, 6–4"
What date was the result 6–2, 4–6, 6–4?
CREATE TABLE table_11636213_7 (date VARCHAR, result VARCHAR)
SELECT COUNT(laps) FROM table_name_75 WHERE time_retired = "+1:02.315"
How many laps were timed at +1:02.315?
CREATE TABLE table_name_75 (laps VARCHAR, time_retired VARCHAR)
SELECT AVG(goals_against) FROM table_name_68 WHERE goals_for > 35 AND goal_difference = 20
What is the average of goals against, where overall goals are more than 35 and the goal difference is 20?
CREATE TABLE table_name_68 (goals_against INTEGER, goals_for VARCHAR, goal_difference VARCHAR)
SELECT COUNT(year) FROM table_name_96 WHERE team = "yamaha" AND wins = 0 AND rank = "8th" AND points > 22
What year did team Yamaha have 0 wins, a rank of 8th, and more than 22 points?
CREATE TABLE table_name_96 (year VARCHAR, points VARCHAR, rank VARCHAR, team VARCHAR, wins VARCHAR)
SELECT COUNT(diameter__km_) FROM table_16799784_3 WHERE longitude = "109.9E"
At a longitude of 109.9e, how many features were found?
CREATE TABLE table_16799784_3 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT scores FROM table_23292220_13 WHERE seans_team = "Russell Kane and Louise Redknapp"
What was the score on the episode that had Russell Kane and Louise Redknapp on Sean's team?
CREATE TABLE table_23292220_13 (scores VARCHAR, seans_team VARCHAR)
SELECT driver FROM table_name_50 WHERE fin_pos = 8
Which driver finished in position 8?
CREATE TABLE table_name_50 (driver VARCHAR, fin_pos VARCHAR)
SELECT score FROM table_name_67 WHERE country = "united states" AND place = "t5"
What is the score of T5 place in the United States?
CREATE TABLE table_name_67 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT SUM(innings) FROM table_name_35 WHERE average < 6.33 AND sr < 71.43 AND balls_faced > 36 AND runs_scored < 19
How many total innings have an average under 6.33, strike rate under 71.43, balls faced over 36, and smaller than 19 runs scored?
CREATE TABLE table_name_35 (innings INTEGER, runs_scored VARCHAR, balls_faced VARCHAR, average VARCHAR, sr VARCHAR)
SELECT time___et__ FROM table_14433719_1 WHERE opponent = "at Denver Broncos"
What time in eastern standard time was game held at denver broncos?
CREATE TABLE table_14433719_1 (time___et__ VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_21 WHERE promotor = "frank moloney" AND opponent = "gennadiy rasalev"
Which location has the promotor Frank Moloney, and the opponent Gennadiy Rasalev?
CREATE TABLE table_name_21 (location VARCHAR, promotor VARCHAR, opponent VARCHAR)
SELECT institution FROM table_1969577_1 WHERE enrollment = 10000
Name the college that has 10000 enrolled
CREATE TABLE table_1969577_1 (institution VARCHAR, enrollment VARCHAR)
SELECT status FROM table_name_22 WHERE area_km_2 > 10.9 AND census_ranking = "4,674 of 5,008"
What status has an area km 2 greater than 10.9, with 4,674 of 5,008 as the census ranking
CREATE TABLE table_name_22 (status VARCHAR, area_km_2 VARCHAR, census_ranking VARCHAR)
SELECT city_of_license FROM table_name_31 WHERE frequency_mhz < 106.5 AND call_sign = "w218ck"
Which city has frequency under 106.5MHz and a callsign of w218ck?
CREATE TABLE table_name_31 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT team_swash FROM table_25816476_2 WHERE team_guest_captain = "Gail Porter"
Who was the team swash when the team guest captain was gail porter?
CREATE TABLE table_25816476_2 (team_swash VARCHAR, team_guest_captain VARCHAR)
SELECT kalamazoo__azo_ FROM table_1637981_7 WHERE lansing__lan_ = "$433.59"
During the year when Lansing's fare is $433.59, what is the fare to Kalamazoo?
CREATE TABLE table_1637981_7 (kalamazoo__azo_ VARCHAR, lansing__lan_ VARCHAR)
SELECT tournament FROM table_name_98 WHERE date = "2 october 2006"
Which Tournament was on 2 October 2006?
CREATE TABLE table_name_98 (tournament VARCHAR, date VARCHAR)
SELECT state__class_ FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966"
What was the state (class) where the new successor was formally installed on May 11, 1966?
CREATE TABLE table_1847180_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT score FROM table_name_48 WHERE team = "charlotte"
What score is the team of charlotte?
CREATE TABLE table_name_48 (score VARCHAR, team VARCHAR)
SELECT to_par FROM table_name_23 WHERE score = "70-76-68-214"
Who has the par score of 70-76-68-214?
CREATE TABLE table_name_23 (to_par VARCHAR, score VARCHAR)
SELECT Name FROM singer WHERE NOT Singer_ID IN (SELECT Singer_ID FROM song)
List the name of singers that do not have any song.
CREATE TABLE song (Name VARCHAR, Singer_ID VARCHAR); CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR)
SELECT result FROM table_name_17 WHERE year = 2009 AND award = "sopot international song festival"
What result took pace in 2009 and had an award of sopot international song festival?
CREATE TABLE table_name_17 (result VARCHAR, year VARCHAR, award VARCHAR)
SELECT AVG(age), gender FROM Person GROUP BY gender
What is the average age for each gender?
CREATE TABLE Person (gender VARCHAR, age INTEGER)
SELECT english_name FROM table_2847477_2 WHERE pinyin = "Gùshǐ Xiàn"
What is the English name of gùshǐ xiàn?
CREATE TABLE table_2847477_2 (english_name VARCHAR, pinyin VARCHAR)
SELECT date FROM table_name_5 WHERE competition = "pl" AND score = "1-1" AND opponents = "kelantan"
Competition of pl, and a Score of 1-1, and a Opponents of kelantan had what date?
CREATE TABLE table_name_5 (date VARCHAR, opponents VARCHAR, competition VARCHAR, score VARCHAR)
SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'
How many different winners both participated in the WTA Championships and were left handed?
CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_hand VARCHAR)
SELECT COUNT(cfl_team) FROM table_26996293_3 WHERE college = "Mount Allison"
How many CFL teams drafted someone from mount allison college?
CREATE TABLE table_26996293_3 (cfl_team VARCHAR, college VARCHAR)
SELECT class FROM table_14624447_39 WHERE position = "RT"
Name the class when position is rt
CREATE TABLE table_14624447_39 (class VARCHAR, position VARCHAR)
SELECT venue FROM table_name_53 WHERE home_team = "footscray"
If the home team was footscray which venue did they play it?
CREATE TABLE table_name_53 (venue VARCHAR, home_team VARCHAR)
SELECT elimination FROM table_name_87 WHERE eliminated_by = "sonjay dutt"
What Elimination number is listed againt Eliminated by Sonjay Dutt?
CREATE TABLE table_name_87 (elimination VARCHAR, eliminated_by VARCHAR)
SELECT opponent FROM table_name_50 WHERE record = "32-25"
Who was the opponent with a 32-25 record?
CREATE TABLE table_name_50 (opponent VARCHAR, record VARCHAR)
SELECT run_4 FROM table_name_46 WHERE athletes = "hubert stevens & curtis stevens"
Which Run 4 has Athletes of hubert stevens & curtis stevens?
CREATE TABLE table_name_46 (run_4 VARCHAR, athletes VARCHAR)
SELECT AVG(points) FROM table_name_63 WHERE chassis = "dallara 3087 lola t88/50" AND year < 1988
Name the average points for dallara 3087 lola t88/50 and year before 1988
CREATE TABLE table_name_63 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MAX(assists) FROM table_name_30 WHERE name = "juan ignacio sánchez"
What's the largest amount of assists juan ignacio sánchez ever had?
CREATE TABLE table_name_30 (assists INTEGER, name VARCHAR)
SELECT opponent FROM table_name_10 WHERE game = "73"
Who was the opponent for game 73?
CREATE TABLE table_name_10 (opponent VARCHAR, game VARCHAR)
SELECT position FROM table_name_39 WHERE height < 1.96 AND year_born > 1980 AND player = "sergio rodríguez"
What position does Sergio Rodríguez, who is less than 1.96 tall and was born after 1980, play?
CREATE TABLE table_name_39 (position VARCHAR, player VARCHAR, height VARCHAR, year_born VARCHAR)
SELECT high_points FROM table_13762472_4 WHERE date = "December 3"
who had high points on december 3
CREATE TABLE table_13762472_4 (high_points VARCHAR, date VARCHAR)
SELECT series__number FROM table_28967275_3 WHERE episode__number = 68
when 68 is the episode number what is the series number?
CREATE TABLE table_28967275_3 (series__number VARCHAR, episode__number VARCHAR)
SELECT state_or_territory FROM table_27871460_2 WHERE channel_number = 7
Which state or territory had a channel number of exactly 7?
CREATE TABLE table_27871460_2 (state_or_territory VARCHAR, channel_number VARCHAR)
SELECT date FROM table_name_49 WHERE record = "53–17"
What was the date of the Mariners game when they had a record of 53–17?
CREATE TABLE table_name_49 (date VARCHAR, record VARCHAR)
SELECT away_team FROM table_name_46 WHERE crowd > 41 OFFSET 402
Who was the away team for the game played in front of more than 41,402 fans?
CREATE TABLE table_name_46 (away_team VARCHAR, crowd INTEGER)
SELECT AVG(post_position) FROM table_name_74 WHERE lengths_behind = "0"
What's the post position when the lengths behind is 0?
CREATE TABLE table_name_74 (post_position INTEGER, lengths_behind VARCHAR)
SELECT electorate FROM table_1193568_1 WHERE election_date = "16 Cannot handle non-empty timestamp argument!"
what's the electorate where election date is 16 cannot handle non-empty timestamp argument!
CREATE TABLE table_1193568_1 (electorate VARCHAR, election_date VARCHAR)
SELECT japanese_release_date FROM table_name_34 WHERE australia_release_date = "2006-03-23"
What is Japanese Release Date, when Australia Release Date is "2006-03-23"?
CREATE TABLE table_name_34 (japanese_release_date VARCHAR, australia_release_date VARCHAR)
SELECT catalog FROM table_name_9 WHERE date = "march 13, 2002"
What is the Catalog with a Date that is march 13, 2002?
CREATE TABLE table_name_9 (catalog VARCHAR, date VARCHAR)
SELECT q1 + q2_time FROM table_1924975_1 WHERE q1_pos = 8
when q1 pos is 8 what is the q1+q2 time?
CREATE TABLE table_1924975_1 (q1 VARCHAR, q2_time VARCHAR, q1_pos VARCHAR)
SELECT AVG(lost) FROM table_name_53 WHERE matches = 6
Name the average lost for matches of 6
CREATE TABLE table_name_53 (lost INTEGER, matches VARCHAR)
SELECT COUNT(week) FROM table_name_14 WHERE date = "bye"
What was the total number of weeks with a date of bye?
CREATE TABLE table_name_14 (week VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_16 WHERE year = "1985" AND venue = "india open"
What was the Outcome at the 1985 India Open?
CREATE TABLE table_name_16 (outcome VARCHAR, year VARCHAR, venue VARCHAR)
SELECT no_1 FROM table_name_27 WHERE region__year_ = "maryland (2008)"
What is the No 1 from the Maryland (2008) Region (year)?
CREATE TABLE table_name_27 (no_1 VARCHAR, region__year_ VARCHAR)
SELECT position FROM table_24565004_3 WHERE name = "Pierre Bajoc"
which position did pierre bajoc play?
CREATE TABLE table_24565004_3 (position VARCHAR, name VARCHAR)