answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT tenure FROM table_name_75 WHERE actor_actress = "nadine garner"
What years were actress Nadine Garner on the show?
CREATE TABLE table_name_75 (tenure VARCHAR, actor_actress VARCHAR)
SELECT SUM(year) FROM table_name_86 WHERE chassis = "kurtis kraft 500a"
What is the year with a kurtis kraft 500a chassis?
CREATE TABLE table_name_86 (year INTEGER, chassis VARCHAR)
SELECT reverse FROM table_name_33 WHERE color = "green"
What reverse has a color of green?
CREATE TABLE table_name_33 (reverse VARCHAR, color VARCHAR)
SELECT dvd_title FROM table_name_5 WHERE aspect_ratio = "16:9" AND release_date = "november 17, 2009"
What title was release November 17, 2009 in a 16:9 aspect ratio?
CREATE TABLE table_name_5 (dvd_title VARCHAR, aspect_ratio VARCHAR, release_date VARCHAR)
SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1
Show the name of the party that has the most delegates.
CREATE TABLE election (Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
SELECT COUNT(rape__art_190_stgb_) FROM table_name_27 WHERE embezzlement__art_138_stgb_ = 820 AND total_convictions < 94 OFFSET 574
What is the total number of Rapes that have Embezzlements a figure of 820 and total number of convictions less than 94,574?
CREATE TABLE table_name_27 (rape__art_190_stgb_ VARCHAR, embezzlement__art_138_stgb_ VARCHAR, total_convictions VARCHAR)
SELECT state FROM table_name_8 WHERE name = "li"
What was the state that had the vassal name of li?
CREATE TABLE table_name_8 (state VARCHAR, name VARCHAR)
SELECT wed_26_aug FROM table_23465864_6 WHERE rider = "Andrew Farrell 400cc Kawasaki"
What was the event on Wed 26 Aug where rider is Andrew Farrell 400cc Kawasaki?
CREATE TABLE table_23465864_6 (wed_26_aug VARCHAR, rider VARCHAR)
SELECT MAX(gold) FROM table_name_13 WHERE bronze > 0 AND nation = "total" AND "total" < 54
What's the gold medal count for Total Nation with a bronze count more than 0 and a total less than 54?
CREATE TABLE table_name_13 (gold INTEGER, bronze VARCHAR, nation VARCHAR)
SELECT home_team FROM table_name_41 WHERE venue = "victoria park"
Who played home team at Victoria Park?
CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR)
SELECT MIN(goals_for) FROM table_name_32 WHERE draws < 4 AND points < 27
What is the lowest Goals For, when Draws is less than 4, and when Points is less than 27?
CREATE TABLE table_name_32 (goals_for INTEGER, draws VARCHAR, points VARCHAR)
SELECT MAX(year) FROM table_name_18 WHERE director = "no"
What year is the latest year that has no under director?
CREATE TABLE table_name_18 (year INTEGER, director VARCHAR)
SELECT year FROM table_name_25 WHERE name = "miyoshi umeki"
What year did Miyoshi Umeki make a film?
CREATE TABLE table_name_25 (year VARCHAR, name VARCHAR)
SELECT democrat AS :_carl_levin FROM table_name_88 WHERE lead_margin = 22
What is Democrat: Carl Levin, when Lead Margin is 22?
CREATE TABLE table_name_88 (democrat VARCHAR, lead_margin VARCHAR)
SELECT SUM(year) FROM table_name_80 WHERE riaa_sales_certification = "gold" AND title = "lost without your love" AND billboard_200_peak > 26
For how many years did the song "Lost Without Your Love" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26?
CREATE TABLE table_name_80 (year INTEGER, billboard_200_peak VARCHAR, riaa_sales_certification VARCHAR, title VARCHAR)
SELECT reason_for_change FROM table_1694492_2 WHERE district = "New York 10th"
In district New York 10th, what was the reason for change?
CREATE TABLE table_1694492_2 (reason_for_change VARCHAR, district VARCHAR)
SELECT SUM(bodyweight) FROM table_name_98 WHERE snatch = "153.0"
What is the total bodyweight of everyone that has a Snatch of 153.0?
CREATE TABLE table_name_98 (bodyweight INTEGER, snatch VARCHAR)
SELECT record FROM table_name_23 WHERE date = "july 31"
Which Record is on july 31?
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR)
SELECT AVG(runs) FROM table_name_21 WHERE player = "donald bradman"
What was Donald Bradman's average runs?
CREATE TABLE table_name_21 (runs INTEGER, player VARCHAR)
SELECT band FROM table_name_95 WHERE purpose = "community" AND callsign = "4bcb"
What is the Community Band with a 4BCB Callsign?
CREATE TABLE table_name_95 (band VARCHAR, purpose VARCHAR, callsign VARCHAR)
SELECT class FROM table_name_14 WHERE part_2 = "halp warþ"
Which class has a part 2 of halp warþ?
CREATE TABLE table_name_14 (class VARCHAR, part_2 VARCHAR)
SELECT T2.title, T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the movie that is rated by most of times?
CREATE TABLE Rating (mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)
SELECT jersey_number_s_ FROM table_name_22 WHERE player = "tom lagarde category:articles with hcards"
Tom Lagarde Category:Articles with hCards used what Jersey Number(s)?
CREATE TABLE table_name_22 (jersey_number_s_ VARCHAR, player VARCHAR)
SELECT college FROM table_name_86 WHERE pick__number = 41
Which college has 41 picks?
CREATE TABLE table_name_86 (college VARCHAR, pick__number VARCHAR)
SELECT MIN(week) FROM table_name_7 WHERE record = "4–7–1"
In what Week was the Record 4–7–1?
CREATE TABLE table_name_7 (week INTEGER, record VARCHAR)
SELECT clubs FROM table_name_3 WHERE number_of_fixtures = 4
What is the Clubs when there are 4 for the number of fixtures?
CREATE TABLE table_name_3 (clubs VARCHAR, number_of_fixtures VARCHAR)
SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1
What is the headquarter of the company with the largest sales?
CREATE TABLE company (Headquarters VARCHAR, Sales_in_Billion VARCHAR)
SELECT country FROM table_29302711_13 WHERE prize_money__usd_ = 66400
What country offered a prize of 66400 US dollars?
CREATE TABLE table_29302711_13 (country VARCHAR, prize_money__usd_ VARCHAR)
SELECT japanese_title FROM table_name_42 WHERE tv_station = "ntv" AND romaji_title = "kuitan 2"
What is the Japanese Title of the Episode on NTV Station with a Romaji Title of Kuitan 2?
CREATE TABLE table_name_42 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)
SELECT nationality FROM table_name_32 WHERE year > 2009 AND position = "power forward"
What nationality has a year larger than 2009 with a position of power forward?
CREATE TABLE table_name_32 (nationality VARCHAR, year VARCHAR, position VARCHAR)
SELECT dar FROM table_15887683_10 WHERE television_service = "MTV Rocks"
Name the dar for mtv rocks
CREATE TABLE table_15887683_10 (dar VARCHAR, television_service VARCHAR)
SELECT kit_manufacturer FROM table_name_99 WHERE team = "arsenal"
Which Kit manufacturer sponsers Arsenal?
CREATE TABLE table_name_99 (kit_manufacturer VARCHAR, team VARCHAR)
SELECT score FROM table_name_42 WHERE decision = "lundqvist" AND october = "20"
What was the score of the game on October 20 with a decision of Lundqvist?
CREATE TABLE table_name_42 (score VARCHAR, decision VARCHAR, october VARCHAR)
SELECT place FROM table_name_32 WHERE score = 73 - 75 - 71 - 73 = 292
What is the Place of the Player with a Score of 73-75-71-73=292?
CREATE TABLE table_name_32 (place VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_2 WHERE event = "jungle fight 5"
Which Opponent has an Event of jungle fight 5?
CREATE TABLE table_name_2 (opponent VARCHAR, event VARCHAR)
SELECT MAX(number_of_electorates__2009_) FROM table_name_81 WHERE name = "beohari"
What is Beohari's highest number of electorates?
CREATE TABLE table_name_81 (number_of_electorates__2009_ INTEGER, name VARCHAR)
SELECT location FROM table_16734640_1 WHERE institution = "Chattahoochee Technical College"
Name the location for chattahoochee technical college
CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR)
SELECT elevation FROM table_name_79 WHERE nickname = "the gathering place"
Name the elevation of the gathering place
CREATE TABLE table_name_79 (elevation VARCHAR, nickname VARCHAR)
SELECT co_drivers FROM table_name_62 WHERE laps > 377 AND pos = "1st"
Who were the co-drivers with more than 377 laps in 1st position?
CREATE TABLE table_name_62 (co_drivers VARCHAR, laps VARCHAR, pos VARCHAR)
SELECT position FROM table_name_52 WHERE player = "gerald carter"
What position does gerald carter play?
CREATE TABLE table_name_52 (position VARCHAR, player VARCHAR)
SELECT home_team AS score FROM table_name_50 WHERE home_team = "geelong"
How much did the home team Geelong score?
CREATE TABLE table_name_50 (home_team VARCHAR)
SELECT MAX(assists) FROM table_name_30 WHERE name = "juan ignacio sánchez"
What's the largest amount of assists juan ignacio sánchez ever had?
CREATE TABLE table_name_30 (assists INTEGER, name VARCHAR)
SELECT champion FROM table_name_69 WHERE location = "sopot" AND year < 2006 AND score = "6–4, 6–7(7), 6–3"
What is the Champion at Sopot prior to 2006 with a Score of 6–4, 6–7(7), 6–3?
CREATE TABLE table_name_69 (champion VARCHAR, score VARCHAR, location VARCHAR, year VARCHAR)
SELECT SUM(rank) FROM table_name_87 WHERE team = "tau cerámica" AND name = "igor rakočević" AND points > 377
What's the rank of Igor Rakočević of Tau Cerámica with more than 377 points?
CREATE TABLE table_name_87 (rank INTEGER, points VARCHAR, team VARCHAR, name VARCHAR)
SELECT player FROM table_name_17 WHERE place = "t10"
What player placed t10?
CREATE TABLE table_name_17 (player VARCHAR, place VARCHAR)
SELECT genre FROM table_name_9 WHERE year > 2009 AND platform_s_ = "playstation 3"
What is the genre for 2009 on Playstation 3?
CREATE TABLE table_name_9 (genre VARCHAR, year VARCHAR, platform_s_ VARCHAR)
SELECT score FROM table_name_72 WHERE venue = "amman" AND competition = "friendly" AND date = "february 14, 2006"
What was the score of the friendly match at Amman on February 14, 2006?
CREATE TABLE table_name_72 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)
SELECT wind FROM table_name_26 WHERE athlete = "kerron stewart"
What kind of Wind has an Athlete of kerron stewart?
CREATE TABLE table_name_26 (wind VARCHAR, athlete VARCHAR)
SELECT year FROM table_name_92 WHERE finish = "19"
What year has a finish of 19?
CREATE TABLE table_name_92 (year VARCHAR, finish VARCHAR)
SELECT MAX(rank) FROM table_name_94 WHERE location = "kingston"
What was the highest rink for Kingston?
CREATE TABLE table_name_94 (rank INTEGER, location VARCHAR)
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = "Republic" GROUP BY T2.Language HAVING COUNT(*) = 1
Which languages are spoken by only one country in republic governments?
CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Code VARCHAR, GovernmentForm VARCHAR)
SELECT ahli FROM table_26173058_2 WHERE ramtha = "1-0"
what is the location where the record is 1-0
CREATE TABLE table_26173058_2 (ahli VARCHAR, ramtha VARCHAR)
SELECT COUNT(unemployment_rate) FROM table_22815568_2 WHERE market_income_per_capita = "$20,958"
What is the unemployment rate for the county with a market income per capita of $20,958?
CREATE TABLE table_22815568_2 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR)
SELECT DISTINCT card_type_code FROM Customers_Cards
Show all card type codes.
CREATE TABLE Customers_Cards (card_type_code VARCHAR)
SELECT matches FROM table_name_92 WHERE draws = "1" AND wins = "1"
How many matches were played when there was 1 draw and 1 win?
CREATE TABLE table_name_92 (matches VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT set_2 FROM table_name_14 WHERE time = "15:33"
What set 2 has 15:33 as the time?
CREATE TABLE table_name_14 (set_2 VARCHAR, time VARCHAR)
SELECT conf FROM table_name_24 WHERE date = "ncaa tournament"
What Conference was during the NCAA Tournament?
CREATE TABLE table_name_24 (conf VARCHAR, date VARCHAR)
SELECT institution FROM table_261954_1 WHERE nickname = "WildCats"
What is every institution with the nickname of Wildcats?
CREATE TABLE table_261954_1 (institution VARCHAR, nickname VARCHAR)
SELECT candidates FROM table_1341453_51 WHERE district = "Wisconsin 4"
Who were the candidates in district Wisconsin 4?
CREATE TABLE table_1341453_51 (candidates VARCHAR, district VARCHAR)
SELECT 2011 FROM table_name_96 WHERE 1999 = "a" AND 2004 = "2r" AND career_sr = "0 / 10"
Which 2011 has a 1999 of A, and a 2004 of 2r, and a Career SR of 0 / 10?
CREATE TABLE table_name_96 (career_sr VARCHAR)
SELECT zone FROM table_name_64 WHERE against = "estonia"
What is the zone of the game played against Estonia?
CREATE TABLE table_name_64 (zone VARCHAR, against VARCHAR)
SELECT change__2010_to_2011_ FROM table_14752049_6 WHERE international_tourist_arrivals__2012_ = "24.1 million"
When 24.1 million is international tourist arrivals (2012) what is the change (2010 to 2011) ?
CREATE TABLE table_14752049_6 (change__2010_to_2011_ VARCHAR, international_tourist_arrivals__2012_ VARCHAR)
SELECT winning_driver FROM table_name_95 WHERE constructor = "ferrari" AND race_name = "xv grand prix de l'albigeois"
What driver won in the xv grand prix de l'albigeois in a vehicle by ferrari?
CREATE TABLE table_name_95 (winning_driver VARCHAR, constructor VARCHAR, race_name VARCHAR)
SELECT power_provided FROM table_174151_5 WHERE transfer_speed__mb_s_ = "300" AND max_cable_length__m_ = "10"
Name the power provided where transfer speed mb/s is 300 and max cable length of 10
CREATE TABLE table_174151_5 (power_provided VARCHAR, transfer_speed__mb_s_ VARCHAR, max_cable_length__m_ VARCHAR)
SELECT COUNT(date) FROM table_21269143_1 WHERE round = "26"
Name the total number of date for round 26
CREATE TABLE table_21269143_1 (date VARCHAR, round VARCHAR)
SELECT manufacturer FROM table_name_43 WHERE grid = 11
Name the manufacturer with grid of 11
CREATE TABLE table_name_43 (manufacturer VARCHAR, grid VARCHAR)
SELECT SUM(cuts_made) FROM table_name_72 WHERE top_10 < 2
What are the Cuts made with a Top-10 smaller than 2?
CREATE TABLE table_name_72 (cuts_made INTEGER, top_10 INTEGER)
SELECT remelting_at__°c_ FROM table_name_51 WHERE sn_sb___percentage_ = "9.5/15"
What is the remelting temperature for the alloy that has a Sn/Sb ratio of 9.5/15?
CREATE TABLE table_name_51 (remelting_at__°c_ VARCHAR, sn_sb___percentage_ VARCHAR)
SELECT release_date FROM table_name_59 WHERE track > 4 AND recorded = "1/12/57" AND time = "2:31"
When was the release date of a track greater than 4, 1/12/57 recorded, and a length of 2:31?
CREATE TABLE table_name_59 (release_date VARCHAR, time VARCHAR, track VARCHAR, recorded VARCHAR)
SELECT SUM(asian_or_amerindian___percentage_) FROM table_name_44 WHERE state = "sergipe" AND brown___percentage_ > 61 OFFSET 3
What is the sum of Asian or Amerindian (%), when State is Sergipe, and when Brown (%) is greater than 61,3?
CREATE TABLE table_name_44 (asian_or_amerindian___percentage_ INTEGER, state VARCHAR, brown___percentage_ VARCHAR)
SELECT 2 AS nd_leg FROM table_name_92 WHERE team_2 = "far rabat"
What is the 2nd leg of team 2 Far rabat?
CREATE TABLE table_name_92 (team_2 VARCHAR)
SELECT iata FROM table_name_20 WHERE icao = "wmkk"
Name the IATA of wmkk
CREATE TABLE table_name_20 (iata VARCHAR, icao VARCHAR)
SELECT SUM(week) FROM table_name_55 WHERE date = "september 24, 2000"
What week was September 24, 2000 on?
CREATE TABLE table_name_55 (week INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_28 WHERE date = "august 2"
What was the attendance on August 2?
CREATE TABLE table_name_28 (attendance INTEGER, date VARCHAR)
SELECT headquarters_city FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = "33.3"
Where is the company with estimated revenue of 33.3 billion headquartered?
CREATE TABLE table_21926985_2 (headquarters_city VARCHAR, revenue__$billions__2012_estimate VARCHAR)
SELECT 2005 FROM table_name_16 WHERE 2002 = "0–1"
What shows for 2005 when 2002 shows 0–1?
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT AVG(overall) FROM table_name_82 WHERE position = "te" AND round > 5
Which Overall has a Position of te, and a Round larger than 5?
CREATE TABLE table_name_82 (overall INTEGER, position VARCHAR, round VARCHAR)
SELECT college FROM table_1004033_1 WHERE team = "Columbus Crew"
What college did the Rookie of the Year from the Columbus Crew attend?
CREATE TABLE table_1004033_1 (college VARCHAR, team VARCHAR)
SELECT SUM(draw) FROM table_name_45 WHERE season = "2001–02" AND points > 47
Which Draw has a Season of 2001–02, and Points larger than 47?
CREATE TABLE table_name_45 (draw INTEGER, season VARCHAR, points VARCHAR)
SELECT COUNT(goals_against) FROM table_name_48 WHERE wins > 12 AND club = "ud las palmas" AND position > 5
How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5?
CREATE TABLE table_name_48 (goals_against VARCHAR, position VARCHAR, wins VARCHAR, club VARCHAR)
SELECT place_came FROM table_23429629_4 WHERE artist = "Erlend Bratland"
What was the final place came for the performance of Erlend Bratland?
CREATE TABLE table_23429629_4 (place_came VARCHAR, artist VARCHAR)
SELECT club FROM table_name_60 WHERE losses = 15 AND wins = 14
Which club has 15 losses and 14 wins?
CREATE TABLE table_name_60 (club VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT COUNT(patient) FROM stay WHERE room = 112
How many patients stay in room 112?
CREATE TABLE stay (patient VARCHAR, room VARCHAR)
SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = "3 557" AND crude_death_rate__per_1000_ < 11.9
What is the average population when deaths are 3 557 and crude death date is less than 11.9?
CREATE TABLE table_name_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR)
SELECT player FROM table_20649850_1 WHERE position = "OL"
Name the player for ol
CREATE TABLE table_20649850_1 (player VARCHAR, position VARCHAR)
SELECT original_air_date FROM table_22951088_3 WHERE no = 1
What was the original air date of episode number 1?
CREATE TABLE table_22951088_3 (original_air_date VARCHAR, no VARCHAR)
SELECT score FROM table_name_28 WHERE decision = "hasek" AND date = "january 5"
What's the score on january 5 with a hasek decision?
CREATE TABLE table_name_28 (score VARCHAR, decision VARCHAR, date VARCHAR)
SELECT MIN(weight) FROM table_name_28 WHERE height = 196 AND date_of_birth = "24.07.1977"
What is the lowest Weight when the height is 196, and the date of birth is 24.07.1977?
CREATE TABLE table_name_28 (weight INTEGER, height VARCHAR, date_of_birth VARCHAR)
SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = "ATO"
How many flights have destination ATO?
CREATE TABLE FLIGHTS (DestAirport VARCHAR)
SELECT uranium_required_2006_08 FROM table_15624586_2 WHERE country = "Russia"
How much uranium did Russia use in 2006 to 2008?
CREATE TABLE table_15624586_2 (uranium_required_2006_08 VARCHAR, country VARCHAR)
SELECT outcome FROM table_name_73 WHERE year = 1973 AND surface = "clay"
What was the result in 1973 when the surface was clay?
CREATE TABLE table_name_73 (outcome VARCHAR, year VARCHAR, surface VARCHAR)
SELECT finish FROM table_name_10 WHERE engine = "oldsmobile" AND start = "dnq"
What was the position of the team that used an oldsmobile engine and DNQ?
CREATE TABLE table_name_10 (finish VARCHAR, engine VARCHAR, start VARCHAR)
SELECT artist FROM table_name_82 WHERE format = "12 inch vinyl" AND single = "alien rock b/w combat, the remix"
What artist had a single called Alien Rock b/w Combat, The Remix on 12 inch Vinyl format?
CREATE TABLE table_name_82 (artist VARCHAR, format VARCHAR, single VARCHAR)
SELECT term_in_office FROM table_name_73 WHERE electorate = "indi"
What term did an Electorate of indi have in office?
CREATE TABLE table_name_73 (term_in_office VARCHAR, electorate VARCHAR)
SELECT COUNT(frequency_mhz) FROM table_name_95 WHERE call_sign = "w233ag"
On what frequency does W233AG broadcast?
CREATE TABLE table_name_95 (frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = "APG"
How many flights depart from 'APG'?
CREATE TABLE FLIGHTS (SourceAirport VARCHAR)
SELECT record FROM table_27698941_8 WHERE date = "January 7"
What the win - loss recored for January 7?
CREATE TABLE table_27698941_8 (record VARCHAR, date VARCHAR)
SELECT name, address_road, city FROM branch ORDER BY open_year
Show name, address road, and city for all branches sorted by open year.
CREATE TABLE branch (name VARCHAR, address_road VARCHAR, city VARCHAR, open_year VARCHAR)
SELECT race FROM table_2581397_3 WHERE weight__kg_ = "56.5"
List the weight for 56.5 kilograms.
CREATE TABLE table_2581397_3 (race VARCHAR, weight__kg_ VARCHAR)
SELECT MIN(mccain_number) FROM table_20722805_1 WHERE obama_percentage = "48.35%"
What was McCain's vote when Obama had 48.35%
CREATE TABLE table_20722805_1 (mccain_number INTEGER, obama_percentage VARCHAR)