answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(gold) FROM table_name_81 WHERE total > 32
For countries that won more than 32 gold medals, what was the highest number of golds?
CREATE TABLE table_name_81 (gold INTEGER, total INTEGER)
SELECT AVG(goals_against) FROM table_name_39 WHERE games_played < 8
What is the mean number of goals against when there were fewer than 8 games played?
CREATE TABLE table_name_39 (goals_against INTEGER, games_played INTEGER)
SELECT position FROM table_name_67 WHERE player = "jeremy duchesne"
What is Jeremy Duchesne's position?
CREATE TABLE table_name_67 (position VARCHAR, player VARCHAR)
SELECT MAX(fa_cup_goals) FROM table_name_20 WHERE league_goals = "18" AND club = "sheffield united"
Which FA Cup goals have a League goals of 18, and a Club of sheffield united?
CREATE TABLE table_name_20 (fa_cup_goals INTEGER, league_goals VARCHAR, club VARCHAR)
SELECT lyricist FROM table_name_14 WHERE film = "mukti"
Who wrote the lyrics for Mukti?
CREATE TABLE table_name_14 (lyricist VARCHAR, film VARCHAR)
SELECT type FROM table_name_7 WHERE delivered = "1857-59"
What is the type of the locomotive which was delivered in 1857-59?
CREATE TABLE table_name_7 (type VARCHAR, delivered VARCHAR)
SELECT SUM(number_of_electorates__2009_) FROM table_name_21 WHERE district = "indore" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "208"
What is the number of electorates (2009) for the Indore district, when reserved for (SC / ST /None) is none, and constituency number is 208?
CREATE TABLE table_name_21 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR)
SELECT opponents FROM table_name_22 WHERE venue = "ullevi"
Who was the opponent at Ullevi?
CREATE TABLE table_name_22 (opponents VARCHAR, venue VARCHAR)
SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = "Wisconsin"
What are the first names and last names of students with address in Wisconsin state?
CREATE TABLE Addresses (address_id VARCHAR, state_province_county VARCHAR); CREATE TABLE Students (first_name VARCHAR, last_name VARCHAR, address_id VARCHAR)
SELECT MAX(pick) FROM table_name_30 WHERE player = "lonnie brockman" AND round < 9
What was the highest Pick for Lonnie Brockman before round 9?
CREATE TABLE table_name_30 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT MAX(points) FROM table_name_7 WHERE chassis = "reynard 91d" AND year < 1991
For a year earlier than 1991 and a reynard 91d chassis, what's the highest points?
CREATE TABLE table_name_7 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT location_attendance FROM table_name_30 WHERE score = "l 92–116"
What location attendance had a score of l 92–116?
CREATE TABLE table_name_30 (location_attendance VARCHAR, score VARCHAR)
SELECT money_spent, _3q FROM table_name_43 WHERE candidate = "dennis kucinich"
How much money has Candidate Dennis Kucinich spent?
CREATE TABLE table_name_43 (money_spent VARCHAR, _3q VARCHAR, candidate VARCHAR)
SELECT directed_by FROM table_29063233_1 WHERE uk_viewers__million_ = "6.09"
Who directed the episode with UK viewership of 6.09 million?
CREATE TABLE table_29063233_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)
SELECT location FROM table_name_98 WHERE left = 1975 AND type = "private" AND founded = 1891
Where was the former private member that was founded in 1891 and left in 1975?
CREATE TABLE table_name_98 (location VARCHAR, founded VARCHAR, left VARCHAR, type VARCHAR)
SELECT COUNT(area_km_2) FROM table_name_60 WHERE census_ranking = "3,129 of 5,008" AND population < 460
What is the total area with the census ranking of 3,129 of 5,008, and a Population smaller than 460?
CREATE TABLE table_name_60 (area_km_2 VARCHAR, census_ranking VARCHAR, population VARCHAR)
SELECT result FROM table_name_11 WHERE date = "september 24, 1995"
What was the results on September 24, 1995?
CREATE TABLE table_name_11 (result VARCHAR, date VARCHAR)
SELECT COUNT(census_2006_population) FROM table_28891101_3 WHERE area__km_2__ = 159
What is the 2006 census population when the area is 159?
CREATE TABLE table_28891101_3 (census_2006_population VARCHAR, area__km_2__ VARCHAR)
SELECT fastest_lap FROM table_name_72 WHERE circuit = "le mans bugatti"
What is the fastest lap in the Le Mans Bugatti circuit?
CREATE TABLE table_name_72 (fastest_lap VARCHAR, circuit VARCHAR)
SELECT pada_1 FROM table_name_8 WHERE pada_2 = "सा sa"
What kind of Pada 1 has a Pada 2 of सा sa?
CREATE TABLE table_name_8 (pada_1 VARCHAR, pada_2 VARCHAR)
SELECT catalogue FROM table_name_73 WHERE song_title = "heart of rome"
What is Heart of Rome's catalogue number?
CREATE TABLE table_name_73 (catalogue VARCHAR, song_title VARCHAR)
SELECT time FROM table_name_24 WHERE local_networked = "local" AND ad_freq = "20 minutes" AND news_freq = "n/a after 7pm news"
Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news?
CREATE TABLE table_name_24 (time VARCHAR, news_freq VARCHAR, local_networked VARCHAR, ad_freq VARCHAR)
SELECT date FROM table_name_7 WHERE attendance = "postponed"
Name the date for postponed attendance
CREATE TABLE table_name_7 (date VARCHAR, attendance VARCHAR)
SELECT cores FROM table_name_16 WHERE l2_cache = "low power"
What cores has an L2 cache of low power?
CREATE TABLE table_name_16 (cores VARCHAR, l2_cache VARCHAR)
SELECT ground FROM table_name_60 WHERE date = "31 jul 2007"
On what ground was the game on 31 Jul 2007?
CREATE TABLE table_name_60 (ground VARCHAR, date VARCHAR)
SELECT MAX(game) FROM table_name_56 WHERE opponent = "atlanta hawks"
Can you tell me the highest Game that has the Opponent of atlanta hawks?
CREATE TABLE table_name_56 (game INTEGER, opponent VARCHAR)
SELECT finalist FROM table_name_14 WHERE tournament = "berlin"
Who was the finalist for the tournament in berlin?
CREATE TABLE table_name_14 (finalist VARCHAR, tournament VARCHAR)
SELECT DISTINCT POSITION FROM match_season WHERE College = "UCLA" OR College = "Duke"
Show the distinct position of players from college UCLA or Duke.
CREATE TABLE match_season (POSITION VARCHAR, College VARCHAR)
SELECT venue FROM table_name_95 WHERE away_team = "st kilda"
Where did st kilda play as the away team?
CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR)
SELECT director_s_ FROM table_name_10 WHERE award = "£6,245"
Who directed the film that received an award of £6,245?
CREATE TABLE table_name_10 (director_s_ VARCHAR, award VARCHAR)
SELECT report FROM table_name_86 WHERE date = "30 july"
Tell me the report for 30 july
CREATE TABLE table_name_86 (report VARCHAR, date VARCHAR)
SELECT MIN(top_25) FROM table_name_5 WHERE events < 42 AND tournament = "u.s. open" AND top_10 < 5
What is the lowest for top-25 with events smaller than 42 in a U.S. Open with a top-10 smaller than 5?
CREATE TABLE table_name_5 (top_25 INTEGER, top_10 VARCHAR, events VARCHAR, tournament VARCHAR)
SELECT former_school FROM table_29418619_1 WHERE hometown = "Detroit, MI"
What is the former school of the player from Detroit, MI?
CREATE TABLE table_29418619_1 (former_school VARCHAR, hometown VARCHAR)
SELECT form_factor FROM table_name_65 WHERE capacities__gb_ = "60/120/180/240"
What form factor has capacities at 60/120/180/240?
CREATE TABLE table_name_65 (form_factor VARCHAR, capacities__gb_ VARCHAR)
SELECT opponent FROM table_name_36 WHERE loss = "sele (0-1)"
Who was the opponent at the game with a loss of Sele (0-1)?
CREATE TABLE table_name_36 (opponent VARCHAR, loss VARCHAR)
SELECT MAX(1970) FROM table_name_81 WHERE 1960 < 61.9 AND 1980 < 3.8 AND 1990 = 3.3 AND 2000 > 3.2
What is the highest value for 1970, when the value for 1960 is less than 61.9, when the value for 1980 is less than 3.8, when the value for 1990 is 3.3, and when the value for 2000 is greater than 3.2?
CREATE TABLE table_name_81 (Id VARCHAR)
SELECT AVG(cups) FROM table_name_9 WHERE other > 3 AND league > 3 AND player = "lauri dalla valle" AND total > 21
What is the number of cups when the other was more than 3, the league more than 3, for Lauri Dalla Valle, and a Total more than 21?
CREATE TABLE table_name_9 (cups INTEGER, total VARCHAR, player VARCHAR, other VARCHAR, league VARCHAR)
SELECT MIN(podiums) FROM table_25375093_1 WHERE position = "9th"
Name the least podiums for 9th position
CREATE TABLE table_25375093_1 (podiums INTEGER, position VARCHAR)
SELECT year FROM table_name_28 WHERE total_matches = 5
WHAT YEAR HAD 5 TOTAL MATCHES?
CREATE TABLE table_name_28 (year VARCHAR, total_matches VARCHAR)
SELECT rider FROM table_name_14 WHERE manufacturer = "aprilia" AND laps < 18 AND grid = 17
What rider is on an aprilia that went under 18 laps with a grid total of 17?
CREATE TABLE table_name_14 (rider VARCHAR, grid VARCHAR, manufacturer VARCHAR, laps VARCHAR)
SELECT opponent FROM table_name_24 WHERE date = "april 21"
Who was the opponent on April 21?
CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)
SELECT route FROM table_name_14 WHERE distance = "170.8km"
Name the route for 170.8km distance
CREATE TABLE table_name_14 (route VARCHAR, distance VARCHAR)
SELECT surface FROM table_name_50 WHERE date = "12-apr-2005"
What was the surface for the game that was played on 12-Apr-2005?
CREATE TABLE table_name_50 (surface VARCHAR, date VARCHAR)
SELECT COUNT(network_tv_run_time) FROM table_26032940_2 WHERE episode__number = 53
How many runtimes does episode 53 have?
CREATE TABLE table_26032940_2 (network_tv_run_time VARCHAR, episode__number VARCHAR)
SELECT COUNT(median_monthly_per_capita___labour_force_income__hkd_) FROM table_151994_1 WHERE population__2006_est_ = 365540
Name the total number of median income for population 2006 for 365540
CREATE TABLE table_151994_1 (median_monthly_per_capita___labour_force_income__hkd_ VARCHAR, population__2006_est_ VARCHAR)
SELECT nation FROM table_name_45 WHERE bronze > 1 AND silver < 3
What nation has more than 1 bronze and less than 3 silver?
CREATE TABLE table_name_45 (nation VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT height FROM table_14038363_1 WHERE player = "Maksim Botin"
How tall is Maksim Botin?
CREATE TABLE table_14038363_1 (height VARCHAR, player VARCHAR)
SELECT SUM(silver) FROM table_name_37 WHERE bronze < 1 AND total = 2
How many silver medals when the total was 2 and less than 1 bronze?
CREATE TABLE table_name_37 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT 1 AS st_prize___$__ FROM table_name_69 WHERE tournament = "u.s. open"
What is the 1st prize at the U.S. Open?
CREATE TABLE table_name_69 (tournament VARCHAR)
SELECT tournament FROM table_name_52 WHERE surface = "clay" AND score = "4–6, 6–1, 6–4"
Which tournament was played on clay and there was a score of 4–6, 6–1, 6–4?
CREATE TABLE table_name_52 (tournament VARCHAR, surface VARCHAR, score VARCHAR)
SELECT team FROM table_name_5 WHERE arena = "dhl-höllin"
What team is in the dhl-höllin arena?
CREATE TABLE table_name_5 (team VARCHAR, arena VARCHAR)
SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*) >= 2
Show the headquarters that have at least two companies.
CREATE TABLE company (Headquarters VARCHAR)
SELECT wins FROM table_name_52 WHERE year = 1992
How many wins in 1992?
CREATE TABLE table_name_52 (wins VARCHAR, year VARCHAR)
SELECT SUM(total) FROM table_name_85 WHERE finish = "t6"
How many totals have t6 as the finish?
CREATE TABLE table_name_85 (total INTEGER, finish VARCHAR)
SELECT writer FROM table_29039942_1 WHERE episode = 3
Who was the writer for episode 3?
CREATE TABLE table_29039942_1 (writer VARCHAR, episode VARCHAR)
SELECT position FROM table_28059992_6 WHERE cfl_team = "Edmonton"
What position was the player who was drafted by Edmonton?
CREATE TABLE table_28059992_6 (position VARCHAR, cfl_team VARCHAR)
SELECT surface FROM table_name_83 WHERE partner = "yew-ming si"
Which surface had Yew-Ming Si as a partner?
CREATE TABLE table_name_83 (surface VARCHAR, partner VARCHAR)
SELECT rounds FROM table_name_63 WHERE driver = "vic elford" AND engine = "ford cosworth dfv 3.0 v8"
Which rounds did Vic Elford with a Ford cosworth dfv 3.0 v8 engine have?
CREATE TABLE table_name_63 (rounds VARCHAR, driver VARCHAR, engine VARCHAR)
SELECT year_s__won FROM table_name_50 WHERE player = "arnold palmer"
What year or years did arnold palmer win?
CREATE TABLE table_name_50 (year_s__won VARCHAR, player VARCHAR)
SELECT highest FROM table_21824695_8 WHERE team = "Pohang Steelers"
What is the highest when pohang steelers is the team?
CREATE TABLE table_21824695_8 (highest VARCHAR, team VARCHAR)
SELECT mascot FROM table_12434380_1 WHERE founded = 1923 AND school_colors = "Blue, Red & White"
What is the mascot for the school founded in 1923 with the school colors of blue, red & white?
CREATE TABLE table_12434380_1 (mascot VARCHAR, founded VARCHAR, school_colors VARCHAR)
SELECT length FROM table_name_29 WHERE junctions = "sh 359 us 59" AND route_name = "fm 2895"
What's the length of route FM 2895 with junctions sh 359 us 59?
CREATE TABLE table_name_29 (length VARCHAR, junctions VARCHAR, route_name VARCHAR)
SELECT home FROM table_name_83 WHERE geust = "fc thun (asl)"
What is the home of fc thun (asl) geust?
CREATE TABLE table_name_83 (home VARCHAR, geust VARCHAR)
SELECT result FROM table_22825058_23 WHERE opponents = "Jiří Novák Radek Štěpánek"
Name the result for jiří novák radek štěpánek
CREATE TABLE table_22825058_23 (result VARCHAR, opponents VARCHAR)
SELECT record FROM table_name_64 WHERE date = "may 26"
What was the record for May 26?
CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR)
SELECT AVG(wins) FROM table_name_92 WHERE loses = 2 AND draws < 0
What average Wins has Losses 2, and Draws less than 0?
CREATE TABLE table_name_92 (wins INTEGER, loses VARCHAR, draws VARCHAR)
SELECT year FROM table_name_20 WHERE weight < 230 AND home_town = "san antonio, texas"
What is the Year of the Player with a Weight of 230 or less from San Antonio, Texas?
CREATE TABLE table_name_20 (year VARCHAR, weight VARCHAR, home_town VARCHAR)
SELECT tournament FROM table_name_94 WHERE date = "may 2, 2011"
what tournament happened on may 2, 2011?
CREATE TABLE table_name_94 (tournament VARCHAR, date VARCHAR)
SELECT MAX(finish) FROM table_name_9 WHERE year = 2006
Name the most finish for 2006
CREATE TABLE table_name_9 (finish INTEGER, year VARCHAR)
SELECT COUNT(colors) FROM table_29612224_1 WHERE location = "Maroa, Illinois"
How many different combinations of team colors are there in all the schools in Maroa, Illinois?
CREATE TABLE table_29612224_1 (colors VARCHAR, location VARCHAR)
SELECT institution FROM table_24216139_2 WHERE nickname = "Cougars"
Name the school that is cougars
CREATE TABLE table_24216139_2 (institution VARCHAR, nickname VARCHAR)
SELECT opponent FROM table_name_89 WHERE score = "72-63"
WHAT IS THE OPPONENT WITH A SCORE OF 72-63?
CREATE TABLE table_name_89 (opponent VARCHAR, score VARCHAR)
SELECT player FROM table_name_36 WHERE caps = 12
What player has 12 caps?
CREATE TABLE table_name_36 (player VARCHAR, caps 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 value FROM table_name_82 WHERE type = "negative infinity"
What value has negative infinity?
CREATE TABLE table_name_82 (value VARCHAR, type VARCHAR)
SELECT opponent FROM table_name_96 WHERE tv_time = "bye"
Which opponent had a bye for the TV Time?
CREATE TABLE table_name_96 (opponent VARCHAR, tv_time VARCHAR)
SELECT team_2 FROM table_17103566_1 WHERE result = "ICL World by 8 wickets"
What is team 2 where the result is ICL world by 8 wickets?
CREATE TABLE table_17103566_1 (team_2 VARCHAR, result VARCHAR)
SELECT COUNT(national_university_of_ireland) FROM table_name_17 WHERE industrial_and_commercial_panel < 1 AND cultural_and_educational_panel > 0
What is the total for National University of Ireland with an industrial and commercial panel less than 1, and the cultural and educational panel bigger than 0?
CREATE TABLE table_name_17 (national_university_of_ireland VARCHAR, industrial_and_commercial_panel VARCHAR, cultural_and_educational_panel VARCHAR)
SELECT surface FROM table_name_80 WHERE date = "13 february 1994"
On what type of surface did they play on 13 February 1994?
CREATE TABLE table_name_80 (surface VARCHAR, date VARCHAR)
SELECT COUNT(to_par) FROM table_name_47 WHERE place = "t1" AND score = 70 - 70 - 71 - 71 = 282
How much To par has a Place of t1, and a Score of 70-70-71-71=282?
CREATE TABLE table_name_47 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT season FROM table_name_19 WHERE oberliga_bayern = "spvgg bayreuth" AND oberliga_südwest = "eintracht trier"
Which Season ha spvgg bayreuth and eintracht trier?
CREATE TABLE table_name_19 (season VARCHAR, oberliga_bayern VARCHAR, oberliga_südwest VARCHAR)
SELECT MAX(fab___nm__) FROM table_26860595_2
What was the maximum fab (nm)?
CREATE TABLE table_26860595_2 (fab___nm__ INTEGER)
SELECT char_cells FROM table_1701371_2 WHERE hardware_colours = 8
If hardware colours is 8 what would the char cells be?
CREATE TABLE table_1701371_2 (char_cells VARCHAR, hardware_colours VARCHAR)
SELECT team FROM table_name_78 WHERE day_2 = "3:47.761"
Which team was 3:47.761 on day 2?
CREATE TABLE table_name_78 (team VARCHAR, day_2 VARCHAR)
SELECT MAX(gdp_per_capita__us) AS $_ FROM table_21133193_1 WHERE languages = "Latvian"
Name the most gdp per capita latvian
CREATE TABLE table_21133193_1 (gdp_per_capita__us INTEGER, languages VARCHAR)
SELECT MAX(losses) FROM table_name_87 WHERE games < 25 AND season = "2010"
What is the greatest number of losses a team that played fewer than 25 games in 2010 had?
CREATE TABLE table_name_87 (losses INTEGER, games VARCHAR, season VARCHAR)
SELECT SUM(diff) FROM table_name_38 WHERE played < 6
What is the total difference for teams that played less than 6 games?
CREATE TABLE table_name_38 (diff INTEGER, played INTEGER)
SELECT MAX(money_list_rank) FROM table_name_44 WHERE top_25 < 2
What is the greatest money list ranking that has a Top 25 higher than 2?
CREATE TABLE table_name_44 (money_list_rank INTEGER, top_25 INTEGER)
SELECT final_episode FROM table_11210576_3 WHERE position = "DEA Agent"
What was the final episode for Dea Agent?
CREATE TABLE table_11210576_3 (final_episode VARCHAR, position VARCHAR)
SELECT MAX(crowd) FROM table_name_12 WHERE venue = "kardinia park"
If the Venue was kardinia park what was the highest Crowd attended?
CREATE TABLE table_name_12 (crowd INTEGER, venue VARCHAR)
SELECT 01 AS _02 FROM table_name_61 WHERE "03_04" = "03_04"
What is 01-02, when 03-04 is 03-04?
CREATE TABLE table_name_61 (Id VARCHAR)
SELECT school FROM table_name_64 WHERE position = "c"
Which school had a player who played the C position?
CREATE TABLE table_name_64 (school VARCHAR, position VARCHAR)
SELECT opponents FROM table_16741821_9 WHERE against = "Slovakia"
Who are all the opponents of Slovakia?
CREATE TABLE table_16741821_9 (opponents VARCHAR, against VARCHAR)
SELECT MIN(pick) FROM table_name_7 WHERE draft < 1991 AND player = "tom sasso category:articles with hcards"
What is the lowest Pick, when Draft is less than 1991, and when Player is "Tom Sasso Category:Articles with hCards"?
CREATE TABLE table_name_7 (pick INTEGER, draft VARCHAR, player VARCHAR)
SELECT COUNT(DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010
Find the total number of instructors who teach a course in the Spring 2010 semester.
CREATE TABLE teaches (ID VARCHAR, semester VARCHAR, YEAR VARCHAR)
SELECT college FROM table_20861261_4 WHERE player = "Terrance Taylor"
What college did Terrance Taylor play for?
CREATE TABLE table_20861261_4 (college VARCHAR, player VARCHAR)
SELECT high_assists FROM table_27712702_7 WHERE location_attendance = "Oklahoma City Arena 17,509"
Who had high assists in the game played at Oklahoma city arena 17,509?
CREATE TABLE table_27712702_7 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT chassis FROM table_name_60 WHERE points = 7
Which of the chassis had a total of 7 points?
CREATE TABLE table_name_60 (chassis VARCHAR, points VARCHAR)
SELECT time FROM table_13050822_2 WHERE stage = "SS18"
What is the time for stage ss18?
CREATE TABLE table_13050822_2 (time VARCHAR, stage VARCHAR)
SELECT term_in_office FROM table_name_9 WHERE member = "hon ralph hunt"
What term did hon ralph hunt serve in office?
CREATE TABLE table_name_9 (term_in_office VARCHAR, member VARCHAR)