answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT AVG(matches) FROM table_name_79 WHERE name = "leonardo" AND seasons > 1
What is the average number of matches of leonardo in seasons after 1?
CREATE TABLE table_name_79 (matches INTEGER, name VARCHAR, seasons VARCHAR)
SELECT MIN(bronze) FROM table_name_3 WHERE rank = "3" AND silver < 2
what is the least bronze when the rank is 3 and silver is less than 2?
CREATE TABLE table_name_3 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT transfer_window FROM table_name_78 WHERE country = "bel"
What is the transfer window for bel?
CREATE TABLE table_name_78 (transfer_window VARCHAR, country VARCHAR)
SELECT score FROM table_name_18 WHERE loss = "lary (10-12)"
What was the score when the game has a loss of Lary (10-12)?
CREATE TABLE table_name_18 (score VARCHAR, loss VARCHAR)
SELECT date FROM table_name_32 WHERE runner_s__up = "jerilyn britz"
On what date is Jerilyn Britz the runner-up?
CREATE TABLE table_name_32 (date VARCHAR, runner_s__up VARCHAR)
SELECT MAX(aircraft_movements_2009) FROM table_13836704_4 WHERE change_2008_09 = "18.2%"
what is the maximum aircraft movements 2009 with change 2008/09 being 18.2%
CREATE TABLE table_13836704_4 (aircraft_movements_2009 INTEGER, change_2008_09 VARCHAR)
SELECT MAX(fa_cup) FROM table_name_43 WHERE total = "0 4" AND championship < 4
What is the highest value for FA cups, that has a total of 0 4, with less than 4 championships?
CREATE TABLE table_name_43 (fa_cup INTEGER, total VARCHAR, championship VARCHAR)
SELECT famous_for FROM table_name_52 WHERE finished = "9th"
Which celebrity was famous for finishing 9th?
CREATE TABLE table_name_52 (famous_for VARCHAR, finished VARCHAR)
SELECT engine FROM table_name_52 WHERE years = "2012-"
What is the engine for year 2012-?
CREATE TABLE table_name_52 (engine VARCHAR, years VARCHAR)
SELECT SUM(band) FROM table_name_46 WHERE power__w_ < 400
What Band number has a Power (W) of 400 or less?
CREATE TABLE table_name_46 (band INTEGER, power__w_ INTEGER)
SELECT date FROM table_name_15 WHERE location_attendance = "verizon center 7,448"
Which Date has a Location/Attendance of verizon center 7,448?
CREATE TABLE table_name_15 (date VARCHAR, location_attendance VARCHAR)
SELECT candidates FROM table_1342338_5 WHERE incumbent = "Claude Fuller"
Who ran in the election where Claude Fuller was the incumbent?
CREATE TABLE table_1342338_5 (candidates VARCHAR, incumbent VARCHAR)
SELECT away_team FROM table_name_58 WHERE home_team = "al-ain fc" AND score = "1–1"
Which Away team has a Home team of al-ain fc, and a Score of 1–1?
CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR, score VARCHAR)
SELECT COUNT(candidates) FROM table_1341604_39 WHERE incumbent = "Bud Shuster"
How many candidates won the election in the district whose incumbent is Bud Shuster?
CREATE TABLE table_1341604_39 (candidates VARCHAR, incumbent VARCHAR)
SELECT import FROM table_12077540_1 WHERE product = "Plywood"
There are 5 imports of plywood.
CREATE TABLE table_12077540_1 (import VARCHAR, product VARCHAR)
SELECT home_team FROM table_name_85 WHERE attendance = "2,029"
What is the home team at the game with an Attendance of 2,029?
CREATE TABLE table_name_85 (home_team VARCHAR, attendance VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_85 WHERE score = 67 - 71 - 70 - 71 = 279
What is the amount of money with a score of 67-71-70-71=279?
CREATE TABLE table_name_85 (money___ VARCHAR, score VARCHAR)
SELECT site FROM table_28298589_4 WHERE home_team = "Pittsburgh"
In what facility was Pittsburgh's home game played?
CREATE TABLE table_28298589_4 (site VARCHAR, home_team VARCHAR)
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1
Find the name of the ship that is steered by the youngest captain.
CREATE TABLE ship (name VARCHAR, ship_id VARCHAR); CREATE TABLE captain (ship_id VARCHAR, age VARCHAR)
SELECT SUM(earnings__) AS $__ FROM table_name_63 WHERE rank < 1
Tell me the sum of earnings for rank less than 1
CREATE TABLE table_name_63 (earnings__ INTEGER, rank INTEGER)
SELECT collegiate_institution FROM table_18159601_1 WHERE city = "Queens"
what is the collegiate institution in queens
CREATE TABLE table_18159601_1 (collegiate_institution VARCHAR, city VARCHAR)
SELECT entrant FROM table_name_62 WHERE chassis = "mclaren m7c"
Which entrant has a Mclaren m7c Chassis?
CREATE TABLE table_name_62 (entrant VARCHAR, chassis VARCHAR)
SELECT COUNT(age) FROM table_24501530_1 WHERE candidate = "Amy Cato"
How many ages for player Amy Cato?
CREATE TABLE table_24501530_1 (age VARCHAR, candidate VARCHAR)
SELECT winner FROM table_name_63 WHERE city = "nuevo vallarta"
What is the Winner of the Event in Nuevo Vallarta?
CREATE TABLE table_name_63 (winner VARCHAR, city VARCHAR)
SELECT team FROM table_27902171_5 WHERE location_attendance = "ARCO Arena 17,014"
What is every team with location attendance of Arco Arena 17,014?
CREATE TABLE table_27902171_5 (team VARCHAR, location_attendance VARCHAR)
SELECT train_name FROM table_21716139_1 WHERE destination = "Tuticorin"
What is the train name that has a destination of Tuticorin?
CREATE TABLE table_21716139_1 (train_name VARCHAR, destination VARCHAR)
SELECT SUM(draw) FROM table_name_90 WHERE lost < 6 AND place = 5 AND goals_scored < 29
What is the sum of draw with a lost smaller than 6, and a place of 5, and a goals scored less than 29?
CREATE TABLE table_name_90 (draw INTEGER, goals_scored VARCHAR, lost VARCHAR, place VARCHAR)
SELECT tournament FROM table_name_38 WHERE 2012 = "2r"
what is the tournament when in 2012 the performance was 2r?
CREATE TABLE table_name_38 (tournament VARCHAR)
SELECT game FROM table_name_73 WHERE road_team = "boston" AND date = "april 23"
What game number was played on April 23, with Boston as the road team?
CREATE TABLE table_name_73 (game VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT SUM(rank) FROM table_name_52 WHERE nationality = "japan" AND lane < 7 AND heat < 3
What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?
CREATE TABLE table_name_52 (rank INTEGER, heat VARCHAR, nationality VARCHAR, lane VARCHAR)
SELECT wrestlers FROM table_name_83 WHERE days_held = "428"
Name the wrestlers with days held of 428
CREATE TABLE table_name_83 (wrestlers VARCHAR, days_held VARCHAR)
SELECT COUNT(party) FROM table_1342013_9 WHERE candidates = "Charles Edward Bennett (D) Unopposed"
how many party with candidates being charles edward bennett (d) unopposed
CREATE TABLE table_1342013_9 (party VARCHAR, candidates VARCHAR)
SELECT MAX(first_elected) FROM table_1341930_10
What year were the latest elections?
CREATE TABLE table_1341930_10 (first_elected INTEGER)
SELECT elevated FROM table_name_13 WHERE nationality = "pisa"
When was the elector from pisa elevated?
CREATE TABLE table_name_13 (elevated VARCHAR, nationality VARCHAR)
SELECT opponent FROM table_name_23 WHERE date = "18 january 1993"
who is the opponent on 18 january 1993?
CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR)
SELECT spending_per_capita FROM table_14700336_1 WHERE revenue_per_capita = "$7,755"
What was the spending per capita when the revenue per capita was $7,755?
CREATE TABLE table_14700336_1 (spending_per_capita VARCHAR, revenue_per_capita VARCHAR)
SELECT width FROM table_name_3 WHERE entered_service = 2010
Which width had an entered service year of 2010?
CREATE TABLE table_name_3 (width VARCHAR, entered_service VARCHAR)
SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor'
What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?
CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, medicine_id VARCHAR, interaction_type VARCHAR); CREATE TABLE enzyme (name VARCHAR, id VARCHAR)
SELECT COUNT(accreditation) FROM table_2076522_2 WHERE founded = 2006
How many schools founded in 2006?
CREATE TABLE table_2076522_2 (accreditation VARCHAR, founded VARCHAR)
SELECT rank FROM table_name_34 WHERE player = "isco alarcón"
What rank is the team that has a player named Isco Alarcón?
CREATE TABLE table_name_34 (rank VARCHAR, player VARCHAR)
SELECT COUNT(weight) FROM table_name_90 WHERE position = "forward/center" AND player = "othella harrington" AND number < 32
What is the total number of Weight, when Position is "Forward/Center", when Player is "Othella Harrington", and when Number is less than 32?
CREATE TABLE table_name_90 (weight VARCHAR, number VARCHAR, position VARCHAR, player VARCHAR)
SELECT title FROM table_name_55 WHERE story = "martin worth"
What was the title of the episode that martin worth wrote the story for?
CREATE TABLE table_name_55 (title VARCHAR, story VARCHAR)
SELECT score FROM table_name_62 WHERE money___$__ = "22,500"
What's the score for $22,500?
CREATE TABLE table_name_62 (score VARCHAR, money___$__ VARCHAR)
SELECT chipset FROM table_name_17 WHERE memory = "rambus" AND fsb__mhz_ = "400 or 533" AND model = "precision 340"
What is the chipset in the Precision 340 model that has the rambus memory and 400 or 533 FSB (MHz)?
CREATE TABLE table_name_17 (chipset VARCHAR, model VARCHAR, memory VARCHAR, fsb__mhz_ VARCHAR)
SELECT MIN(attendance) FROM table_name_62 WHERE home_team = "slough town"
What is the lowest Attendance when the home team was slough town?
CREATE TABLE table_name_62 (attendance INTEGER, home_team VARCHAR)
SELECT director FROM table_name_77 WHERE year = 2014 AND writer = "yes"
With yes under writer and in 2014, what is the director?
CREATE TABLE table_name_77 (director VARCHAR, year VARCHAR, writer VARCHAR)
SELECT date FROM table_name_43 WHERE result = "w 20-17"
On what date was the result w 20-17?
CREATE TABLE table_name_43 (date VARCHAR, result VARCHAR)
SELECT home FROM table_name_73 WHERE record = "2-4"
Which home had a record of 2-4?
CREATE TABLE table_name_73 (home VARCHAR, record VARCHAR)
SELECT MIN(interview) FROM table_name_79 WHERE preliminaries < 9.4 AND evening_gown < 9.55 AND country = "new york" AND swimsuit > 9.18
What is the least score for interview with a preliminaries score less than 9.4, evening gown score less than 9.55, and swimsuit score more than 9.18 in New York?
CREATE TABLE table_name_79 (interview INTEGER, swimsuit VARCHAR, country VARCHAR, preliminaries VARCHAR, evening_gown VARCHAR)
SELECT MAX(attendance) FROM table_name_46 WHERE away_team = "eastwood town"
What is the highest attendance of the game with eastwood town as the away team?
CREATE TABLE table_name_46 (attendance INTEGER, away_team VARCHAR)
SELECT rounds FROM table_name_8 WHERE driver = "elio de angelis"
What rounds does elio de angelis drive?
CREATE TABLE table_name_8 (rounds VARCHAR, driver VARCHAR)
SELECT frequency FROM table_name_25 WHERE power__kw_ = "10kw" AND callsign = "dxez"
What is the frequency for the 10kw station with DXEZ as its callsign?
CREATE TABLE table_name_25 (frequency VARCHAR, power__kw_ VARCHAR, callsign VARCHAR)
SELECT date FROM table_name_4 WHERE loss = "aker (3–8)"
What date was the game with loss of Aker (3–8)?
CREATE TABLE table_name_4 (date VARCHAR, loss VARCHAR)
SELECT 2007 FROM table_name_32 WHERE tournament = "grand slam sr"
Which 2007 has a Tournament of grand slam sr?
CREATE TABLE table_name_32 (tournament VARCHAR)
SELECT MIN(no_in_series) FROM table_23117208_3 WHERE viewers__millions_ = "5.28"
when the number of spectator are 5.28 millions, which is the smallest number of the episode in series?
CREATE TABLE table_23117208_3 (no_in_series INTEGER, viewers__millions_ VARCHAR)
SELECT mountains_classification FROM table_name_82 WHERE young_rider_classification = "francesco casagrande" AND intergiro_classification = "not awarded" AND stage = "2"
Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2
CREATE TABLE table_name_82 (mountains_classification VARCHAR, stage VARCHAR, young_rider_classification VARCHAR, intergiro_classification VARCHAR)
SELECT game_site FROM table_name_52 WHERE result = "bye"
What game site has a result of bye?
CREATE TABLE table_name_52 (game_site VARCHAR, result VARCHAR)
SELECT AVG(february) FROM table_name_96 WHERE game = 53
What day in february was game 53?
CREATE TABLE table_name_96 (february INTEGER, game VARCHAR)
SELECT COUNT(first_elected) FROM table_name_22 WHERE counties_represented = "anne arundel" AND district = "30" AND committee = "ways and means"
What is the total number of First Elected that has counties represented of Anne Arundel, District of 30, and a Ways and Means Committee?
CREATE TABLE table_name_22 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)
SELECT visitor FROM table_name_95 WHERE home = "detroit" AND date = "april 22"
Who has a Home of detroit on april 22?
CREATE TABLE table_name_95 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT 1973 FROM table_name_31 WHERE 1978 = "75%"
What 1973 has a 1978 of 75%?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT COUNT(goals) FROM table_name_36 WHERE rank = 6
How many goals ranked 6?
CREATE TABLE table_name_36 (goals VARCHAR, rank VARCHAR)
SELECT result FROM table_name_33 WHERE venue = "bridgeview, illinois"
What was the result of Bridgeview, Illinois?
CREATE TABLE table_name_33 (result VARCHAR, venue VARCHAR)
SELECT college_junior_club_team FROM table_2897457_3 WHERE position = "Defence" AND nationality = "Canada" AND pick__number < 61.0
Which college/junior/team has defence as the position with canada as the nationality and the pick # is less than 61.0?
CREATE TABLE table_2897457_3 (college_junior_club_team VARCHAR, pick__number VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT mascot FROM table_name_39 WHERE _number___county = "66 pulaski 2"
what's the mascot for 66 pulaski 2?
CREATE TABLE table_name_39 (mascot VARCHAR, _number___county VARCHAR)
SELECT result FROM table_name_6 WHERE attendance = "62,078"
What is the result of the game when the attendance is 62,078?
CREATE TABLE table_name_6 (result VARCHAR, attendance VARCHAR)
SELECT venue FROM table_name_69 WHERE competition = "fa cup rd 1"
Competition of fa cup rd 1 had what venue?
CREATE TABLE table_name_69 (venue VARCHAR, competition VARCHAR)
SELECT upstream FROM table_name_82 WHERE downstream = "100 mbps"
What is the upstream for the 100 mbps downstream?
CREATE TABLE table_name_82 (upstream VARCHAR, downstream VARCHAR)
SELECT AVG(year) FROM table_name_29 WHERE director = "ayan mukerji"
What is average year for ayan mukerji?
CREATE TABLE table_name_29 (year INTEGER, director VARCHAR)
SELECT year_opened FROM table_name_50 WHERE location = "west mifflin, pennsylvania"
Which year opened is located in west mifflin, pennsylvania?
CREATE TABLE table_name_50 (year_opened VARCHAR, location VARCHAR)
SELECT MAX(_number) FROM table_19834691_4 WHERE viewers__millions_ = "6.95"
Name the most number for viewers being 6.95
CREATE TABLE table_19834691_4 (_number INTEGER, viewers__millions_ VARCHAR)
SELECT rank_points FROM table_name_72 WHERE total = "11"
What were the rank points when the total was 11?
CREATE TABLE table_name_72 (rank_points VARCHAR, total VARCHAR)
SELECT retired FROM table_name_91 WHERE notes = "replaced by 737-300s"
What year was the aircraft retired when it was replaced by 737-300s?
CREATE TABLE table_name_91 (retired VARCHAR, notes VARCHAR)
SELECT winner FROM table_name_82 WHERE stage = "ss14"
Name the winner for ss14
CREATE TABLE table_name_82 (winner VARCHAR, stage VARCHAR)
SELECT transfer_window FROM table_name_49 WHERE country = "esp" AND name = "de la red"
What is the transfer window for the country of ESP and the name of de la red?
CREATE TABLE table_name_49 (transfer_window VARCHAR, country VARCHAR, name VARCHAR)
SELECT winner FROM table_name_79 WHERE score = "7–6 (7–3) , 2–6, [10–6]"
Who was the winner with a score of 7–6 (7–3) , 2–6, [10–6]?
CREATE TABLE table_name_79 (winner VARCHAR, score VARCHAR)
SELECT arkansas FROM table_name_22 WHERE alabama = "ken stabler"
Who is the Arkansas player associated with Ken Stabler?
CREATE TABLE table_name_22 (arkansas VARCHAR, alabama VARCHAR)
SELECT AVG(attendance) FROM table_name_46 WHERE home = "florida" AND visitor = "montreal"
What was the attendance of the Florida vs. Montreal game?
CREATE TABLE table_name_46 (attendance INTEGER, home VARCHAR, visitor VARCHAR)
SELECT COUNT(written_by) FROM table_28081876_4 WHERE directed_by = "Rob Schrab"
how many people wrote the episode directed by rob schrab?
CREATE TABLE table_28081876_4 (written_by VARCHAR, directed_by VARCHAR)
SELECT accreditation_level FROM table_name_76 WHERE network_brand_name = "movistar"
What is the accreditation level of the network brand Movistar?
CREATE TABLE table_name_76 (accreditation_level VARCHAR, network_brand_name VARCHAR)
SELECT throws FROM table_name_10 WHERE surname = "needle"
How many throws did Needle have?
CREATE TABLE table_name_10 (throws VARCHAR, surname VARCHAR)
SELECT other_party FROM table_name_35 WHERE district = 3
Who is the other party nominee for district 3?
CREATE TABLE table_name_35 (other_party VARCHAR, district VARCHAR)
SELECT year FROM table_11677760_1 WHERE player = "Derrick Favors"
what is the year for player is derrick favors?
CREATE TABLE table_11677760_1 (year VARCHAR, player VARCHAR)
SELECT MAX(week) FROM table_name_48 WHERE record = "1-3"
What was the highest week when the record was 1-3?
CREATE TABLE table_name_48 (week INTEGER, record VARCHAR)
SELECT date FROM table_name_83 WHERE tournament = "greenbrier classic"
What is Date, when Tournament, is Greenbrier Classic?
CREATE TABLE table_name_83 (date VARCHAR, tournament VARCHAR)
SELECT SUM(weight) FROM table_name_52 WHERE player = "deshawn stevenson"
What does DeShawn Stevenson weigh?
CREATE TABLE table_name_52 (weight INTEGER, player VARCHAR)
SELECT articulatory_class FROM table_name_27 WHERE non__stop = "(ㆁ)"
If the Non- stop is (ㆁ), what is the Articulatory Class?
CREATE TABLE table_name_27 (articulatory_class VARCHAR, non__stop VARCHAR)
SELECT COUNT(date_of_demolition) FROM table_name_7 WHERE location = "wood street"
How many dates of demolition are located on Wood Street?
CREATE TABLE table_name_7 (date_of_demolition VARCHAR, location VARCHAR)
SELECT AVG(entries) FROM table_name_64 WHERE wins < 37 AND percentage = "14.12%"
Which driver has less than 37 wins and at 14.12%?
CREATE TABLE table_name_64 (entries INTEGER, wins VARCHAR, percentage VARCHAR)
SELECT old_bulgarian_names FROM table_15275060_1 WHERE BULGARIAN_NAME(Transliteration) = Yuni
Name the old bulgarian names for yuni
CREATE TABLE table_15275060_1 (old_bulgarian_names VARCHAR, Yuni VARCHAR, Transliteration VARCHAR)
SELECT series FROM table_name_12 WHERE release_date = "1935-07-13"
What series has 1935-07-13 as the release date?
CREATE TABLE table_name_12 (series VARCHAR, release_date VARCHAR)
SELECT leading_scorer FROM table_name_55 WHERE visitor = "trail blazers"
Who was the leading scorer when the visiting team was the Trail Blazers?
CREATE TABLE table_name_55 (leading_scorer VARCHAR, visitor VARCHAR)
SELECT home_team FROM table_name_61 WHERE tie_no = "13"
Which Home Team has a Tie no of 13?
CREATE TABLE table_name_61 (home_team VARCHAR, tie_no VARCHAR)
SELECT height FROM table_name_48 WHERE club = "sainte-foy" AND name = "valérie dionne"
What is the height of valérie dionne at Club Sainte-Foy?
CREATE TABLE table_name_48 (height VARCHAR, club VARCHAR, name VARCHAR)
SELECT nationality FROM table_name_72 WHERE position = "center"
What is the nationality of the center?
CREATE TABLE table_name_72 (nationality VARCHAR, position VARCHAR)
SELECT MAX(loss) FROM table_name_31 WHERE game < 14
What is the highest loss before game 14?
CREATE TABLE table_name_31 (loss INTEGER, game INTEGER)
SELECT name, trade_name FROM medicine EXCEPT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'
Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.
CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR, enzyme_id VARCHAR); CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE enzyme (id VARCHAR, product VARCHAR)
SELECT to_par FROM table_name_43 WHERE place = "t3" AND player = "bob gilder"
What is Bob Gilder in Place T3's To par?
CREATE TABLE table_name_43 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT hangul___japanese FROM table_name_55 WHERE year < 2014 AND role = "baek seung-jo"
What's the Hangul/Japanese that happened before 2014 having a role of Baek Seung-Jo?
CREATE TABLE table_name_55 (hangul___japanese VARCHAR, year VARCHAR, role VARCHAR)
SELECT pick FROM table_name_24 WHERE year = 2004
What was the pick in 2004?
CREATE TABLE table_name_24 (pick VARCHAR, year VARCHAR)