answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_26 WHERE game > 10 AND score = "99-89"
On what date did a game higher than 10 have a score of 99-89?
CREATE TABLE table_name_26 (date VARCHAR, game VARCHAR, score VARCHAR)
SELECT record FROM table_name_64 WHERE date = "may 31"
Name the record for may 31
CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR)
SELECT AVG(lost) FROM table_name_19 WHERE drawn < 0
What's the Lost average that has a Drawn less than 0?
CREATE TABLE table_name_19 (lost INTEGER, drawn INTEGER)
SELECT SUM(gold) FROM table_name_22 WHERE rank = "3"
How many total Gold medals did the nation ranked #3 receive?
CREATE TABLE table_name_22 (gold INTEGER, rank VARCHAR)
SELECT "built" FROM table_name_41 WHERE status = "built" AND height = "42 m."
What is the year built of the home with a built status and a 42 m. height?
CREATE TABLE table_name_41 (status VARCHAR, height VARCHAR)
SELECT MAX(matches) FROM table_name_32 WHERE point = 43 AND final_rank < 7
Tell me the highest matches for point 43 and final rank less than 7
CREATE TABLE table_name_32 (matches INTEGER, point VARCHAR, final_rank VARCHAR)
SELECT branding FROM table_name_38 WHERE power = "10 kw" AND location = "iloilo city"
What is the Branding of the Iloilo City Frequency with a Power of 10 Kw?
CREATE TABLE table_name_38 (branding VARCHAR, power VARCHAR, location VARCHAR)
SELECT venue FROM table_name_99 WHERE away_team = "collingwood"
Where was the game played where Collingwood was the away team?
CREATE TABLE table_name_99 (venue VARCHAR, away_team VARCHAR)
SELECT longitude FROM table_name_54 WHERE diameter__km_ = "31km"
What shows for the Longitude when there is a Diameter (km) of 31km?
CREATE TABLE table_name_54 (longitude VARCHAR, diameter__km_ VARCHAR)
SELECT place FROM table_name_26 WHERE score = 67 - 71 - 70 = 208
Where was the score 67-71-70=208?
CREATE TABLE table_name_26 (place VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_15 WHERE opponent_number = "purdue"
What is the Attendance number when the Opponent was purdue?
CREATE TABLE table_name_15 (attendance VARCHAR, opponent_number VARCHAR)
SELECT round___race FROM table_name_32 WHERE winning_driver = "charles hollings" AND pole_position = "charles hollings"
What is the round or race of the winning driver Charles Hollings and what was his pole position?
CREATE TABLE table_name_32 (round___race VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
SELECT competition FROM table_name_23 WHERE date = "11 feb 1990"
On 11 Feb 1990, the competition is listed as what?
CREATE TABLE table_name_23 (competition VARCHAR, date VARCHAR)
SELECT COUNT(draw) FROM table_name_79 WHERE dance_styles = "rumba/tango"
How many draws have rumba/tango dance styles?
CREATE TABLE table_name_79 (draw VARCHAR, dance_styles VARCHAR)
SELECT purpose FROM table_name_62 WHERE area_served = "braidwood"
What is the Purpose of the Area Braidwood?
CREATE TABLE table_name_62 (purpose VARCHAR, area_served VARCHAR)
SELECT format FROM table_name_31 WHERE date = "may 27, 2009"
Which format is released on May 27, 2009?
CREATE TABLE table_name_31 (format VARCHAR, date VARCHAR)
SELECT school FROM table_11677691_5 WHERE player = "Zach Banner"
Zach Banner is a player at which school?
CREATE TABLE table_11677691_5 (school VARCHAR, player VARCHAR)
SELECT COUNT(game) FROM table_name_17 WHERE result = "l" AND record = "2-6"
How many games have a Result of l, and a Record of 2-6?
CREATE TABLE table_name_17 (game VARCHAR, result VARCHAR, record VARCHAR)
SELECT score FROM table_name_36 WHERE place = "t4" AND player = "butch baird"
What is score of the game that was at a paace of t4, and had the player Butch Baird?
CREATE TABLE table_name_36 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT COUNT(date) FROM table_28925058_1 WHERE grand_prix = "Spanish grand_prix" AND race_winner = "Daniel Ruiz"
How many dates did Daniel Ruiz win the Spanish Grand Prix?
CREATE TABLE table_28925058_1 (date VARCHAR, grand_prix VARCHAR, race_winner VARCHAR)
SELECT austria FROM table_28562675_3 WHERE netherlands = "Brunssum/Schinnen LL Brunssum" AND belgium = "SHAPE and Waterloo LL Brussels"
What was the team from Austria when the Netherlands sent Brunssum/Schinnen LL Brunssum and Belgium sent Shape and Waterloo LL Brussels?
CREATE TABLE table_28562675_3 (austria VARCHAR, netherlands VARCHAR, belgium VARCHAR)
SELECT suited_match FROM table_name_44 WHERE house_edge = "2.99%"
What's the Suited Match with a 2.99% House Edge?
CREATE TABLE table_name_44 (suited_match VARCHAR, house_edge VARCHAR)
SELECT type FROM table_name_56 WHERE quantity = "124"
WHAT IS THE TYPE WITH 124?
CREATE TABLE table_name_56 (type VARCHAR, quantity VARCHAR)
SELECT COUNT(gold_medals) FROM table_name_73 WHERE ensemble = "bellbrook hs" AND silver_medals < 1
How many gold medals for bellbrook HS with less than 1 silver?
CREATE TABLE table_name_73 (gold_medals VARCHAR, ensemble VARCHAR, silver_medals VARCHAR)
SELECT AVG(nangun) FROM table_name_80 WHERE rank > 2 AND total = 17.85
WHAT IS THE AVERAGE NANGUN WITH A RANK LARGER THAN 2, TOTAL OF 17.85?
CREATE TABLE table_name_80 (nangun INTEGER, rank VARCHAR, total VARCHAR)
SELECT score FROM table_name_56 WHERE date = "june 28, 2009"
What was the score on June 28, 2009?
CREATE TABLE table_name_56 (score VARCHAR, date VARCHAR)
SELECT COUNT(original_air_date) FROM table_21164557_1 WHERE production_code = 4398016
How many original air dates were there for episodes with a production code of 4398016?
CREATE TABLE table_21164557_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT COUNT(points) FROM table_name_39 WHERE poles < 0
How many points are associated with 0 poles?
CREATE TABLE table_name_39 (points VARCHAR, poles INTEGER)
SELECT target FROM table_1661124_1 WHERE approved_treatment_s_ = "non-Hodgkin lymphoma"
What is the target when the approved treatment is non-hodgkin lymphoma?
CREATE TABLE table_1661124_1 (target VARCHAR, approved_treatment_s_ VARCHAR)
SELECT MIN(weeks_at_number_1) FROM table_25760427_2
error (see notes)
CREATE TABLE table_25760427_2 (weeks_at_number_1 INTEGER)
SELECT MIN(enrollment) FROM table_26351260_1 WHERE institution = "Eastern Michigan University"
What is the lowest enrollment for Eastern Michigan University?
CREATE TABLE table_26351260_1 (enrollment INTEGER, institution VARCHAR)
SELECT origin_of_programming FROM table_name_43 WHERE network = "mtv india"
What is the Origin of Programming for the Network MTV India?
CREATE TABLE table_name_43 (origin_of_programming VARCHAR, network VARCHAR)
SELECT MIN(gold_medals) FROM table_name_18 WHERE ensemble = "salem blue devils" AND silver_medals < 1
what is Gold Medals that has salem blue devils and a Silver Medals less than 1?
CREATE TABLE table_name_18 (gold_medals INTEGER, ensemble VARCHAR, silver_medals VARCHAR)
SELECT member FROM table_name_73 WHERE party = "liberal" AND electorate = "bruce"
What member is in the liberal party and has an electorate of bruce?
CREATE TABLE table_name_73 (member VARCHAR, party VARCHAR, electorate VARCHAR)
SELECT COUNT(date_successor_seated) FROM table_225205_4 WHERE district = "New Jersey 2nd"
How many date of successor seated is new jersey 2nd in the district?
CREATE TABLE table_225205_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT play_by_play FROM table_22485543_1 WHERE studio_analysts = "Mike Milbury" AND ice_level_reporters = "Darren Pang"
Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters?
CREATE TABLE table_22485543_1 (play_by_play VARCHAR, studio_analysts VARCHAR, ice_level_reporters VARCHAR)
SELECT record FROM table_23916539_3 WHERE opponent = "Stampeders"
If the opponent is the Stampeders, what is the record?
CREATE TABLE table_23916539_3 (record VARCHAR, opponent VARCHAR)
SELECT COUNT(ground) FROM table_16388047_1 WHERE home_team = "Essendon"
Name the total number of grounds for essendon
CREATE TABLE table_16388047_1 (ground VARCHAR, home_team VARCHAR)
SELECT engine FROM table_name_87 WHERE chassis = "porsche 718"
What was the engine when the chassis was a porsche 718??
CREATE TABLE table_name_87 (engine VARCHAR, chassis VARCHAR)
SELECT bhofen_number2__rk_ FROM table_14948647_1 WHERE ga_pa__rk_ = "227.5 (19)"
What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 227.5 (19)?
CREATE TABLE table_14948647_1 (bhofen_number2__rk_ VARCHAR, ga_pa__rk_ VARCHAR)
SELECT MAX(may_2012) FROM table_name_26 WHERE may_2010 < 3
In May 2010, which party had a turnout of less than 3, but also the hightest turnout in May 2012?
CREATE TABLE table_name_26 (may_2012 INTEGER, may_2010 INTEGER)
SELECT COUNT(post) FROM table_name_22 WHERE trainer = "steve asmussen" AND time__behind = "19 ½"
What is the total number of Post, when Trainer is "Steve Asmussen", and when Time/ Behind is 19 ½?
CREATE TABLE table_name_22 (post VARCHAR, trainer VARCHAR, time__behind VARCHAR)
SELECT T1.department_id, T1.name, COUNT(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING COUNT(*) > 1
Which department has more than 1 head at a time? List the id, name and the number of heads.
CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)
SELECT round_of_32 FROM table_name_62 WHERE conference = "southland"
Tell me the round of 32 for conference of southland
CREATE TABLE table_name_62 (round_of_32 VARCHAR, conference VARCHAR)
SELECT fcc_info FROM table_name_85 WHERE frequency_mhz < 100.3 AND city_of_license = "lowville, ny"
What's the FCC info with a Frequency MHz thats smaller than 100.3 and a City of License as Lowville, NY?
CREATE TABLE table_name_85 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT away_team AS score FROM table_name_13 WHERE away_team = "north melbourne"
What is the Away team score for Away team North Melbourne?
CREATE TABLE table_name_13 (away_team VARCHAR)
SELECT disposition FROM table_1057316_1 WHERE operational_owner_s_ = "Colorado and Southern Railway #9"
Where can you find Colorado and Southern Railway #9?
CREATE TABLE table_1057316_1 (disposition VARCHAR, operational_owner_s_ VARCHAR)
SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1
Please show the most common publication date.
CREATE TABLE publication (Publication_Date VARCHAR)
SELECT attendance FROM table_name_38 WHERE date = "november 18, 1990"
What are the Attendance numbers for november 18, 1990?
CREATE TABLE table_name_38 (attendance VARCHAR, date VARCHAR)
SELECT tenure FROM table_name_14 WHERE lineage = "3rd son of tadatsune"
What's the tenure of 3rd son of tadatsune?
CREATE TABLE table_name_14 (tenure VARCHAR, lineage VARCHAR)
SELECT actor_in_moscow, _2007 FROM table_name_91 WHERE voyage = "varenka bakunin"
Who was the 2007 actor from Moscow for the voyage of Varenka Bakunin?
CREATE TABLE table_name_91 (actor_in_moscow VARCHAR, _2007 VARCHAR, voyage VARCHAR)
SELECT song_title FROM table_name_83 WHERE artist = "winger"
What's the title of the song by Winger?
CREATE TABLE table_name_83 (song_title VARCHAR, artist VARCHAR)
SELECT loss FROM table_name_82 WHERE date = "june 22"
What was the score June 22?
CREATE TABLE table_name_82 (loss VARCHAR, date VARCHAR)
SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages'
Find the name of customers who do not have a loan with a type of Mortgages.
CREATE TABLE loan (cust_id VARCHAR, loan_type VARCHAR); CREATE TABLE customer (cust_name VARCHAR); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
SELECT record FROM table_name_34 WHERE game > 34 AND date = "january 9"
Which Record has a Game larger than 34, and a Date of january 9?
CREATE TABLE table_name_34 (record VARCHAR, game VARCHAR, date VARCHAR)
SELECT played FROM table_name_55 WHERE tries_for = "38"
What was the played with 38 tries?
CREATE TABLE table_name_55 (played VARCHAR, tries_for VARCHAR)
SELECT COUNT(points) FROM table_name_74 WHERE year = 1992
How many total points were in 1992?
CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR)
SELECT d_47 FROM table_name_78 WHERE d_41 = "r 21"
I want the D 47 for D 41 being r 21
CREATE TABLE table_name_78 (d_47 VARCHAR, d_41 VARCHAR)
SELECT institution FROM table_261906_2 WHERE location = "Wilkes-Barre, Pennsylvania"
What institution(s) are located in wilkes-barre, pennsylvania?
CREATE TABLE table_261906_2 (institution VARCHAR, location VARCHAR)
SELECT winners FROM table_12303563_2 WHERE nation = "Vietnam"
how many winners from vietnam
CREATE TABLE table_12303563_2 (winners VARCHAR, nation VARCHAR)
SELECT MAX(crowd) FROM table_name_96 WHERE home_team = "carlton"
What is the largest crowd for a Home team of carlton?
CREATE TABLE table_name_96 (crowd INTEGER, home_team VARCHAR)
SELECT 2013 AS _parliamentary_election FROM table_203802_2 WHERE english_party_name = "Pensioners Party"
What percent of the parliamentary election did the pensioners party receive
CREATE TABLE table_203802_2 (english_party_name VARCHAR)
SELECT finished FROM table_name_3 WHERE trainer = "nick zito" AND horse = "da'tara"
What is the Finished place for da'tara trained by Nick zito?
CREATE TABLE table_name_3 (finished VARCHAR, trainer VARCHAR, horse VARCHAR)
SELECT surface FROM table_name_63 WHERE championship = "indian wells" AND outcome = "winner"
What surface has indian wells as the championship, with winner as the outcome?
CREATE TABLE table_name_63 (surface VARCHAR, championship VARCHAR, outcome VARCHAR)
SELECT MIN(density__per_km²_) FROM table_name_77 WHERE rank = "5" AND area__km²_ < 125 OFFSET 755
what is the least density (per km²) when the rank is 5 and the Area (km²) is less than 125,755?
CREATE TABLE table_name_77 (density__per_km²_ INTEGER, rank VARCHAR, area__km²_ VARCHAR)
SELECT result FROM table_name_43 WHERE date = "december 1, 1963"
What was the result of the match on December 1, 1963?
CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR)
SELECT country FROM table_name_46 WHERE airport = "paris-charles de gaulle airport"
Paris-Charles de Gaulle airport is in which country?
CREATE TABLE table_name_46 (country VARCHAR, airport VARCHAR)
SELECT COUNT(year) FROM table_23235767_4 WHERE score_in_the_final = "6–3, 6–2" AND surface = "Hard"
Name the number of year for 6–3, 6–2 hard surface
CREATE TABLE table_23235767_4 (year VARCHAR, score_in_the_final VARCHAR, surface VARCHAR)
SELECT position FROM table_name_27 WHERE name = "rod paavola"
What is the Postion, when the Name is Rod Paavola?
CREATE TABLE table_name_27 (position VARCHAR, name VARCHAR)
SELECT bullet_weight FROM table_173103_1 WHERE max_pressure = "12,000 CUP"
What is the bullet weight when the max pressure is 12,000 cup?
CREATE TABLE table_173103_1 (bullet_weight VARCHAR, max_pressure VARCHAR)
SELECT team FROM table_name_56 WHERE laps < 73 AND time_retired = "gearbox"
Which team has less than 73 laps and a gearbox time?
CREATE TABLE table_name_56 (team VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT developer_s_ FROM table_name_98 WHERE game = "xcom: enemy unknown"
Who was the developer of XCom: Enemy Unknown?
CREATE TABLE table_name_98 (developer_s_ VARCHAR, game VARCHAR)
SELECT cause FROM table_name_91 WHERE discipline = "touring car racing"
For what cause is Touring Car Racing the discipline?
CREATE TABLE table_name_91 (cause VARCHAR, discipline VARCHAR)
SELECT COUNT(number) FROM table_15463188_17 WHERE school_club_team = "Manuel Luis Quezon"
How many school/club teams have a player named Manuel Luis Quezon?
CREATE TABLE table_15463188_17 (number VARCHAR, school_club_team VARCHAR)
SELECT friday FROM table_18173916_8 WHERE tuesday = "414 Insanely Twisted Shadow Planet"
which episode was Transmitted on friday if the episode of "414 insanely twisted shadow planet" was transmitted on tuesday?
CREATE TABLE table_18173916_8 (friday VARCHAR, tuesday VARCHAR)
SELECT agg FROM table_name_58 WHERE team_2 = "irtysh"
What is the aggregate for the tie with a team 2 of Irtysh?
CREATE TABLE table_name_58 (agg VARCHAR, team_2 VARCHAR)
SELECT loss FROM table_name_68 WHERE date = "may 20"
Who did they lose to on May 20?
CREATE TABLE table_name_68 (loss VARCHAR, date VARCHAR)
SELECT SUM(total_rebounds) FROM table_name_59 WHERE player = "peter woolfolk"
What was Peter Woolfolk's Total Rebound average?
CREATE TABLE table_name_59 (total_rebounds INTEGER, player VARCHAR)
SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200
What is the average earnings of poker players with height higher than 200?
CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE poker_player (Earnings INTEGER, People_ID VARCHAR)
SELECT SUM(total) FROM table_name_87 WHERE a_score > 7 AND b_score < 8.65
What was the total rating that had a score higher than 7 and a b score smaller than 8.65?
CREATE TABLE table_name_87 (total INTEGER, a_score VARCHAR, b_score VARCHAR)
SELECT MIN(rank) FROM table_18118221_1 WHERE railway_station = "Gatwick Airport"
What is the lowest rank of Gatwick Airport?
CREATE TABLE table_18118221_1 (rank INTEGER, railway_station VARCHAR)
SELECT name FROM table_name_32 WHERE heat = 7 AND lane = 5
Who was in Lane 5 and had a heat of 7?
CREATE TABLE table_name_32 (name VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT score FROM table_name_88 WHERE surface = "carpet" AND partnering = "tim henman"
What is the score of the tournament with a carpet surface and tim henman as the partnering?
CREATE TABLE table_name_88 (score VARCHAR, surface VARCHAR, partnering VARCHAR)
SELECT event FROM table_name_57 WHERE athlete = "sjerstin vermeulen" AND result = "66.452"
What event did Sjerstin Vermeulen receive a 66.452 result?
CREATE TABLE table_name_57 (event VARCHAR, athlete VARCHAR, result VARCHAR)
SELECT SUM(year) FROM table_name_42 WHERE _aramac_ = 832 AND population__total_ < 3 OFFSET 762
What Year has an (Aramac) of 832 and a Population (Total) less than 3,762?
CREATE TABLE table_name_42 (year INTEGER, _aramac_ VARCHAR, population__total_ VARCHAR)
SELECT original_title FROM table_18994724_1 WHERE submitting_country = "Greece"
What is the original title of the film submitted by Greece?
CREATE TABLE table_18994724_1 (original_title VARCHAR, submitting_country VARCHAR)
SELECT name FROM person EXCEPT SELECT name FROM PersonFriend
Who is the person that has no friend?
CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE person (name VARCHAR)
SELECT score FROM table_name_42 WHERE visitor = "pittsburgh"
What was the score when Pittsburgh was the visitor?
CREATE TABLE table_name_42 (score VARCHAR, visitor VARCHAR)
SELECT SUM(works_number) FROM table_name_45 WHERE date > 1875 AND name = "gowrie"
What is the total work number of Gowrie after 1875?
CREATE TABLE table_name_45 (works_number INTEGER, date VARCHAR, name VARCHAR)
SELECT location FROM table_name_40 WHERE year = 1998
Where was the match played in 1998?
CREATE TABLE table_name_40 (location VARCHAR, year VARCHAR)
SELECT SUM(total) FROM table_name_25 WHERE bronze = 3 AND gold < 1 AND silver < 0
What's the total with silver being less than 0, less than 1 gold, and 3 bronze?
CREATE TABLE table_name_25 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT MIN(silver) FROM table_name_15 WHERE bronze = 1 AND total = 1 AND rank = "17" AND gold < 0
What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?
CREATE TABLE table_name_15 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT MAX(game) FROM table_name_99 WHERE date = "january 5"
What is the highest game that has January 5 as the date?
CREATE TABLE table_name_99 (game INTEGER, date VARCHAR)
SELECT sport FROM table_name_41 WHERE medal = "gold" AND games = "2000 sydney"
Which sport resulted in a gold medal in the 2000 Sydney games?
CREATE TABLE table_name_41 (sport VARCHAR, medal VARCHAR, games VARCHAR)
SELECT COUNT(try_bonus) FROM table_12886178_5 WHERE tries_against = "41"
How many clubs have a tries against count of 41?
CREATE TABLE table_12886178_5 (try_bonus VARCHAR, tries_against VARCHAR)
SELECT broadcast_date FROM table_1849243_1 WHERE archive = "16mm t/r"
What is the broadcast date of the 16mm t/r episode?
CREATE TABLE table_1849243_1 (broadcast_date VARCHAR, archive VARCHAR)
SELECT story FROM table_name_47 WHERE issue = "#8"
What story title was included in Issue #8?
CREATE TABLE table_name_47 (story VARCHAR, issue VARCHAR)
SELECT location FROM table_name_30 WHERE _number___county = "18 delaware" AND enrollment = 266
What is the location where enrollment is 266 and and the county is 18 Delaware?
CREATE TABLE table_name_30 (location VARCHAR, _number___county VARCHAR, enrollment VARCHAR)
SELECT AVG(crowd) FROM table_name_1 WHERE venue = "victoria park"
What is the average crowd at victoria park?
CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
SELECT weight_lost__kg_ FROM table_24370270_10 WHERE starting_weight__kg_ = "97.4"
What is every amount for weight lost if the starting weight is 97.4?
CREATE TABLE table_24370270_10 (weight_lost__kg_ VARCHAR, starting_weight__kg_ VARCHAR)