answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(location_attendance) FROM table_13464416_7 WHERE record = "14-38"
how many locations have a record of 14-38?
CREATE TABLE table_13464416_7 (location_attendance VARCHAR, record VARCHAR)
SELECT husband FROM table_name_74 WHERE image = "marie of baden-sponheim"
Who was the husband of marie of baden-sponheim?
CREATE TABLE table_name_74 (husband VARCHAR, image VARCHAR)
SELECT incumbent FROM table_1341453_44 WHERE first_elected = 1984
Which incumbent was first elected in 1984?
CREATE TABLE table_1341453_44 (incumbent VARCHAR, first_elected VARCHAR)
SELECT cfl_team FROM table_16575609_1 WHERE college = "Weber State"
Who picked a player from Weber State?
CREATE TABLE table_16575609_1 (cfl_team VARCHAR, college VARCHAR)
SELECT year FROM table_name_26 WHERE position = "1st" AND venue = "paris"
what is the year that the position was 1st in paris?
CREATE TABLE table_name_26 (year VARCHAR, position VARCHAR, venue VARCHAR)
SELECT title FROM table_25604014_6 WHERE no_in_season = 2
What are the titles of the pieces that are number 2 in season?
CREATE TABLE table_25604014_6 (title VARCHAR, no_in_season VARCHAR)
SELECT city___state FROM table_26686908_2 WHERE date = "7–10 October"
What was the location for the date 7–10 october?
CREATE TABLE table_26686908_2 (city___state VARCHAR, date VARCHAR)
SELECT replaced_by FROM table_name_46 WHERE team = "brussels" AND date_of_vacancy = "22 december 2007"
Who was the replacement for the Brussels team with a date of vacancy of 22 December 2007?
CREATE TABLE table_name_46 (replaced_by VARCHAR, team VARCHAR, date_of_vacancy VARCHAR)
SELECT 2006 FROM table_name_84 WHERE 2004 = "2r" AND 2005 = "2r"
What is the 2006 that has a 2r in 2004, and a 2r in 2005?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT class FROM table_name_57 WHERE frequency = "560 am"
What is the class when the frequency is 560 AM?
CREATE TABLE table_name_57 (class VARCHAR, frequency VARCHAR)
SELECT venue FROM table_name_10 WHERE result = "loss" AND date = "march 26, 2005"
During the loss on march 26, 2005, what was the venue where the match was played?
CREATE TABLE table_name_10 (venue VARCHAR, result VARCHAR, date VARCHAR)
SELECT date FROM table_name_9 WHERE sub_total = "9:30"
On which day were the subtotal hours 9:30?
CREATE TABLE table_name_9 (date VARCHAR, sub_total VARCHAR)
SELECT theme_song_s_ FROM table_name_54 WHERE japanese_title = "恋におちたら~僕の成功の秘密~"
Which Theme Song(s) has a Japanese Title of 恋におちたら~僕の成功の秘密~?
CREATE TABLE table_name_54 (theme_song_s_ VARCHAR, japanese_title VARCHAR)
SELECT apocalypstix FROM table_29619494_2 WHERE denim_demons = "2nd"
List all the places that the Apocalypstix occupied when the Denim Demons were 2nd.
CREATE TABLE table_29619494_2 (apocalypstix VARCHAR, denim_demons VARCHAR)
SELECT COUNT(record) FROM table_18904831_5 WHERE score = "W 70-66"
How many different records were there in the games that ended in w 70-66?
CREATE TABLE table_18904831_5 (record VARCHAR, score VARCHAR)
SELECT winning_constructor FROM table_name_82 WHERE circuit = "lasarte"
What Winning constructor has a Circuit of lasarte?
CREATE TABLE table_name_82 (winning_constructor VARCHAR, circuit VARCHAR)
SELECT COUNT(ground) FROM table_16388439_1 WHERE home_team = "Essendon"
Name the total number of ground for essendon
CREATE TABLE table_16388439_1 (ground VARCHAR, home_team VARCHAR)
SELECT COUNT(top_5) FROM table_1929755_1 WHERE avg_start = "17.7"
HOw many top 5 starts did the team with an average start of 17.7 have?
CREATE TABLE table_1929755_1 (top_5 VARCHAR, avg_start VARCHAR)
SELECT cover FROM table_name_12 WHERE published = "may 27, 2009 (hc) may 20, 2009 (tpb)"
What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)?
CREATE TABLE table_name_12 (cover VARCHAR, published VARCHAR)
SELECT MAX(round) FROM table_name_58 WHERE pick__number < 8
What is the highest round that had a pick lower than 8?
CREATE TABLE table_name_58 (round INTEGER, pick__number INTEGER)
SELECT roomName FROM Rooms WHERE bedType = "King" OR bedType = "Queen"
List the name of rooms with king or queen bed.
CREATE TABLE Rooms (roomName VARCHAR, bedType VARCHAR)
SELECT MIN(geo_id) FROM table_18600760_12 WHERE water__sqmi_ = "0.457"
What is the geo id when water is 0.457?
CREATE TABLE table_18600760_12 (geo_id INTEGER, water__sqmi_ VARCHAR)
SELECT method FROM table_name_5 WHERE round < 3 AND time = "3:36"
What method has a round less than 3, and 3:36 as the time?
CREATE TABLE table_name_5 (method VARCHAR, round VARCHAR, time VARCHAR)
SELECT nation FROM table_22355_44 WHERE athlete = "Abdon Pamich Category:Articles with hCards"
Name the nation for abdon pamich category:articles with hcards
CREATE TABLE table_22355_44 (nation VARCHAR, athlete VARCHAR)
SELECT DISTINCT directed_by FROM film
Show all directors.
CREATE TABLE film (directed_by VARCHAR)
SELECT city_municipality FROM table_29289372_1 WHERE area__km²_ = "106"
When 106 is the area in kilometers squared what is the city/municipality?
CREATE TABLE table_29289372_1 (city_municipality VARCHAR, area__km²_ VARCHAR)
SELECT date FROM table_name_60 WHERE result = "win" AND round < 2 AND opponent = "myron greenberg"
Which Date has a Result of win, and a Round smaller than 2, and an Opponent of myron greenberg?
CREATE TABLE table_name_60 (date VARCHAR, opponent VARCHAR, result VARCHAR, round VARCHAR)
SELECT player FROM table_name_47 WHERE hometown = "flower mound, tx"
Who is from flower mound, tx?
CREATE TABLE table_name_47 (player VARCHAR, hometown VARCHAR)
SELECT MAX(lane) FROM table_name_48 WHERE name = "johan wissman" AND react < 0.242
what is the highest lane number for johan wissman when the react is less than 0.242?
CREATE TABLE table_name_48 (lane INTEGER, name VARCHAR, react VARCHAR)
SELECT opponent FROM table_name_38 WHERE record = "10-13"
Who was the opponent that led to a 10-13 record?
CREATE TABLE table_name_38 (opponent VARCHAR, record VARCHAR)
SELECT total FROM table_name_9 WHERE score = "1–3" AND set_1 = "29–31"
Which Total has a Score of 1–3, and a Set 1 of 29–31?
CREATE TABLE table_name_9 (total VARCHAR, score VARCHAR, set_1 VARCHAR)
SELECT name, headquarter FROM manufacturers ORDER BY revenue DESC
Find all manufacturers' names and their headquarters, sorted by the ones with highest revenue first.
CREATE TABLE manufacturers (name VARCHAR, headquarter VARCHAR, revenue VARCHAR)
SELECT womens_singles FROM table_28138035_15 WHERE mens_singles = "Ma Lin"
Who won Womens Singles in the year that Ma Lin won Mens Singles?
CREATE TABLE table_28138035_15 (womens_singles VARCHAR, mens_singles VARCHAR)
SELECT partner FROM table_name_31 WHERE score = "6–3, 2–6, 6–3"
What Partner had a Score of 6–3, 2–6, 6–3?
CREATE TABLE table_name_31 (partner VARCHAR, score VARCHAR)
SELECT MAX(Milliseconds), MIN(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Pop"
What are the duration of the longest and shortest pop tracks in milliseconds?
CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)
SELECT T1.id, T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 2
What are the ids and names of the medicine that can interact with two or more enzymes?
CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR); CREATE TABLE medicine (id VARCHAR, Name VARCHAR)
SELECT MAX(district) FROM table_name_30 WHERE delegate = "cheryl glenn" AND took_office > 2006
What is the largest district for delegate Cheryl Glenn, that she had taken after 2006?
CREATE TABLE table_name_30 (district INTEGER, delegate VARCHAR, took_office VARCHAR)
SELECT weight FROM table_name_13 WHERE length = "1168mm / 46 in"
What is Weight, when Length is 1168mm / 46 in?
CREATE TABLE table_name_13 (weight VARCHAR, length VARCHAR)
SELECT post_season_record_[e_] FROM table_name_55 WHERE mlb_affiliate = "kansas city"
Tell me the post-season record for kansas city
CREATE TABLE table_name_55 (post_season_record_ VARCHAR, e_ VARCHAR, mlb_affiliate VARCHAR)
SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = "56%" AND loss < 4
What's the rank for a team that has a percentage of 56% and a loss smaller than 4?
CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR)
SELECT driver FROM table_name_85 WHERE nor_1 = "22"
What driver has 22 as nor 1?
CREATE TABLE table_name_85 (driver VARCHAR, nor_1 VARCHAR)
SELECT COUNT(pop__km²) FROM table_2252745_1 WHERE administrative_centre = "Egilsstaðir"
when administrative centre is egilsstaðir, what is the pop./ km²?
CREATE TABLE table_2252745_1 (pop__km² VARCHAR, administrative_centre VARCHAR)
SELECT title FROM table_name_34 WHERE type = "album" AND year = 1983
Which Title has a Type of album in 1983?
CREATE TABLE table_name_34 (title VARCHAR, type VARCHAR, year VARCHAR)
SELECT cfl_team FROM table_name_86 WHERE pick__number > 34 AND college = "boise state"
What is CFL Team, when Pick # is greater than 34, and when College is Boise State?
CREATE TABLE table_name_86 (cfl_team VARCHAR, pick__number VARCHAR, college VARCHAR)
SELECT COUNT(evening_gown) FROM table_name_79 WHERE preliminaries < 8.647 AND state = "district of columbia"
What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647?
CREATE TABLE table_name_79 (evening_gown VARCHAR, preliminaries VARCHAR, state VARCHAR)
SELECT median_household_income FROM table_1356555_2 WHERE county = "Sacramento"
What is the median household income of sacramento?
CREATE TABLE table_1356555_2 (median_household_income VARCHAR, county VARCHAR)
SELECT 2009 FROM table_name_4 WHERE 2000 = "–" AND total = 3 AND 2004 = "9th"
What shows for 209 when the 2000 is –, and a Total of 3, and a 2004 of 9th?
CREATE TABLE table_name_4 (total VARCHAR)
SELECT MIN(crowd) FROM table_name_96 WHERE venue = "princes park"
What is the smallest Crowd number for the Venue named Princes Park?
CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR)
SELECT first_pref_votes FROM table_name_23 WHERE _percentage_fpv = "0.06"
What is the First Pref Votes for the % FPv of 0.06?
CREATE TABLE table_name_23 (first_pref_votes VARCHAR, _percentage_fpv VARCHAR)
SELECT series__number FROM table_24961421_1 WHERE season__number = 7
What number in the series was episode 7 in the season?
CREATE TABLE table_24961421_1 (series__number VARCHAR, season__number VARCHAR)
SELECT bike FROM table_name_13 WHERE grid < 35 AND time = "37:58.607"
Which bike had a grid less than 35 and time at 37:58.607?
CREATE TABLE table_name_13 (bike VARCHAR, grid VARCHAR, time VARCHAR)
SELECT dar FROM table_15887683_5 WHERE n° = "336" AND language = "Italian"
What DAR is available for n. 336 in Italian?
CREATE TABLE table_15887683_5 (dar VARCHAR, n° VARCHAR, language VARCHAR)
SELECT COUNT(game) FROM table_name_38 WHERE score = "2–6" AND points > 62
How many Games have a Score of 2–6, and Points larger than 62?
CREATE TABLE table_name_38 (game VARCHAR, score VARCHAR, points VARCHAR)
SELECT least_compression_at_24_fps FROM table_1251878_3 WHERE mpix = "5.0"
What is the smallest frames per minute when the pixels are 5.0
CREATE TABLE table_1251878_3 (least_compression_at_24_fps VARCHAR, mpix VARCHAR)
SELECT record FROM table_14884844_2 WHERE athletes = "Elzbieta Urbanczik"
What are the records when Elzbieta Urbanczik competed?
CREATE TABLE table_14884844_2 (record VARCHAR, athletes VARCHAR)
SELECT country FROM table_name_37 WHERE pinnacle_height = "metres (ft)" AND name = "azeri tv tower"
Which Country has a Pinnacle height of metres (ft) and a Name of azeri tv tower?
CREATE TABLE table_name_37 (country VARCHAR, pinnacle_height VARCHAR, name VARCHAR)
SELECT player FROM table_name_49 WHERE place = "t1" AND country = "united states"
Which player had a position of t1 and played in the united states?
CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT exaltation FROM table_name_98 WHERE domicile = "saturn" AND fall = "jupiter"
Which exaltation has a domicile of Saturn and a fall of Jupiter?
CREATE TABLE table_name_98 (exaltation VARCHAR, domicile VARCHAR, fall VARCHAR)
SELECT score FROM table_name_50 WHERE date = "13 april 1997"
Which Score has a Date of 13 april 1997?
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
SELECT percentage FROM table_name_9 WHERE draw = 6
Which Percentage has a Draw of 6?
CREATE TABLE table_name_9 (percentage VARCHAR, draw VARCHAR)
SELECT COUNT(Co) - singers FROM table_2528382_5 WHERE co_stars = "Parveen Babi"
How many co-singers were there when Parveen Babi co-starred?
CREATE TABLE table_2528382_5 (singers VARCHAR, Co VARCHAR, co_stars VARCHAR)
SELECT SUM(total) FROM table_name_97 WHERE silver < 10 AND nation = "andorra" AND bronze > 5
What was Andorra's total with less than 10 silver and more than 5 bronze?
CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT college FROM table_10975034_5 WHERE player = "Craig Zimmer"
What college did Craig Zimmer go to?
CREATE TABLE table_10975034_5 (college VARCHAR, player VARCHAR)
SELECT couple FROM table_25557556_5 WHERE average = "21.0"
What couple averaged 21.0?
CREATE TABLE table_25557556_5 (couple VARCHAR, average VARCHAR)
SELECT nhl_team FROM table_name_59 WHERE college_junior_club_team__league_ = "mississauga icedogs (ohl)"
What is the NHL team that has a team (League) of Mississauga Icedogs (ohl)?
CREATE TABLE table_name_59 (nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT 2008 FROM table_name_5 WHERE tournament = "canada masters"
What was the double's performance data from the Canada Masters tournament in 2008?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT COUNT(evening_gown) FROM table_name_80 WHERE state = "new jersey" AND interview < 9.344
What is the sum number of evening gown stats for New Jersey when the interview was less than 9.344?
CREATE TABLE table_name_80 (evening_gown VARCHAR, state VARCHAR, interview VARCHAR)
SELECT capital FROM table_16278894_1 WHERE county = "Uasin Gishu"
What is the capital of Uasin Gishu county?
CREATE TABLE table_16278894_1 (capital VARCHAR, county VARCHAR)
SELECT venue FROM table_name_29 WHERE week < 2
Which venue has a week smaller than 2?
CREATE TABLE table_name_29 (venue VARCHAR, week INTEGER)
SELECT location_attendance FROM table_name_92 WHERE game > 67 AND team = "@ charlotte"
Which Location Attendance has a Game larger than 67, and a Team of @ charlotte?
CREATE TABLE table_name_92 (location_attendance VARCHAR, game VARCHAR, team VARCHAR)
SELECT opponent FROM table_name_4 WHERE score = "9 - 6" AND attendance > 31 OFFSET 293
Who was the opponent of the game that 31,293 people attended that had a final score of 9 - 6.
CREATE TABLE table_name_4 (opponent VARCHAR, score VARCHAR, attendance VARCHAR)
SELECT region FROM table_2588674_1 WHERE village = "Inarajan"
What region is inarajan in?
CREATE TABLE table_2588674_1 (region VARCHAR, village VARCHAR)
SELECT place FROM table_name_54 WHERE draw = 3
In what place was the song that had a draw of 3?
CREATE TABLE table_name_54 (place VARCHAR, draw VARCHAR)
SELECT affiliation FROM table_name_47 WHERE nickname = "cougars"
Which Affiliation has a Nickname of cougars?
CREATE TABLE table_name_47 (affiliation VARCHAR, nickname VARCHAR)
SELECT venue FROM table_name_66 WHERE country = "england" AND champion = "alison nicholas"
Which Venue has a Country of england, and a Champion of alison nicholas?
CREATE TABLE table_name_66 (venue VARCHAR, country VARCHAR, champion VARCHAR)
SELECT visitor FROM table_name_9 WHERE date = "december 29"
Date of december 29 has what visitor?
CREATE TABLE table_name_9 (visitor VARCHAR, date VARCHAR)
SELECT MIN(scored) FROM table_name_82 WHERE points = 19 AND played < 18
What is the lowest score of the team with 19 points and less than 18 played?
CREATE TABLE table_name_82 (scored INTEGER, points VARCHAR, played VARCHAR)
SELECT SUM(attendance) FROM table_name_19 WHERE result = "7-23" AND year < 1960
What was the total attendance for a result of 7-23 before 1960?
CREATE TABLE table_name_19 (attendance INTEGER, result VARCHAR, year VARCHAR)
SELECT constructor FROM table_name_9 WHERE grid = 17
Tell me the constructor for grid of 17
CREATE TABLE table_name_9 (constructor VARCHAR, grid VARCHAR)
SELECT rank FROM table_171666_1 WHERE area__sq_mi_ = 456800
What is the rank of the division with an area of 456800 sq mi?
CREATE TABLE table_171666_1 (rank VARCHAR, area__sq_mi_ VARCHAR)
SELECT record FROM table_name_63 WHERE score = "3–1" AND visitor = "toronto maple leafs" AND date = "january 20"
What is the Record of the Game on January 20 with Visitor Toronto Maple Leafs with a Score of 3–1?
CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR, score VARCHAR, visitor VARCHAR)
SELECT frequency__inbound_outbound_ FROM table_name_72 WHERE origin = "ranchi"
What is the frequency of the rail with an origin of Ranchi?
CREATE TABLE table_name_72 (frequency__inbound_outbound_ VARCHAR, origin VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_54 WHERE player = "tom weiskopf"
What is the average money ($) that Tom Weiskopf made?
CREATE TABLE table_name_54 (money___ INTEGER, player VARCHAR)
SELECT axle_ratio FROM table_20866024_2 WHERE model_designation = "97G00"
What's the axle ratio of the model with model designation 97G00?
CREATE TABLE table_20866024_2 (axle_ratio VARCHAR, model_designation VARCHAR)
SELECT arena FROM table_name_5 WHERE founded = 2000
Which arena was founded in 2000?
CREATE TABLE table_name_5 (arena VARCHAR, founded VARCHAR)
SELECT built FROM table_name_9 WHERE location = "la vista"
When was la vista built?
CREATE TABLE table_name_9 (built VARCHAR, location VARCHAR)
SELECT COUNT(location) FROM table_11603006_1 WHERE score = "207 (-10)"
How many different locations have the score 207 (-10)?
CREATE TABLE table_11603006_1 (location VARCHAR, score VARCHAR)
SELECT grid FROM table_name_45 WHERE laps = 67
What grid is associated with 67 laps?
CREATE TABLE table_name_45 (grid VARCHAR, laps VARCHAR)
SELECT years FROM table_2841865_2 WHERE congress = "72nd"
What frame of time is listed under years during the 72nd congress?
CREATE TABLE table_2841865_2 (years VARCHAR, congress VARCHAR)
SELECT finish FROM table_name_18 WHERE player = "jack nicklaus"
Jack Nicklaus finished in what place?
CREATE TABLE table_name_18 (finish VARCHAR, player VARCHAR)
SELECT T2.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id
Show the stadium name and the number of concerts in each stadium.
CREATE TABLE stadium (name VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR)
SELECT number_stayed_in_southeast FROM table_name_26 WHERE total_number_emigrated_or_forcibly_removed = "over 4,000"
Which Number stayed in Southeast has over 4,000 emigrated or forcibly removed?
CREATE TABLE table_name_26 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR)
SELECT team FROM table_name_77 WHERE home_city = "koprivnica"
What team has a home city of Koprivnica?
CREATE TABLE table_name_77 (team VARCHAR, home_city VARCHAR)
SELECT name FROM table_name_59 WHERE pick = 5 AND round < 25 AND position = "ot" AND college = "boston college"
What name has 5 as the pick, a round less than 25, ot as the position, at boston college?
CREATE TABLE table_name_59 (name VARCHAR, college VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_11 WHERE type = "town"
What is the ethnic majority in the only town?
CREATE TABLE table_2562572_11 (largest_ethnic_group__2002_ VARCHAR, type VARCHAR)
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1
Which city has the highest temperature in February?
CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Feb VARCHAR)
SELECT score FROM table_name_16 WHERE tournament = "tournament players championship"
What is the score of the Tournament Players Championship?
CREATE TABLE table_name_16 (score VARCHAR, tournament VARCHAR)
SELECT theme FROM table_name_95 WHERE issue_price = "$89.95"
What is the Theme of the coin with an Issue Price of $89.95?
CREATE TABLE table_name_95 (theme VARCHAR, issue_price VARCHAR)
SELECT date FROM table_name_4 WHERE visitor = "jazz" AND leading_scorer = "mehmet okur (22)"
Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?
CREATE TABLE table_name_4 (date VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
SELECT record FROM table_name_41 WHERE kickoff = "12:00pm cst" AND game_site = "arrowhead stadium" AND week = "15"
Which Record has a Kickoff of 12:00pm cst, and a Game site of arrowhead stadium, and a Week of 15?
CREATE TABLE table_name_41 (record VARCHAR, week VARCHAR, kickoff VARCHAR, game_site VARCHAR)