answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT typhus FROM table_1007688_1 WHERE smallpox = 4
What are all the typhus number when smallpox is 4
CREATE TABLE table_1007688_1 (typhus VARCHAR, smallpox VARCHAR)
SELECT MAX(year) FROM table_name_55 WHERE association = "american music awards" AND category = "favorite rap/hip-hop new artist"
Who won the most recent favorite rap/hip-hop new artist at the American music awards?
CREATE TABLE table_name_55 (year INTEGER, association VARCHAR, category VARCHAR)
SELECT COUNT(rufus_guest) FROM table_19930660_1 WHERE first_broadcast = "15 December 2008"
Name the rufus guest for 15 december 2008
CREATE TABLE table_19930660_1 (rufus_guest VARCHAR, first_broadcast VARCHAR)
SELECT location FROM table_15736385_1 WHERE driver = "Rick Mears"
At which location did Rick Mears drive?
CREATE TABLE table_15736385_1 (location VARCHAR, driver VARCHAR)
SELECT score FROM table_name_61 WHERE champion = "nannette hill"
What was the score when Nannette Hill was the champion?
CREATE TABLE table_name_61 (score VARCHAR, champion VARCHAR)
SELECT school_club_team FROM table_11545282_18 WHERE player = "Kirk Snyder"
Which school is Kirk Snyder from?
CREATE TABLE table_11545282_18 (school_club_team VARCHAR, player VARCHAR)
SELECT name FROM table_name_71 WHERE spouse = "frederick ix"
Tell me the name of the person married to frederick ix
CREATE TABLE table_name_71 (name VARCHAR, spouse VARCHAR)
SELECT obama__percentage FROM table_20278716_2 WHERE county = "Burlington"
What percentage of people voted for Obama in Burlington?
CREATE TABLE table_20278716_2 (obama__percentage VARCHAR, county VARCHAR)
SELECT _percentage_cut FROM table_21690339_1 WHERE alternative_fuel = "Fuel oil stocks need only for industry"
What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative?
CREATE TABLE table_21690339_1 (_percentage_cut VARCHAR, alternative_fuel VARCHAR)
SELECT MIN(score) FROM table_name_81 WHERE player = "wes ellis"
What is the lowest score that wes ellis got?
CREATE TABLE table_name_81 (score INTEGER, player VARCHAR)
SELECT date FROM table_name_50 WHERE total = "25–45"
On what date was the total 25–45?
CREATE TABLE table_name_50 (date VARCHAR, total VARCHAR)
SELECT SUM(population) FROM table_name_70 WHERE density = 50.09 AND rank > 30
WHat is the number of Population has a Density of 50.09 and a Rank larger than 30?
CREATE TABLE table_name_70 (population INTEGER, density VARCHAR, rank VARCHAR)
SELECT MIN(no_s__in_season) FROM table_27714985_1 WHERE production_code_s_ = 226407
What is the episode number of the episode whose production code is 226407?
CREATE TABLE table_27714985_1 (no_s__in_season INTEGER, production_code_s_ VARCHAR)
SELECT brup FROM table_18064020_21 WHERE name = "total"
What is the total brup for the team?
CREATE TABLE table_18064020_21 (brup VARCHAR, name VARCHAR)
SELECT t20_matches FROM table_name_33 WHERE year = "1979"
What T20 match was played in 1979?
CREATE TABLE table_name_33 (t20_matches VARCHAR, year VARCHAR)
SELECT theme FROM table_22736523_1 WHERE song_choice = "Crazy In Love"
If Crazy In Love is the song choice, what is the theme?
CREATE TABLE table_22736523_1 (theme VARCHAR, song_choice VARCHAR)
SELECT COUNT(year) FROM table_name_44 WHERE team = "andretti autosport"
What are the years that Andretti Autosport is a team?
CREATE TABLE table_name_44 (year VARCHAR, team VARCHAR)
SELECT MAX(competition_finish) FROM table_1354805_6 WHERE average = "31.1"
what is the highest number where people got done at 31.1
CREATE TABLE table_1354805_6 (competition_finish INTEGER, average VARCHAR)
SELECT MAX(capacity), AVG(capacity), building FROM classroom GROUP BY building
Find the maximum and average capacity among rooms in each building.
CREATE TABLE classroom (building VARCHAR, capacity INTEGER)
SELECT tournament FROM table_name_42 WHERE 2010 = "4r"
Which tournament had a 2010 finish of 4R?
CREATE TABLE table_name_42 (tournament VARCHAR)
SELECT MAX(week) FROM table_name_32 WHERE result = "l 24–20" AND opponent = "at new england patriots"
In what Week has a Result of l 24–20, and a Opponent of at new england patriots?
CREATE TABLE table_name_32 (week INTEGER, result VARCHAR, opponent VARCHAR)
SELECT juntas_de_regantes__wub_ FROM table_20018310_1 WHERE irrigation_district = "Azua Valley"
What are the Juntas de Regantes (WUB) within the Azua Valley?
CREATE TABLE table_20018310_1 (juntas_de_regantes__wub_ VARCHAR, irrigation_district VARCHAR)
SELECT date FROM table_name_12 WHERE venue = "the oval"
What is the Date of the Test match of Australia in England at The Oval Venue?
CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR)
SELECT place FROM table_name_79 WHERE to_par = "+6" AND score = 78 - 70 - 74 = 222
What is the Place of Player with To par of +6 and Score of 78-70-74=222?
CREATE TABLE table_name_79 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT date FROM table_name_61 WHERE tie_no = "9"
What is the Date of Tie no 9?
CREATE TABLE table_name_61 (date VARCHAR, tie_no VARCHAR)
SELECT payload__kg_ FROM table_name_35 WHERE weight__kg_ = "12,000"
Name the payload that has a weight of 12,000
CREATE TABLE table_name_35 (payload__kg_ VARCHAR, weight__kg_ VARCHAR)
SELECT MAX(rank) FROM table_name_44 WHERE nation = "belarus (blr)" AND total < 15
What rank is Belarus (BLR), which earned 15 medals total?
CREATE TABLE table_name_44 (rank INTEGER, nation VARCHAR, total VARCHAR)
SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Plustek MobileOffice D28 Corporate"
What are the mm dimensions of the Plustek Mobileoffice D28 Corporate?
CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR)
SELECT bluetooth FROM table_name_5 WHERE launch_year > 2004 AND rom___mib__ = 128 AND wifi = "802.11b"
What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b?
CREATE TABLE table_name_5 (bluetooth VARCHAR, wifi VARCHAR, launch_year VARCHAR, rom___mib__ VARCHAR)
SELECT class FROM table_name_40 WHERE sport = "volleyball" AND year = 2000
What class is volleyball in 2000?
CREATE TABLE table_name_40 (class VARCHAR, sport VARCHAR, year VARCHAR)
SELECT year__ceremony_ FROM table_17156199_1 WHERE original_title = "বৃত্তের বাইরে (Britter Baire)"
What year and ceremony was the original title বৃত্তের বাইরে (britter baire)?
CREATE TABLE table_17156199_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT asset_model FROM Assets WHERE NOT asset_id IN (SELECT asset_id FROM Fault_Log)
Which assets did not incur any fault log? List the asset model.
CREATE TABLE Fault_Log (asset_model VARCHAR, asset_id VARCHAR); CREATE TABLE Assets (asset_model VARCHAR, asset_id VARCHAR)
SELECT record FROM table_name_31 WHERE result = "w 45–17"
What is the record of the game that has a result of w 45–17?
CREATE TABLE table_name_31 (record VARCHAR, result VARCHAR)
SELECT MIN(bronze) FROM table_name_53 WHERE gold < 0
What is the bronze number for the nation with less than 0 gold?
CREATE TABLE table_name_53 (bronze INTEGER, gold INTEGER)
SELECT lens_35mmequiv__zoom, _aperture FROM table_name_39 WHERE model = "s2600"
Tell me the lens zoom for aperture of model s2600
CREATE TABLE table_name_39 (lens_35mmequiv__zoom VARCHAR, _aperture VARCHAR, model VARCHAR)
SELECT high_points FROM table_name_61 WHERE date = "november 20"
who had the high points on november 20?
CREATE TABLE table_name_61 (high_points VARCHAR, date VARCHAR)
SELECT COUNT(rd__number) FROM table_name_24 WHERE reg_gp = 0 AND pick__number = 150
What is the rd number where the reg GP is 0 and the pick is 150?
CREATE TABLE table_name_24 (rd__number VARCHAR, reg_gp VARCHAR, pick__number VARCHAR)
SELECT COUNT(points) FROM table_name_90 WHERE difference = "2" AND position < 4
How many points occurred with a difference of 2 for position less than 4?
CREATE TABLE table_name_90 (points VARCHAR, difference VARCHAR, position VARCHAR)
SELECT T2.roomName, T1.Rate, T1.CheckIn, T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1
Which room has the highest rate? List the room's full name, rate, check in and check out date.
CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR); CREATE TABLE Reservations (Rate VARCHAR, CheckIn VARCHAR, CheckOut VARCHAR, Room 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 date FROM table_name_39 WHERE home = "cavaliers" AND visitor = "warriors"
What date was the game played with the Cavaliers at home and the Warriors visiting?
CREATE TABLE table_name_39 (date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT nhl_team FROM table_2840500_5 WHERE college_junior_club_team = "HC Lada Togliatti (Russia)"
Which team drafted the player from the HC Lada Togliatti (Russia)?
CREATE TABLE table_2840500_5 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT COUNT(conference_record) FROM table_20319085_2 WHERE season = 2006
How many different conference records are there for season 2006?
CREATE TABLE table_20319085_2 (conference_record VARCHAR, season VARCHAR)
SELECT outcome FROM table_2215159_2 WHERE partner = "Rafael Osuna"
What was the outcome of the game when the partner is Rafael Osuna?
CREATE TABLE table_2215159_2 (outcome VARCHAR, partner VARCHAR)
SELECT MIN(new_adherents_per_year) FROM table_28137918_5
Name the least amount of new adherents per year
CREATE TABLE table_28137918_5 (new_adherents_per_year INTEGER)
SELECT SUM(points) FROM table_name_84 WHERE home = "pittsburgh" AND date = "december 21" AND attendance > 5 OFFSET 307
What is the sum of Points, when Home is "Pittsburgh", when Date is "December 21", and when Attendance is greater than 5,307?
CREATE TABLE table_name_84 (points INTEGER, attendance VARCHAR, home VARCHAR, date VARCHAR)
SELECT completions FROM table_name_89 WHERE attempts = "1,271"
Which Completions has Attempts of 1,271?
CREATE TABLE table_name_89 (completions VARCHAR, attempts VARCHAR)
SELECT SUM(year) FROM table_name_80 WHERE result < 20.26 AND location = "eugene"
Which Year has a Result smaller than 20.26, and a Location of eugene?
CREATE TABLE table_name_80 (year INTEGER, result VARCHAR, location VARCHAR)
SELECT AVG(attendance) FROM table_name_45 WHERE venue = "a" AND date = "1 september 2007"
On 1 september 2007, at the Venue A, what was the average attendance?
CREATE TABLE table_name_45 (attendance INTEGER, venue VARCHAR, date VARCHAR)
SELECT team FROM table_27712180_7 WHERE date = "December 18"
Name the team for december 18
CREATE TABLE table_27712180_7 (team VARCHAR, date VARCHAR)
SELECT second_place_s_ FROM table_20823568_2 WHERE sporting_profession = "Snooker"
How many second place showings does snooker have?
CREATE TABLE table_20823568_2 (second_place_s_ VARCHAR, sporting_profession VARCHAR)
SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force
Please show the police forces and the number of counties with each police force.
CREATE TABLE county_public_safety (Police_force VARCHAR)
SELECT AVG(games) FROM table_name_5 WHERE years_at_club = "1977" AND goals = 17 AND debut_year < 1977
Which Games have Years at club of 1977, and Goals of 17, and a Debut year smaller than 1977?
CREATE TABLE table_name_5 (games INTEGER, debut_year VARCHAR, years_at_club VARCHAR, goals VARCHAR)
SELECT standard FROM table_name_79 WHERE pollutant = "o 3" AND averaging_time = "8-hour"
what is the standard when the pollutant is o 3 and averaging time is 8-hour?
CREATE TABLE table_name_79 (standard VARCHAR, pollutant VARCHAR, averaging_time VARCHAR)
SELECT vale_royal FROM table_name_20 WHERE religion = "jewish"
WHAT IS THE VALE ROYAL WITH THE JEWISH RELIGION?
CREATE TABLE table_name_20 (vale_royal VARCHAR, religion VARCHAR)
SELECT original_nfl_team FROM table_name_51 WHERE college = "oregon" AND pos = "dt"
What is the original NFL team of the College of Oregon DT Player?
CREATE TABLE table_name_51 (original_nfl_team VARCHAR, college VARCHAR, pos VARCHAR)
SELECT round FROM table_name_92 WHERE club_team = "brandon wheat kings (whl)"
Which Round has a Club team of brandon wheat kings (whl)?
CREATE TABLE table_name_92 (round VARCHAR, club_team VARCHAR)
SELECT AVG(gold) FROM table_name_5 WHERE rank > 5
what is the average number of gold when the rank is more than 5?
CREATE TABLE table_name_5 (gold INTEGER, rank INTEGER)
SELECT height FROM table_name_96 WHERE pos = "gk" AND club = "vk primorac kotor"
What is the height of the player from club vk primorac kotor who plays gk?
CREATE TABLE table_name_96 (height VARCHAR, pos VARCHAR, club VARCHAR)
SELECT method FROM table_name_56 WHERE res = "win" AND opponent = "natsuko kikukawa"
What method was used that had a resulting win against opponent, Natsuko Kikukawa?
CREATE TABLE table_name_56 (method VARCHAR, res VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_61 WHERE opponent = "yankees" AND loss = "mulholland (5-6)"
What is the record of teams that play the yankees, and lose at mulholland (5-6)
CREATE TABLE table_name_61 (record VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_37 WHERE place = "5"
What is the Money of the Player in Place 5?
CREATE TABLE table_name_37 (money___ INTEGER, place VARCHAR)
SELECT COUNT(top_10) FROM table_2190919_1 WHERE avg_finish = "23.3"
How many teams finished in the top team with an average finish of 23.3?
CREATE TABLE table_2190919_1 (top_10 VARCHAR, avg_finish VARCHAR)
SELECT indigenous_mining_production_2006 FROM table_15624586_2 WHERE _percentage_of_world_demand = "24.0%"
Which country mines 24.0% of the world demand of uranium?
CREATE TABLE table_15624586_2 (indigenous_mining_production_2006 VARCHAR, _percentage_of_world_demand VARCHAR)
SELECT SUM(bronze) FROM table_name_22 WHERE silver > 0 AND total < 1
What is the sum of bronzes for teams with more than 0 silver and a total under 1?
CREATE TABLE table_name_22 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT pick__number FROM table_name_13 WHERE nhl_team = "st. louis blues"
What Pick # does the St. Louis Blues have?
CREATE TABLE table_name_13 (pick__number VARCHAR, nhl_team VARCHAR)
SELECT venue FROM table_name_89 WHERE away_team = "north melbourne"
Where was the game held where North Melbourne was the away team?
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)
SELECT season FROM table_name_89 WHERE acquisition_via = "free agency" AND number > 9
What season had an acquisition of free agency, and was higher than 9?
CREATE TABLE table_name_89 (season VARCHAR, acquisition_via VARCHAR, number VARCHAR)
SELECT record FROM table_27712702_8 WHERE date = "December 27"
What was the record on December 27?
CREATE TABLE table_27712702_8 (record VARCHAR, date VARCHAR)
SELECT date FROM table_name_86 WHERE game > 4 AND team = "san antonio" AND record = "4-3"
When Date has a Game larger than 4 and a Team of san antonio, and a Record of 4-3?
CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR, game VARCHAR, team VARCHAR)
SELECT player FROM table_name_4 WHERE current_club = "ironi nahariya" AND year_born = 1980
Which player from the Ironi Nahariya club was born in 1980?
CREATE TABLE table_name_4 (player VARCHAR, current_club VARCHAR, year_born VARCHAR)
SELECT district FROM table_1341707_12 WHERE first_elected = 1952
Phillip Landrum was first elected in 1952 from the ninth district of Georgia.
CREATE TABLE table_1341707_12 (district VARCHAR, first_elected VARCHAR)
SELECT lifetime FROM table_name_3 WHERE name = "alan gendreau"
Which lifetime has alan gendreau?
CREATE TABLE table_name_3 (lifetime VARCHAR, name VARCHAR)
SELECT nhl_team FROM table_name_97 WHERE player = "vitali yeremeyev"
Name the team of vitali yeremeyev
CREATE TABLE table_name_97 (nhl_team VARCHAR, player VARCHAR)
SELECT location FROM table_name_12 WHERE novelty = "gen"
What is the Location when the novelty is gen?
CREATE TABLE table_name_12 (location VARCHAR, novelty VARCHAR)
SELECT away_team FROM table_name_24 WHERE home_team = "grimsby town"
What team was the away team when the home team was Grimsby Town?
CREATE TABLE table_name_24 (away_team VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_17 WHERE score = "285"
what venue saw a score of 285?
CREATE TABLE table_name_17 (venue VARCHAR, score VARCHAR)
SELECT COUNT(vacator) FROM table_225095_4 WHERE district = "North Carolina 3rd"
How many Vacators were listed when the district was North Carolina 3rd?
CREATE TABLE table_225095_4 (vacator VARCHAR, district VARCHAR)
SELECT format FROM table_name_93 WHERE label = "toy's factory records"
Which Format has a Label of toy's factory records?
CREATE TABLE table_name_93 (format VARCHAR, label VARCHAR)
SELECT winning_score FROM table_name_74 WHERE tournament = "kraft nabisco championship"
What winning score has kraft nabisco championship as the tournament?
CREATE TABLE table_name_74 (winning_score VARCHAR, tournament VARCHAR)
SELECT name FROM table_name_95 WHERE position = "guard"
What is the players name in the guard position?
CREATE TABLE table_name_95 (name VARCHAR, position VARCHAR)
SELECT first_elected FROM table_name_55 WHERE district = "california 3"
What is the First elected of california 3?
CREATE TABLE table_name_55 (first_elected VARCHAR, district VARCHAR)
SELECT MIN(games) FROM table_name_38 WHERE name = "travis watson" AND rebounds < 136
What is the lowest Games, when Name is Travis Watson, and when Rebounds is less than 136?
CREATE TABLE table_name_38 (games INTEGER, name VARCHAR, rebounds VARCHAR)
SELECT COUNT(total_wins) FROM table_17632217_1 WHERE runners_up = "Shanghai"
How many total wins with Shanghai as runner-up?
CREATE TABLE table_17632217_1 (total_wins VARCHAR, runners_up VARCHAR)
SELECT MAX(total) FROM table_name_34 WHERE bronze > 1 AND gold > 1 AND silver < 4
What is the highest total that has a bronze greater than 1, a gold greater than 1, with a silver less than 4?
CREATE TABLE table_name_34 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT 2005 FROM table_name_37 WHERE 1999 = "0–0"
Which 2005 has a 1999 of 0–0?
CREATE TABLE table_name_37 (Id VARCHAR)
SELECT COUNT(pick) FROM table_2886617_3 WHERE nationality = "Canada" AND player = "Larry Courville"
How many picks have canada as the nationality and larry courville is the player?
CREATE TABLE table_2886617_3 (pick VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT time FROM table_name_43 WHERE notes = "fb" AND country = "canada"
What is the time with FB notes for Canada?
CREATE TABLE table_name_43 (time VARCHAR, notes VARCHAR, country VARCHAR)
SELECT player FROM table_name_90 WHERE position = "center" AND school_club_team = "washington state"
Who was the center from Washington State?
CREATE TABLE table_name_90 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT permanence_of_the_body FROM table_11609814_1 WHERE constancy = "interestedness"
what's the permanence of the body where constancy is interestedness
CREATE TABLE table_11609814_1 (permanence_of_the_body VARCHAR, constancy VARCHAR)
SELECT model FROM table_name_68 WHERE chassis_code = "w116.036"
What's the model that has chassis code W116.036?
CREATE TABLE table_name_68 (model VARCHAR, chassis_code VARCHAR)
SELECT name FROM table_20595642_2 WHERE br_no = 60501
what is the name for br no. 60501
CREATE TABLE table_20595642_2 (name VARCHAR, br_no VARCHAR)
SELECT time_retired FROM table_name_86 WHERE grid > 20 AND laps < 26 AND manufacturer = "aprilia"
What is the time for a grid greater than 20, fewer than 26 laps, and the Aprilia manufacturer?
CREATE TABLE table_name_86 (time_retired VARCHAR, manufacturer VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT year FROM table_name_46 WHERE b_side = "just squeeze me"
What year did the B-Side of Just Squeeze Me come out?
CREATE TABLE table_name_46 (year VARCHAR, b_side VARCHAR)
SELECT home FROM table_name_11 WHERE league = "3rd liga" AND away = "4-0"
What is the home for league 3rd liga, and an away of 4-0?
CREATE TABLE table_name_11 (home VARCHAR, league VARCHAR, away VARCHAR)
SELECT venue FROM table_name_18 WHERE result = "5-0"
Which Venue has a Result of 5-0?
CREATE TABLE table_name_18 (venue VARCHAR, result VARCHAR)
SELECT 1999 FROM table_name_3 WHERE 2011 = "2r"
Name the 1999 with 2011 of 2r
CREATE TABLE table_name_3 (Id VARCHAR)
SELECT T1.asset_id, T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) = 2 INTERSECT SELECT T1.asset_id, T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) < 2
Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.
CREATE TABLE Assets (asset_id VARCHAR, asset_details VARCHAR); CREATE TABLE Asset_Parts (asset_id VARCHAR); CREATE TABLE Fault_Log (asset_id VARCHAR)
SELECT first_performance FROM table_name_72 WHERE style = "ballet" AND status = "final cast" AND name = "peter mazurowski"
when was the first performance for the ballet with peter mazurowski in the final cast?
CREATE TABLE table_name_72 (first_performance VARCHAR, name VARCHAR, style VARCHAR, status VARCHAR)
SELECT formula FROM table_name_72 WHERE prefix = "alkyl-"
Which Formula has a Prefix of alkyl-?
CREATE TABLE table_name_72 (formula VARCHAR, prefix VARCHAR)