answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT artist FROM table_name_88 WHERE draw < 2
What is the artist with less than a 2 draw?
CREATE TABLE table_name_88 (artist VARCHAR, draw INTEGER)
SELECT plural FROM table_name_92 WHERE plural_gender = "n" AND meaning = "python"
What is the plural if the meaning is python and the plural gender is n?
CREATE TABLE table_name_92 (plural VARCHAR, plural_gender VARCHAR, meaning VARCHAR)
SELECT winning_team FROM table_name_81 WHERE pole_position = "robby gordon" AND date = "june 11"
Who's the Winning team with a Pole position of robby gordon, and a Date of june 11?
CREATE TABLE table_name_81 (winning_team VARCHAR, pole_position VARCHAR, date VARCHAR)
SELECT score FROM table_name_97 WHERE report = "fifa" AND date = "october 13, 2007"
What is the score of the FIFA report on October 13, 2007?
CREATE TABLE table_name_97 (score VARCHAR, report VARCHAR, date VARCHAR)
SELECT region FROM table_name_96 WHERE location = "49.7462°n 117.1419°w"
what is the region when the location is 49.7462°n 117.1419°w?
CREATE TABLE table_name_96 (region VARCHAR, location VARCHAR)
SELECT winners_club FROM table_name_68 WHERE event = "hang tight"
Which Winners club has an Event of hang tight?
CREATE TABLE table_name_68 (winners_club VARCHAR, event VARCHAR)
SELECT high_assists FROM table_22654073_7 WHERE date = "December 13"
Name the high assists for december 13
CREATE TABLE table_22654073_7 (high_assists VARCHAR, date VARCHAR)
SELECT MIN(attendance) FROM table_name_21 WHERE decision = "conklin" AND visitor = "chicago"
What was the lowest attendance at the game against chicago when conklin made the decision?
CREATE TABLE table_name_21 (attendance INTEGER, decision VARCHAR, visitor VARCHAR)
SELECT MIN(round) FROM table_name_50 WHERE position = "linebacker" AND player = "thomas henderson"
What is the lowest Round, when Position is Linebacker, and when Player is Thomas Henderson?
CREATE TABLE table_name_50 (round INTEGER, position VARCHAR, player VARCHAR)
SELECT weekly_rank FROM table_28283535_4 WHERE episode = "1.03"
What's the weekly rank of episode 1.03?
CREATE TABLE table_28283535_4 (weekly_rank VARCHAR, episode VARCHAR)
SELECT score FROM table_name_98 WHERE year > 1991 AND category = "iva"
What was the Score after 1991 in Category IVA?
CREATE TABLE table_name_98 (score VARCHAR, year VARCHAR, category VARCHAR)
SELECT player FROM table_name_89 WHERE county = "dublin"
Which player is from County Dublin?
CREATE TABLE table_name_89 (player VARCHAR, county VARCHAR)
SELECT COUNT(races) FROM table_name_15 WHERE wins > 8
What is the total number of Races when there were more than 8 wins?
CREATE TABLE table_name_15 (races VARCHAR, wins INTEGER)
SELECT haat FROM table_name_94 WHERE city_of_license = "devils lake"
what is the HAAT of devils lake
CREATE TABLE table_name_94 (haat VARCHAR, city_of_license VARCHAR)
SELECT attendance FROM table_name_44 WHERE home_team = "nuneaton borough"
What was the attendance when Nuneaton Borough was the home team?
CREATE TABLE table_name_44 (attendance VARCHAR, home_team VARCHAR)
SELECT max_downstream_throughput___mbit_s__ FROM table_2394927_1 WHERE power___dbm__ = "+17.5"
What are the highest mbit/s when the dbm is +17.5?
CREATE TABLE table_2394927_1 (max_downstream_throughput___mbit_s__ VARCHAR, power___dbm__ VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_2 WHERE original_title = "dependencia sexual"
What is Dependencia Sexual's film title that was used in its nomination?
CREATE TABLE table_name_2 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT engine FROM table_name_71 WHERE model = "s430"
Which Engine has a Model of s430?
CREATE TABLE table_name_71 (engine VARCHAR, model VARCHAR)
SELECT qb_rating FROM table_18686317_1 WHERE comp__percentage = "62.0"
What is the Quarterback rating of the player who got a comp percentage of 62.0?
CREATE TABLE table_18686317_1 (qb_rating VARCHAR, comp__percentage VARCHAR)
SELECT SUM(laps) FROM table_name_6 WHERE driver = "jo bonnier" AND grid < 11
How many laps did Jo Bonnier driver when the grid number was smaller than 11?
CREATE TABLE table_name_6 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT delegate FROM table_27050336_7 WHERE committee = "Environmental Matters" AND district = "36"
where committee is environmental matters and district is 36 please specify all the delegate name
CREATE TABLE table_27050336_7 (delegate VARCHAR, committee VARCHAR, district VARCHAR)
SELECT power__kw_ FROM table_name_63 WHERE coverage = "general santos"
What is the power in kW corresponding to the station that covers General Santos?
CREATE TABLE table_name_63 (power__kw_ VARCHAR, coverage VARCHAR)
SELECT opponent FROM table_name_59 WHERE method = "decision"
Name the opponent with decision
CREATE TABLE table_name_59 (opponent VARCHAR, method VARCHAR)
SELECT builder FROM table_20236726_2 WHERE wd_no = 22
Name the builder for wd number being 22
CREATE TABLE table_20236726_2 (builder VARCHAR, wd_no VARCHAR)
SELECT score FROM table_name_17 WHERE player = "tom kite"
What is the score of Player Tom Kite?
CREATE TABLE table_name_17 (score VARCHAR, player VARCHAR)
SELECT COUNT(capacity) FROM table_name_30 WHERE club = "pirin"
What is the total number of capacity for the venue of the club, pirin?
CREATE TABLE table_name_30 (capacity VARCHAR, club VARCHAR)
SELECT date FROM table_name_1 WHERE home = "lakers"
What is the date when the Lakers were the home team?
CREATE TABLE table_name_1 (date VARCHAR, home VARCHAR)
SELECT res FROM table_name_49 WHERE record = "47–5 (1)"
Record of 47–5 (1) involved what res?
CREATE TABLE table_name_49 (res VARCHAR, record VARCHAR)
SELECT MAX(attendance) FROM table_name_16 WHERE visitor = "dallas" AND date = "june 12"
Visitor of dallas, and a Date of june 12 had what highest attendance?
CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_53 WHERE location_attendance = "skydome"
Who was the opponent when they played at the Skydome?
CREATE TABLE table_name_53 (opponent VARCHAR, location_attendance VARCHAR)
SELECT AVG(game) FROM table_name_28 WHERE score = "101-109 (ot)"
Which Game has a Score of 101-109 (ot)?
CREATE TABLE table_name_28 (game INTEGER, score VARCHAR)
SELECT opponent FROM table_name_51 WHERE record = "64-78"
Who was the opponent when the record recorded was 64-78?
CREATE TABLE table_name_51 (opponent VARCHAR, record VARCHAR)
SELECT winner FROM table_name_42 WHERE circuit = "eastern creek raceway"
Who was the winner for the circuit Eastern Creek Raceway?
CREATE TABLE table_name_42 (winner VARCHAR, circuit VARCHAR)
SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1
What is the department name of the students with lowest gpa belongs to?
CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)
SELECT team FROM table_name_19 WHERE players = "amanda coetzer and marcos ondruska"
Players of amanda coetzer and marcos ondruska is what team?
CREATE TABLE table_name_19 (team VARCHAR, players VARCHAR)
SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1
What is the description of the type of the company who concluded its contracts most recently?
CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_end_date VARCHAR); CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR, company_type_code VARCHAR); CREATE TABLE Ref_Company_Types (company_type_code VARCHAR)
SELECT MAX(obama_number) FROM table_20750731_1 WHERE mccain_percentage = "64.4%"
What is the Obama# when McCain% is 64.4%?
CREATE TABLE table_20750731_1 (obama_number INTEGER, mccain_percentage VARCHAR)
SELECT percentage__2011_ FROM table_name_13 WHERE population__2006_ > 120 AND percentage__2006_ = "45.22%"
What percentage of the 2011 population had a mother tongue language that was spoken by 45.22% of the population in 2006 (over 120)?
CREATE TABLE table_name_13 (percentage__2011_ VARCHAR, population__2006_ VARCHAR, percentage__2006_ VARCHAR)
SELECT home_team FROM table_16388545_1 WHERE away_team = "Carlton"
When the away team was Carlton, who was the home team?
CREATE TABLE table_16388545_1 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(grid) FROM table_name_56 WHERE laps > 23
What is the average grid with more than 23 laps?
CREATE TABLE table_name_56 (grid INTEGER, laps INTEGER)
SELECT AVG(fa_cup) FROM table_name_15 WHERE player = "gary jones" AND fa_trophy > 5
What is the average FA Cup that has gary jones as the player, and an FA trophy greater than 5?
CREATE TABLE table_name_15 (fa_cup INTEGER, player VARCHAR, fa_trophy VARCHAR)
SELECT last_performance FROM table_name_26 WHERE name = "j.p. viernes"
When was J.P. Viernes' last performance?
CREATE TABLE table_name_26 (last_performance VARCHAR, name VARCHAR)
SELECT COUNT(DISTINCT source_system_code) FROM CMI_cross_references
How many different source system code for the cmi cross references are there?
CREATE TABLE CMI_cross_references (source_system_code VARCHAR)
SELECT try_bonus FROM table_name_82 WHERE points_for = "418"
That is the value for Try bonus when the value for Points is 418?
CREATE TABLE table_name_82 (try_bonus VARCHAR, points_for VARCHAR)
SELECT home_port FROM table_name_15 WHERE ship = "kansas city"
Name the home port for kansas city
CREATE TABLE table_name_15 (home_port VARCHAR, ship VARCHAR)
SELECT high_points FROM table_22879323_10 WHERE high_rebounds = "Terrence Williams (8)"
What was the high points when rebounds were Terrence Williams (8)?
CREATE TABLE table_22879323_10 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT frequency FROM table_name_74 WHERE branding = "94dot3 home radio palawan"
What is the frequency for the station with the branding of 94dot3 home radio Palawan?
CREATE TABLE table_name_74 (frequency VARCHAR, branding VARCHAR)
SELECT average FROM table_11884814_3 WHERE swimsuit = "9.57"
What was the average for the country with the swimsuit score of 9.57?
CREATE TABLE table_11884814_3 (average VARCHAR, swimsuit VARCHAR)
SELECT frequency FROM table_21716139_1 WHERE train_no = "12671/12672"
What is the frequency of trains numbered 12671/12672?
CREATE TABLE table_21716139_1 (frequency VARCHAR, train_no VARCHAR)
SELECT MAX(first_elected) FROM table_1341930_21
What is the last year that someone is first elected in this table?
CREATE TABLE table_1341930_21 (first_elected INTEGER)
SELECT round FROM table_name_82 WHERE event = "rings: king of kings 2000 block a" AND record = "6-1"
How many rounds did the event rings: king of kings 2000 block a have with a record of 6-1?
CREATE TABLE table_name_82 (round VARCHAR, event VARCHAR, record VARCHAR)
SELECT frequency FROM table_name_14 WHERE class = "a" AND identifier = "cbf-fm-14"
What's the frequency when the identifier is cbf-fm-14 having a class of A?
CREATE TABLE table_name_14 (frequency VARCHAR, class VARCHAR, identifier VARCHAR)
SELECT COUNT(points) FROM table_name_21 WHERE engine = "ford cosworth" AND year > 1991
What is total amount of points of entrants with a ford cosworth engine and a year later than 1991?
CREATE TABLE table_name_21 (points VARCHAR, engine VARCHAR, year VARCHAR)
SELECT nationality FROM table_name_60 WHERE position = "forward" AND years_for_grizzlies = "2011"
What is the nationality of the forward position on the Grizzlies in 2011?
CREATE TABLE table_name_60 (nationality VARCHAR, position VARCHAR, years_for_grizzlies VARCHAR)
SELECT AVG(tries) FROM table_name_7 WHERE goals < 0
What is the average Tries with less than 0 goals?
CREATE TABLE table_name_7 (tries INTEGER, goals INTEGER)
SELECT 54 AS _holes FROM table_name_7 WHERE championship = "the open championship (4)"
What is the 54 holes for The Open Championship (4)?
CREATE TABLE table_name_7 (championship VARCHAR)
SELECT MAX(attendance) FROM table_name_10 WHERE result = "w 14-3" AND week > 10
What was the largest number of people in attendance of the game with a W 14-3 result after week 10?
CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT discipline FROM table_22360_3 WHERE bronze = 0
Name the discipline for bronze being 0
CREATE TABLE table_22360_3 (discipline VARCHAR, bronze VARCHAR)
SELECT winning_party_coalition FROM table_23512864_4 WHERE election_year = 1980
Who is the winning party/coalition name in election year 1980?
CREATE TABLE table_23512864_4 (winning_party_coalition VARCHAR, election_year VARCHAR)
SELECT episode FROM table_name_23 WHERE xii_season = "4 118 160 (26 september 2010)"
What is Episode, when XII Season is 4 118 160 (26 september 2010)?
CREATE TABLE table_name_23 (episode VARCHAR, xii_season VARCHAR)
SELECT AVG(silver) FROM table_name_44 WHERE rank < 8 AND total = 12 AND bronze < 4
What is the average silver for a rank less than 8, were there were no more than 4 bronze and 12 in total?
CREATE TABLE table_name_44 (silver INTEGER, bronze VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(*) FROM wedding WHERE YEAR = 2016
How many weddings are there in year 2016?
CREATE TABLE wedding (YEAR VARCHAR)
SELECT score FROM table_name_84 WHERE country = "united states" AND to_par = "+5"
What is the score of the United States, which has a to par of +5?
CREATE TABLE table_name_84 (score VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT mountains_classification FROM table_name_2 WHERE winner = "josé luis carrasco"
What is the Mountains Classification for Winner josé luis carrasco?
CREATE TABLE table_name_2 (mountains_classification VARCHAR, winner VARCHAR)
SELECT MIN(total) FROM table_name_63 WHERE country = "fiji"
What is Fiji's lowest total?
CREATE TABLE table_name_63 (total INTEGER, country VARCHAR)
SELECT islam FROM table_16642_1 WHERE ethnicity = "Tajik"
When tajik is the ethnicity what is islam?
CREATE TABLE table_16642_1 (islam VARCHAR, ethnicity VARCHAR)
SELECT MAX(game) FROM table_11964154_9 WHERE high_points = "Mickaël Gelabale (21)"
what is the maximum game where high points is mickaël gelabale (21)
CREATE TABLE table_11964154_9 (game INTEGER, high_points VARCHAR)
SELECT original_broadway_cast FROM table_name_56 WHERE original_west_end_cast = "sheila hancock"
What is the name of the person who was in the Original Broadway Cast that was Original West End Cast of sheila hancock?
CREATE TABLE table_name_56 (original_broadway_cast VARCHAR, original_west_end_cast VARCHAR)
SELECT score FROM table_name_67 WHERE visitor = "ny islanders"
What was the score when the NY Islanders was the visiting team?
CREATE TABLE table_name_67 (score VARCHAR, visitor VARCHAR)
SELECT to_par FROM table_name_22 WHERE player = "emlyn aubrey"
Which To par has a Player of emlyn aubrey?
CREATE TABLE table_name_22 (to_par VARCHAR, player VARCHAR)
SELECT game_site FROM table_25380472_2 WHERE team_record = "0–5"
On what game sites are there where the team record is 0–5?
CREATE TABLE table_25380472_2 (game_site VARCHAR, team_record VARCHAR)
SELECT club FROM table_name_58 WHERE nation = "great britain"
What was the club for Great Britain?
CREATE TABLE table_name_58 (club VARCHAR, nation VARCHAR)
SELECT nature_of_incident FROM table_name_93 WHERE casualties = "3 wia" AND circumstances = "ied"
What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied?
CREATE TABLE table_name_93 (nature_of_incident VARCHAR, casualties VARCHAR, circumstances VARCHAR)
SELECT class FROM table_name_90 WHERE call_sign = "w269ax"
what is the class of w269ax
CREATE TABLE table_name_90 (class VARCHAR, call_sign VARCHAR)
SELECT home_team AS score FROM table_name_27 WHERE home_team = "footscray"
When the home team was footscray what did they score?
CREATE TABLE table_name_27 (home_team VARCHAR)
SELECT worldwide_gross FROM table_name_38 WHERE rank = 3
What is the Worldwide Gross of the Film with a Rank of 3?
CREATE TABLE table_name_38 (worldwide_gross VARCHAR, rank VARCHAR)
SELECT year FROM table_name_35 WHERE director = "lee phillips"
When was Lee Phillips the director?
CREATE TABLE table_name_35 (year VARCHAR, director VARCHAR)
SELECT result FROM table_name_5 WHERE distance = "1200m" AND weight__kg_ = 55.5
Name The Result that has a Distance of 1200m, and a Weight (kg) of 55.5?
CREATE TABLE table_name_5 (result VARCHAR, distance VARCHAR, weight__kg_ VARCHAR)
SELECT MIN(f_laps) FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series"
What is the minimum number of f/laps in the Italian Formula Renault 2.0 Winter Series?
CREATE TABLE table_21795650_1 (f_laps INTEGER, series VARCHAR)
SELECT SUM(round) FROM table_name_62 WHERE pick = 9 AND name = "jim pyburn"
What is the sum of rounds that has a pick of 9 and is named jim pyburn?
CREATE TABLE table_name_62 (round INTEGER, pick VARCHAR, name VARCHAR)
SELECT AVG(crowd) FROM table_name_84 WHERE home_team = "essendon"
What is the average amount of spectators when Essendon played as the home team?
CREATE TABLE table_name_84 (crowd INTEGER, home_team VARCHAR)
SELECT category FROM table_name_89 WHERE award = "monte carlo tv festival awards" AND year > 2010
Which Category has an Award of monte carlo tv festival awards, and a Year larger than 2010?
CREATE TABLE table_name_89 (category VARCHAR, award VARCHAR, year VARCHAR)
SELECT equatorial_bulge FROM table_name_74 WHERE body = "earth"
What is the Equatorial bulge of the Body: Earth?
CREATE TABLE table_name_74 (equatorial_bulge VARCHAR, body VARCHAR)
SELECT rebuilt FROM table_name_40 WHERE name_as_rebuilt = "binevanagh"
Which Rebuilt has a Name as rebuilt of binevanagh?
CREATE TABLE table_name_40 (rebuilt VARCHAR, name_as_rebuilt VARCHAR)
SELECT MAX(rank) FROM table_name_98 WHERE react = 0.198 AND time < 46.3
Which Rank has a Reaction of 0.198, and a Time smaller than 46.3?
CREATE TABLE table_name_98 (rank INTEGER, react VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_52 WHERE result = "w 31-21"
Tell mem the opponent for result of w 31-21
CREATE TABLE table_name_52 (opponent VARCHAR, result VARCHAR)
SELECT developer_s_ FROM table_name_4 WHERE game = "resident evil 4"
Who was the developer of Resident Evil 4?
CREATE TABLE table_name_4 (developer_s_ VARCHAR, game VARCHAR)
SELECT theme, YEAR FROM exhibition WHERE ticket_price < 15
Show theme and year for all exhibitions with ticket prices lower than 15.
CREATE TABLE exhibition (theme VARCHAR, YEAR VARCHAR, ticket_price INTEGER)
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 thai_name FROM table_name_29 WHERE transcription = "wan phruehatsabodi"
Show the Thai name of wan phruehatsabodi?
CREATE TABLE table_name_29 (thai_name VARCHAR, transcription VARCHAR)
SELECT Lieutenant AS governor FROM table_name_90 WHERE left_office = "october 16, 2000"
Who was lieutenant governor to the governor that left office on October 16, 2000?
CREATE TABLE table_name_90 (Lieutenant VARCHAR, left_office VARCHAR)
SELECT party AS a FROM table_22757733_4 WHERE runner_up_a = "K. Annamalai"
which was k. annamalai´s party a?
CREATE TABLE table_22757733_4 (party VARCHAR, runner_up_a VARCHAR)
SELECT name FROM program ORDER BY launch
list all the names of programs, ordering by launch time.
CREATE TABLE program (name VARCHAR, launch VARCHAR)
SELECT candidates FROM table_1341884_19 WHERE result = "Re-elected" AND party = "Republican"
What candidates were in the election when a republican was re-elected?
CREATE TABLE table_1341884_19 (candidates VARCHAR, result VARCHAR, party VARCHAR)
SELECT finish FROM table_name_42 WHERE year > 2007
Give the Finish for years after 2007.
CREATE TABLE table_name_42 (finish VARCHAR, year INTEGER)
SELECT COUNT(rank) FROM table_22014431_3 WHERE tumbling = "36.5"
What is the rank when 36.5 is tumbling?
CREATE TABLE table_22014431_3 (rank VARCHAR, tumbling VARCHAR)
SELECT notes FROM table_name_46 WHERE athlete = "lassi karonen"
What is listed in notes for the athlete, lassi karonen?
CREATE TABLE table_name_46 (notes VARCHAR, athlete VARCHAR)
SELECT club FROM table_name_23 WHERE third = "yumie hayashi"
Yumie Hayashi was third for which club?
CREATE TABLE table_name_23 (club VARCHAR, third VARCHAR)
SELECT winning_score FROM table_name_60 WHERE tournament = "andy williams-san diego open invitational"
What was the winning score for the Andy Williams-San Diego Open Invitational tournament?
CREATE TABLE table_name_60 (winning_score VARCHAR, tournament VARCHAR)
SELECT MIN(total) FROM table_name_4 WHERE gold > 6 AND rank > 2 AND silver > 5
For ranks over 2 with Golds over 6 and Silvers over 5 what would be the lowest qualifying Total?
CREATE TABLE table_name_4 (total INTEGER, silver VARCHAR, gold VARCHAR, rank VARCHAR)