answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT time_retired FROM table_name_59 WHERE laps = 75
What's the Time/Retired of Laps of 75?
CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR)
SELECT away_team AS score FROM table_name_38 WHERE home_team = "fitzroy"
What was the score for the away team when the home team was Fitzroy?
CREATE TABLE table_name_38 (away_team VARCHAR, home_team VARCHAR)
SELECT AVG(attendance__away_) FROM table_name_82 WHERE result = "won 2-0" AND date = "2 november 2007"
Name the average attendance with result of won 2-0 on 2 november 2007
CREATE TABLE table_name_82 (attendance__away_ INTEGER, result VARCHAR, date VARCHAR)
SELECT wu_xing___五行__ FROM table_name_80 WHERE korean___rr__ = "임 (im)"
What is Wu Xing (五行) with Korean (RR) of 임 (im)?
CREATE TABLE table_name_80 (wu_xing___五行__ VARCHAR, korean___rr__ VARCHAR)
SELECT tournament FROM table_name_31 WHERE 2012 = "1r" AND 2013 = "3r"
In which tournament was the 2012 result 1r and the 2013 result 3r?
CREATE TABLE table_name_31 (tournament VARCHAR)
SELECT nationality FROM table_name_91 WHERE team = "milwaukee hawks"
What is the nationality for milwaukee hawks?
CREATE TABLE table_name_91 (nationality VARCHAR, team VARCHAR)
SELECT to_par FROM table_name_66 WHERE player = "steve pate"
Golfer Steve Pate has what To par?
CREATE TABLE table_name_66 (to_par VARCHAR, player VARCHAR)
SELECT mountains_classification FROM table_name_15 WHERE general_classification = "denis menchov" AND winner = "carlos sastre"
What's the mountains classification of winner Carlos Sastre when the general classification is Denis Menchov?
CREATE TABLE table_name_15 (mountains_classification VARCHAR, general_classification VARCHAR, winner VARCHAR)
SELECT year FROM table_2181798_1 WHERE team_s_ = "Donlavey Racing Bill Davis Racing"
Name the year for donlavey racing bill davis racing
CREATE TABLE table_2181798_1 (year VARCHAR, team_s_ VARCHAR)
SELECT municipality FROM table_name_53 WHERE station = "benson street"
What municipality is the Benson Street station located in?
CREATE TABLE table_name_53 (municipality VARCHAR, station VARCHAR)
SELECT team FROM table_name_77 WHERE qual_1 = "1:17.481"
What is the name of the team with a qual 1 time of 1:17.481?
CREATE TABLE table_name_77 (team VARCHAR, qual_1 VARCHAR)
SELECT opponent FROM table_name_71 WHERE event = "ifa: clash of the champions"
Who is the opponent at the IFA: Clash of the Champions?
CREATE TABLE table_name_71 (opponent VARCHAR, event VARCHAR)
SELECT player FROM table_name_2 WHERE position = "fb"
Who is the player with a FB position?
CREATE TABLE table_name_2 (player VARCHAR, position VARCHAR)
SELECT team FROM table_name_42 WHERE races = "1" AND position = "1st"
Which teams had the 1st position and entered 1 race?
CREATE TABLE table_name_42 (team VARCHAR, races VARCHAR, position VARCHAR)
SELECT MIN(width__inches_) FROM table_name_36 WHERE length__feet_ > 25 AND numbers = "401-484"
On buses ranging in numbr 401-484, what is the lowest width that one longer thna 25 feet can have?
CREATE TABLE table_name_36 (width__inches_ INTEGER, length__feet_ VARCHAR, numbers VARCHAR)
SELECT director FROM table_name_77 WHERE original_title = "the king's speech"
Who was the director of the king's speech?
CREATE TABLE table_name_77 (director VARCHAR, original_title VARCHAR)
SELECT 17 AS th_c FROM table_name_25 WHERE australian = "i, ɪ, ə" AND examples = "œsophagus"
What is 17th c., when Australian is "i, ɪ, ə", and when Examples is "œsophagus"?
CREATE TABLE table_name_25 (australian VARCHAR, examples VARCHAR)
SELECT leading_scorer FROM table_name_40 WHERE date = "12 january 2008"
Name the leading scorer for 12 january 2008
CREATE TABLE table_name_40 (leading_scorer VARCHAR, date VARCHAR)
SELECT country FROM table_name_22 WHERE score = 69 - 67 - 69 - 70 = 275
Which country scored 69-67-69-70=275?
CREATE TABLE table_name_22 (country VARCHAR, score VARCHAR)
SELECT COUNT(relative_height__m_) FROM table_name_9 WHERE country = "scotland" AND parent = "ben vorlich"
What is the relative height of Scotland with Ben Vorlich as parent?
CREATE TABLE table_name_9 (relative_height__m_ VARCHAR, country VARCHAR, parent VARCHAR)
SELECT height__m_ FROM table_23759976_1 WHERE floors = 36
How tall is the building with 36 floors?
CREATE TABLE table_23759976_1 (height__m_ VARCHAR, floors VARCHAR)
SELECT games FROM table_name_64 WHERE name = "manuel felix diaz"
Which Games had a Name of manuel felix diaz?
CREATE TABLE table_name_64 (games VARCHAR, name VARCHAR)
SELECT COUNT(variant) FROM table_28035004_1 WHERE bodybuilder = "Northern Counties"
How many different variants are there for Northern Counties bodybuilder?
CREATE TABLE table_28035004_1 (variant VARCHAR, bodybuilder VARCHAR)
SELECT MAX(counties_carries) FROM table_16186152_1
What is the highest number of Counties carries?
CREATE TABLE table_16186152_1 (counties_carries INTEGER)
SELECT location FROM table_name_58 WHERE opponent = "iowa state"
Where did the Bruins play Iowa State?
CREATE TABLE table_name_58 (location VARCHAR, opponent VARCHAR)
SELECT opponent FROM table_name_3 WHERE season = "2011/12"
Which opponent has a Season of 2011/12?
CREATE TABLE table_name_3 (opponent VARCHAR, season VARCHAR)
SELECT partner FROM table_name_94 WHERE date = "14 april 2013"
Which partner was on 14 april 2013?
CREATE TABLE table_name_94 (partner VARCHAR, date VARCHAR)
SELECT higgins FROM table_name_90 WHERE davis = "9%"
What is the Higgins with a Davis that is 9%?
CREATE TABLE table_name_90 (higgins VARCHAR, davis VARCHAR)
SELECT mountains_classification FROM table_name_70 WHERE general_classification = "tony rominger" AND winner = "maurizio fondriest"
Which mountains classification has a general classification of Tony Rominger and was won by Maurizio Fondriest?
CREATE TABLE table_name_70 (mountains_classification VARCHAR, general_classification VARCHAR, winner VARCHAR)
SELECT school FROM table_24540893_6 WHERE position = "RB"
What school did the rb drafted attend?
CREATE TABLE table_24540893_6 (school VARCHAR, position VARCHAR)
SELECT COUNT(*) FROM company WHERE Headquarters = 'USA'
How many companies are headquartered in the US?
CREATE TABLE company (Headquarters VARCHAR)
SELECT MIN(caps) FROM table_name_70 WHERE club_province = "ospreys" AND date_of_birth__age_ = "19 september 1985"
Which Caps is the lowest one that has a Club/province of ospreys, and a Date of Birth (Age) of 19 september 1985?
CREATE TABLE table_name_70 (caps INTEGER, club_province VARCHAR, date_of_birth__age_ VARCHAR)
SELECT away_team AS score FROM table_name_56 WHERE time = "6:00 pm" AND away_team = "hawthorn"
What is the away team score for the match at 6:00 PM and an away team of Hawthorn?
CREATE TABLE table_name_56 (away_team VARCHAR, time VARCHAR)
SELECT economics FROM table_145439_1 WHERE justice = "90.8"
what's the economics score with justice being 90.8
CREATE TABLE table_145439_1 (economics VARCHAR, justice VARCHAR)
SELECT engine FROM table_name_68 WHERE finish = "21"
What Engine has a Finish of 21?
CREATE TABLE table_name_68 (engine VARCHAR, finish VARCHAR)
SELECT AVG(byes) FROM table_name_84 WHERE draws < 0
How many byes when the draws are fewer than 0?
CREATE TABLE table_name_84 (byes INTEGER, draws INTEGER)
SELECT player FROM table_name_8 WHERE pick__number = "15"
What is the name of the player that was Pick 15?
CREATE TABLE table_name_8 (player VARCHAR, pick__number VARCHAR)
SELECT region FROM table_name_43 WHERE format = "cd" AND catalog = "alca-9203"
Name the region for cd with catalog of alca-9203
CREATE TABLE table_name_43 (region VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT winner FROM table_name_81 WHERE year > 2011
Who was the winner after 2011?
CREATE TABLE table_name_81 (winner VARCHAR, year INTEGER)
SELECT school FROM table_name_62 WHERE ihsaa_class = "aa" AND location = "butler"
What school that has a IHSAA Class of AA, in Butler?
CREATE TABLE table_name_62 (school VARCHAR, ihsaa_class VARCHAR, location VARCHAR)
SELECT date FROM table_name_29 WHERE venue = "luxembourg"
Which date is associated with a venue of Luxembourg?
CREATE TABLE table_name_29 (date VARCHAR, venue VARCHAR)
SELECT score FROM table_name_14 WHERE december > 8 AND record = "25-8-3"
What's the Score that's got a listing of December that larger than 8 and Record of 25-8-3?
CREATE TABLE table_name_14 (score VARCHAR, december VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_16 WHERE date = "may 20"
Who was the opponent on May 20?
CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR)
SELECT finale FROM table_name_62 WHERE premiere = "september 24, 2002"
When was the finale played when the show premiered on September 24, 2002?
CREATE TABLE table_name_62 (finale VARCHAR, premiere VARCHAR)
SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE "2016%"
Return the name and gender of the staff who was assigned in 2016.
CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR, date_assigned_from VARCHAR)
SELECT 1988 FROM table_name_41 WHERE 1997 = "2r" AND 1993 = "sf"
What is the value in 1988 when it is 2R in 1997 and SF in 1993?
CREATE TABLE table_name_41 (Id VARCHAR)
SELECT rank__number FROM table_name_23 WHERE opponent_number = "at wisconsin"
What was the rank when the opponent was Wisconsin (played at Wisconsin)?
CREATE TABLE table_name_23 (rank__number VARCHAR, opponent_number VARCHAR)
SELECT record FROM table_name_28 WHERE date = "june 10"
What is the record for june 10?
CREATE TABLE table_name_28 (record VARCHAR, date VARCHAR)
SELECT MAX(points) FROM table_name_39 WHERE position > 6 AND lost < 12 AND drawn < 1
what is the highest points when position is higher than 6, lost is less than 12 and drawn is less than 1?
CREATE TABLE table_name_39 (points INTEGER, drawn VARCHAR, position VARCHAR, lost VARCHAR)
SELECT SUM(points) FROM table_name_31 WHERE grade = "a"
What is the total number of points when the grade was A?
CREATE TABLE table_name_31 (points INTEGER, grade VARCHAR)
SELECT SUM(rank) FROM table_name_10 WHERE country = "bulgaria"
What is the sum of the ranks for bulgaria?
CREATE TABLE table_name_10 (rank INTEGER, country VARCHAR)
SELECT terry_mcauliffe FROM table_name_86 WHERE dates_administered = "may 31 – june 2"
What is the percentage of Terry McAuliffe that has a Date Administered on May 31 – june 2
CREATE TABLE table_name_86 (terry_mcauliffe VARCHAR, dates_administered VARCHAR)
SELECT candidates FROM table_1341453_34 WHERE first_elected = "1980"
What were the candidates in the district that first elected in 1980?
CREATE TABLE table_1341453_34 (candidates VARCHAR, first_elected VARCHAR)
SELECT score FROM table_name_19 WHERE attendance = "39,592"
What is the score of the game with 39,592 attendance?
CREATE TABLE table_name_19 (score VARCHAR, attendance VARCHAR)
SELECT MAX(rank) FROM table_name_76 WHERE gold = 0 AND bronze < 4 AND total = 2 AND silver > 1
What is the maximum rank when there is 0 gold, and the bronze is less than 4, and the silver is greater than 1, and 2 as the total?
CREATE TABLE table_name_76 (rank INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT COUNT(year) FROM table_name_47 WHERE award_giving_body = "famas awards"
How many years was famas awards the award giving body?
CREATE TABLE table_name_47 (year VARCHAR, award_giving_body VARCHAR)
SELECT MAX(track__number) FROM table_10848177_1
What is the highest track number?
CREATE TABLE table_10848177_1 (track__number INTEGER)
SELECT stop_no FROM table_name_25 WHERE destination = "[2778] claisebrook station platforms"
What is Stop No., when Destination is [2778] Claisebrook Station Platforms?
CREATE TABLE table_name_25 (stop_no VARCHAR, destination VARCHAR)
SELECT mountains_classification FROM table_name_94 WHERE winner = "thor hushovd" AND sprints_classification = "no award"
What is the Mountains Classification for Winner Thor hushovd with Sprints Classification of no award?
CREATE TABLE table_name_94 (mountains_classification VARCHAR, winner VARCHAR, sprints_classification VARCHAR)
SELECT date FROM table_name_85 WHERE home_team = "footscray"
What date did the home team of footscray play?
CREATE TABLE table_name_85 (date VARCHAR, home_team VARCHAR)
SELECT AVG(round) FROM table_name_13 WHERE player = "sammy morris"
What is the average round of player Sammy Morris?
CREATE TABLE table_name_13 (round INTEGER, player VARCHAR)
SELECT result FROM table_name_87 WHERE date = "9 october 2012"
what is the result on 9 october 2012?
CREATE TABLE table_name_87 (result VARCHAR, date VARCHAR)
SELECT record FROM table_name_58 WHERE opponent = "philadelphia 76ers"
What is the final record for the Philadelphia 76ers?
CREATE TABLE table_name_58 (record VARCHAR, opponent VARCHAR)
SELECT SUM(puchat_ligi) FROM table_name_46 WHERE total < 5 AND ekstraklasa > 1
How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1?
CREATE TABLE table_name_46 (puchat_ligi INTEGER, total VARCHAR, ekstraklasa VARCHAR)
SELECT record FROM table_name_85 WHERE res = "win" AND time = "5:00" AND round > 3
What is the record of the match with a win res., a 5:00 time, and more than 3 rounds?
CREATE TABLE table_name_85 (record VARCHAR, round VARCHAR, res VARCHAR, time VARCHAR)
SELECT margin FROM table_name_89 WHERE year = 2002
Name the margin for 2002
CREATE TABLE table_name_89 (margin VARCHAR, year VARCHAR)
SELECT yam_[y_] FROM table_name_48 WHERE soybean__green__[f_] = "0" AND potato_[d_] = "0.01"
What is the yam amount with amount of soybean 0 and potato of 0.01?
CREATE TABLE table_name_48 (yam_ VARCHAR, y_ VARCHAR, soybean__green__ VARCHAR, f_ VARCHAR, potato_ VARCHAR, d_ VARCHAR)
SELECT genre FROM table_name_30 WHERE english_title__chinese_title_ = "revolving doors of vengeance 酒店風雲"
What genre is revolving doors of vengeance 酒店風雲?
CREATE TABLE table_name_30 (genre VARCHAR, english_title__chinese_title_ VARCHAR)
SELECT goalkeeper FROM table_name_15 WHERE goals < 24
Who is the goalkeeper with fewer than 24 goals?
CREATE TABLE table_name_15 (goalkeeper VARCHAR, goals INTEGER)
SELECT MIN(round) FROM table_name_58 WHERE player = "matt delahey" AND pick > 112
What is the littlest round that has Matt Delahey, and a greater than 112 pick?
CREATE TABLE table_name_58 (round INTEGER, player VARCHAR, pick VARCHAR)
SELECT date_joined FROM table_name_27 WHERE from__club_ = "santo andré"
What date did the player from Santo André debut?
CREATE TABLE table_name_27 (date_joined VARCHAR, from__club_ VARCHAR)
SELECT document_name FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) DESC LIMIT 3
Find the list of documents that are both in the most three popular type and have the most three popular structure.
CREATE TABLE documents (document_name VARCHAR, document_type_code VARCHAR, document_structure_code VARCHAR)
SELECT score FROM table_name_58 WHERE tie_no = "6"
What is the score when the tie number is 6?
CREATE TABLE table_name_58 (score VARCHAR, tie_no VARCHAR)
SELECT winner FROM table_19930660_3 WHERE rufus_guest = "Sean Lock"
What is the resulting score for the episodes where Rufus's guest is Sean Lock?
CREATE TABLE table_19930660_3 (winner VARCHAR, rufus_guest VARCHAR)
SELECT episode FROM table_name_50 WHERE challenge_winner = "berto"
Which episode has a Challenge Winner of berto?
CREATE TABLE table_name_50 (episode VARCHAR, challenge_winner VARCHAR)
SELECT party FROM table_1342370_17 WHERE incumbent = "Riley Joseph Wilson"
To which party does Riley Joseph Wilson belong?
CREATE TABLE table_1342370_17 (party VARCHAR, incumbent VARCHAR)
SELECT original_title FROM table_20963074_1 WHERE result = "Not Nominated" AND film_title_used_in_nomination = "Report on Death"
Name the original title for not nominated result with report on death
CREATE TABLE table_20963074_1 (original_title VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT score FROM table_name_93 WHERE time = "14:30" AND venue = "happy valley recreation ground pitch #2"
What is the score of the match at happy valley recreation ground pitch #2 with a 14:30 time?
CREATE TABLE table_name_93 (score VARCHAR, time VARCHAR, venue VARCHAR)
SELECT MAX(capacity) FROM table_name_54 WHERE locality = "heaton chapel"
What is heaton chapel's capacity?
CREATE TABLE table_name_54 (capacity INTEGER, locality VARCHAR)
SELECT district FROM table_1341865_37 WHERE incumbent = "Carl W. Rich"
In which district is the incumbent Carl W. Rich?
CREATE TABLE table_1341865_37 (district VARCHAR, incumbent VARCHAR)
SELECT mascot FROM table_name_25 WHERE location = "brook"
What is the Mascot of Brook?
CREATE TABLE table_name_25 (mascot VARCHAR, location VARCHAR)
SELECT 2013 AS _index_of_economic_freedom FROM table_1604579_2 WHERE country = "Armenia"
How economically free is the country of Armenia?
CREATE TABLE table_1604579_2 (country VARCHAR)
SELECT code_name FROM table_name_12 WHERE fsb___ht__mhz_ = "100 (fsb)"
What is the code name when the FSB / HT (MHz) is 100 (fsb)?
CREATE TABLE table_name_12 (code_name VARCHAR, fsb___ht__mhz_ VARCHAR)
SELECT athlete FROM table_name_8 WHERE 224 = "xo" AND 220 = "o" AND 215 = "o"
Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o?
CREATE TABLE table_name_8 (athlete VARCHAR)
SELECT decision FROM table_name_56 WHERE visitor = "canadiens"
What was the decision of the Lightning game when the Canadiens were the away team?
CREATE TABLE table_name_56 (decision VARCHAR, visitor VARCHAR)
SELECT specific_impulse__s_ FROM table_name_19 WHERE scenario = "sr-71 at mach 3.2 (wet)"
What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)?
CREATE TABLE table_name_19 (specific_impulse__s_ VARCHAR, scenario VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_82 WHERE round > 6
WHAT IS THE LEAGUE WITH A ROUND LARGER THAN 6?
CREATE TABLE table_name_82 (college_junior_club_team__league_ VARCHAR, round INTEGER)
SELECT time FROM table_name_72 WHERE heat = 1 AND lane = 2
Can you tell me the Time that has the Heat of 1, and the Lane of 2?
CREATE TABLE table_name_72 (time VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT result_score FROM table_name_92 WHERE year > 2005 AND opponent = "#8 arkansas #1 memphis"
What is Result/Score, when Year is greater than 2005, and when Opponent is #8 Arkansas #1 Memphis?
CREATE TABLE table_name_92 (result_score VARCHAR, year VARCHAR, opponent VARCHAR)
SELECT circuit FROM table_name_41 WHERE winning_team = "cabin racing"
What circuit saw Cabin Racing as the winning team?
CREATE TABLE table_name_41 (circuit VARCHAR, winning_team VARCHAR)
SELECT away_team FROM table_name_60 WHERE venue = "emcg"
When the game was played at the EMCG venue, who was the away team?
CREATE TABLE table_name_60 (away_team VARCHAR, venue VARCHAR)
SELECT place FROM table_name_94 WHERE player = "tim simpson"
What was Tim Simpson's place?
CREATE TABLE table_name_94 (place VARCHAR, player VARCHAR)
SELECT COUNT(grid) FROM table_17256857_1 WHERE driver = "Vitor Meira"
How many drivers on the grid are called Vitor Meira?
CREATE TABLE table_17256857_1 (grid VARCHAR, driver VARCHAR)
SELECT fcc_info FROM table_name_34 WHERE frequency_mhz = "95.3 fm"
Name the FCC info for frequency Mhz of 95.3 fm
CREATE TABLE table_name_34 (fcc_info VARCHAR, frequency_mhz VARCHAR)
SELECT role FROM table_name_70 WHERE film = "the last samurai"
What was the Last Samurai role?
CREATE TABLE table_name_70 (role VARCHAR, film VARCHAR)
SELECT name FROM table_134987_3 WHERE city_of_license = "Rapid City" AND format = "Adult Contemporary"
What is the name of Rapid City's Adult Contemporary station?
CREATE TABLE table_134987_3 (name VARCHAR, city_of_license VARCHAR, format VARCHAR)
SELECT stadium FROM table_name_17 WHERE city = "brisbane"
What is the name of the stadium in Brisbane?
CREATE TABLE table_name_17 (stadium VARCHAR, city VARCHAR)
SELECT race_time FROM table_28178756_1 WHERE date = "May 11"
List the race time for may 11.
CREATE TABLE table_28178756_1 (race_time VARCHAR, date VARCHAR)
SELECT water__sqmi_ FROM table_18600760_20 WHERE latitude = "48.423224"
What is the water area (sqmi) for the township at latitude 48.423224?
CREATE TABLE table_18600760_20 (water__sqmi_ VARCHAR, latitude VARCHAR)
SELECT delegates FROM table_16186152_1 WHERE candidate = "John McCain"
Candidate John Mccain had how many delegates?
CREATE TABLE table_16186152_1 (delegates VARCHAR, candidate VARCHAR)