question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Total has an olympic bronze medalist?
CREATE TABLE table_name_27 (total VARCHAR, rank_points VARCHAR)
SELECT total FROM table_name_27 WHERE rank_points = "olympic bronze medalist"
What date premiered (2009) has kareena kapoor as the contestant name?
CREATE TABLE table_name_40 (date_premiered__2009_ VARCHAR, contestant_name VARCHAR)
SELECT date_premiered__2009_ FROM table_name_40 WHERE contestant_name = "kareena kapoor"
What is the Event labeled Country of (local competition)?
CREATE TABLE table_name_69 (event VARCHAR, country VARCHAR)
SELECT event FROM table_name_69 WHERE country = "(local competition)"
What's team #2 in the round where team $1 is Ilisiakos?
CREATE TABLE table_19130829_4 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT team__number2 FROM table_19130829_4 WHERE team__number1 = "Ilisiakos"
What is Most Laps Led, when Winning Team is Chip Ganassi Racing, and when Fastest Lap is Marco Andretti?
CREATE TABLE table_name_28 (most_laps_led VARCHAR, winning_team VARCHAR, fastest_lap VARCHAR)
SELECT most_laps_led FROM table_name_28 WHERE winning_team = "chip ganassi racing" AND fastest_lap = "marco andretti"
List the dates of debates with number of audience bigger than 150
CREATE TABLE debate (Date VARCHAR, Num_of_Audience INTEGER)
SELECT Date FROM debate WHERE Num_of_Audience > 150
How many districts does william b. oliver represent?
CREATE TABLE table_1342359_2 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1342359_2 WHERE incumbent = "William B. Oliver"
Which 2008 Tournament has a 2007 of a and a 2010 of qf?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT 2008 FROM table_name_46 WHERE 2007 = "a" AND 2010 = "qf"
What was the margin of victory when the runner-up was Janet Coles?
CREATE TABLE table_name_48 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_48 WHERE runner_s__up = "janet coles"
What is teh Nuskhuri symbol for ⴋ in Asomtavruli?
CREATE TABLE table_name_80 (nuskhuri VARCHAR, asomtavruli VARCHAR)
SELECT nuskhuri FROM table_name_80 WHERE asomtavruli = "ⴋ"
What are the producers of 磊磊牌嬰幼兒配方乳粉 ?
CREATE TABLE table_18943444_1 (producer VARCHAR, product VARCHAR)
SELECT producer FROM table_18943444_1 WHERE product = "磊磊牌嬰幼兒配方乳粉"
what is the points for when the club has 0 drawn and 60 tries against?
CREATE TABLE table_name_71 (points_for VARCHAR, drawn VARCHAR, tries_against VARCHAR)
SELECT points_for FROM table_name_71 WHERE drawn = "0" AND tries_against = "60"
What was total attendance on the day they went 17-7?
CREATE TABLE table_name_17 (attendance VARCHAR, record VARCHAR)
SELECT COUNT(attendance) FROM table_name_17 WHERE record = "17-7"
Where was the game played that was on Sunday, May 27?
CREATE TABLE table_24786958_2 (game_site VARCHAR, date VARCHAR)
SELECT game_site FROM table_24786958_2 WHERE date = "Sunday, May 27"
What Championship had a winning score of 69-71-67-68=275?
CREATE TABLE table_name_9 (championship VARCHAR, winning_score VARCHAR)
SELECT championship FROM table_name_9 WHERE winning_score = 69 - 71 - 67 - 68 = 275
Which lap number had a grid number bigger than 9 and where the driver was Mark Webber?
CREATE TABLE table_name_77 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_77 WHERE grid > 9 AND driver = "mark webber"
What is Venue, when Extra is Pentathlon?
CREATE TABLE table_name_39 (venue VARCHAR, extra VARCHAR)
SELECT venue FROM table_name_39 WHERE extra = "pentathlon"
What was the maximum number of wins?
CREATE TABLE table_22081847_1 (wins INTEGER)
SELECT MAX(wins) FROM table_22081847_1
Which challenge loser has a Challenge Winner of roseny?
CREATE TABLE table_name_81 (challenge_loser VARCHAR, challenge_winner VARCHAR)
SELECT challenge_loser FROM table_name_81 WHERE challenge_winner = "roseny"
Which Gold has a Nation of malaysia, and a Silver smaller than 0?
CREATE TABLE table_name_47 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT MIN(gold) FROM table_name_47 WHERE nation = "malaysia" AND silver < 0
What is the Location of the Bowl in 2006?
CREATE TABLE table_name_50 (location VARCHAR, season VARCHAR)
SELECT location FROM table_name_50 WHERE season = 2006
What is the President with a Year larger than 2011, and a Date with 23 may?
CREATE TABLE table_name_31 (president VARCHAR, year VARCHAR, date VARCHAR)
SELECT president FROM table_name_31 WHERE year > 2011 AND date = "23 may"
Which country had a release of 1 VCD titled Martial Law: Substitutes?
CREATE TABLE table_name_93 (country VARCHAR, notes VARCHAR, release_title VARCHAR)
SELECT country FROM table_name_93 WHERE notes = "1 vcd" AND release_title = "martial law: substitutes"
Who has a mark of 6.17 in group B?
CREATE TABLE table_name_40 (name VARCHAR, group VARCHAR, mark VARCHAR)
SELECT name FROM table_name_40 WHERE group = "b" AND mark = "6.17"
On what surface did a score of 4–6 6–3 6–4 occur at the Tournament of Lahore?
CREATE TABLE table_name_78 (surface VARCHAR, tournament VARCHAR, score VARCHAR)
SELECT surface FROM table_name_78 WHERE tournament = "lahore" AND score = "4–6 6–3 6–4"
When 2011 is the period and olympikus is the kit manufacturer how many minor sponsors are there?
CREATE TABLE table_187239_1 (minor_sponsors VARCHAR, kit_manufacturer VARCHAR, period VARCHAR)
SELECT COUNT(minor_sponsors) FROM table_187239_1 WHERE kit_manufacturer = "Olympikus" AND period = "2011"
What is the qual 2 of team Forsythe racing, which has a 1:09.515 best?
CREATE TABLE table_name_42 (qual_2 VARCHAR, team VARCHAR, best VARCHAR)
SELECT qual_2 FROM table_name_42 WHERE team = "forsythe racing" AND best = "1:09.515"
Which Player has a Pick smaller than 11, and a Position of rhp, and a Team of new york mets?
CREATE TABLE table_name_6 (player VARCHAR, team VARCHAR, pick VARCHAR, position VARCHAR)
SELECT player FROM table_name_6 WHERE pick < 11 AND position = "rhp" AND team = "new york mets"
Which county has 2011 as the year?
CREATE TABLE table_name_17 (country VARCHAR, year VARCHAR)
SELECT country FROM table_name_17 WHERE year = 2011
Find the number and time of the train that goes from Chennai to Guruvayur.
CREATE TABLE train (train_number VARCHAR, TIME VARCHAR, origin VARCHAR, destination VARCHAR)
SELECT train_number, TIME FROM train WHERE origin = 'Chennai' AND destination = 'Guruvayur'
Name the republican steve sauerberg for august 12, 2008
CREATE TABLE table_16751596_2 (republican VARCHAR, dates_administered VARCHAR)
SELECT republican AS :_steve_sauerberg FROM table_16751596_2 WHERE dates_administered = "August 12, 2008"
player is jim henshall what are all the position
CREATE TABLE table_26996293_2 (position VARCHAR, player VARCHAR)
SELECT position FROM table_26996293_2 WHERE player = "Jim Henshall"
Return the ids of all products that were ordered more than three times or supplied more than 80000.
CREATE TABLE Order_Items (product_id VARCHAR, total_amount_purchased INTEGER); CREATE TABLE Product_Suppliers (product_id VARCHAR, total_amount_purchased INTEGER)
SELECT product_id FROM Order_Items GROUP BY product_id HAVING COUNT(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING SUM(total_amount_purchased) > 80000
Who was the home team when the venue was Junction Oval?
CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_82 WHERE venue = "junction oval"
What is every value of period when eccentricity is 0.583085?
CREATE TABLE table_206217_2 (period__h_ VARCHAR, eccentricity VARCHAR)
SELECT period__h_ FROM table_206217_2 WHERE eccentricity = "0.583085"
What club has more than 35 goals, more than 7 draws, and 20 losses?
CREATE TABLE table_name_38 (club VARCHAR, losses VARCHAR, goals_for VARCHAR, draws VARCHAR)
SELECT club FROM table_name_38 WHERE goals_for > 35 AND draws > 7 AND losses = 20
Which team has the # 64 pick?
CREATE TABLE table_name_13 (college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT college_junior_club_team FROM table_name_13 WHERE pick__number = "64"
What's the departed date that the HMS Leith of the Royal Navy?
CREATE TABLE table_name_51 (date_departed VARCHAR, navy VARCHAR, name VARCHAR)
SELECT date_departed FROM table_name_51 WHERE navy = "royal navy" AND name = "hms leith"
Find the last name of the student who has a cat that is age 3.
CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pet_age VARCHAR, pettype VARCHAR)
SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'
How many poles has a percentage of 22.08%?
CREATE TABLE table_name_57 (poles INTEGER, percentage VARCHAR)
SELECT SUM(poles) FROM table_name_57 WHERE percentage = "22.08%"
What was the conference record in the season where the Pandas had an overall record of 33-4-1?
CREATE TABLE table_27069503_2 (conf_record VARCHAR, overall VARCHAR)
SELECT conf_record FROM table_27069503_2 WHERE overall = "33-4-1"
List major versions released on May 12, 2009, that had a minor version of 3.2.3.
CREATE TABLE table_24257833_4 (major_version VARCHAR, release_date VARCHAR, minor_version VARCHAR)
SELECT major_version FROM table_24257833_4 WHERE release_date = "May 12, 2009" AND minor_version = "3.2.3"
What is team Yamaha with 3 points ranked?
CREATE TABLE table_name_8 (rank VARCHAR, team VARCHAR, points VARCHAR)
SELECT rank FROM table_name_8 WHERE team = "yamaha" AND points = 3
Who is the opponent with a time of 1:16?
CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_58 WHERE time = "1:16"
Which game took place on April 22?
CREATE TABLE table_name_8 (game VARCHAR, date VARCHAR)
SELECT game FROM table_name_8 WHERE date = "april 22"
What is the highest overall prior to 1996 with a slalom of 39?
CREATE TABLE table_name_33 (overall INTEGER, slalom VARCHAR, season VARCHAR)
SELECT MAX(overall) FROM table_name_33 WHERE slalom = "39" AND season < 1996
What was the competition in 2003?
CREATE TABLE table_name_43 (competition VARCHAR, year VARCHAR)
SELECT competition FROM table_name_43 WHERE year = 2003
Name the opened for spain
CREATE TABLE table_name_59 (opened VARCHAR, country VARCHAR)
SELECT opened FROM table_name_59 WHERE country = "spain"
What eliminated contestant has October 10, 2009 as the date premiered?
CREATE TABLE table_name_25 (eliminated_contestant VARCHAR, date_premiered__2009_ VARCHAR)
SELECT eliminated_contestant FROM table_name_25 WHERE date_premiered__2009_ = "october 10"
How many different types of beds are there?
CREATE TABLE Rooms (bedType VARCHAR)
SELECT COUNT(DISTINCT bedType) FROM Rooms
What is the smallest lane for rank 6?
CREATE TABLE table_name_64 (lane INTEGER, rank VARCHAR)
SELECT MIN(lane) FROM table_name_64 WHERE rank = 6
How many original air dates did the episode directed by Bethany rooney have?
CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT COUNT(original_air_date) FROM table_28859177_3 WHERE directed_by = "Bethany Rooney"
Name the chinese with subject of adjectives, adverbs, mostly with reduplication
CREATE TABLE table_name_50 (chinese VARCHAR, subject VARCHAR)
SELECT chinese FROM table_name_50 WHERE subject = "adjectives, adverbs, mostly with reduplication"
What's the score on December 12, 1998?
CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_11 WHERE date = "december 12, 1998"
What is the average overall that has a pick less than 20, North Carolina as the college, with a round less than 8?
CREATE TABLE table_name_69 (overall INTEGER, round VARCHAR, pick VARCHAR, college VARCHAR)
SELECT AVG(overall) FROM table_name_69 WHERE pick < 20 AND college = "north carolina" AND round < 8
Who was the outgoing manager of the team whose incoming manager was Dougie Freedman?
CREATE TABLE table_26593762_3 (outgoing_manager VARCHAR, incoming_manager VARCHAR)
SELECT outgoing_manager FROM table_26593762_3 WHERE incoming_manager = "Dougie Freedman"
What are the Runner(s)-up of the 1956 Championship?
CREATE TABLE table_name_52 (runner_s__up VARCHAR, year VARCHAR)
SELECT runner_s__up FROM table_name_52 WHERE year = "1956"
Where does the network Star Cricket originate?
CREATE TABLE table_name_25 (origin_of_programming VARCHAR, genre VARCHAR, network VARCHAR)
SELECT origin_of_programming FROM table_name_25 WHERE genre = "cricket" AND network = "star cricket"
What was the team #1 for the match that had a result of 0-3?
CREATE TABLE table_name_17 (team__number1 VARCHAR, res VARCHAR)
SELECT team__number1 FROM table_name_17 WHERE res = "0-3"
What area shows % Hindu of statistics from the bbc in depth report.?
CREATE TABLE table_name_71 (area VARCHAR, _percentage_hindu VARCHAR)
SELECT area FROM table_name_71 WHERE _percentage_hindu = "statistics from the bbc in depth report."
what is 1976 when 1980 is 2.0?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT 1976 FROM table_name_46 WHERE 1980 = "2.0"
Name who directed the air date of 12 july 2010
CREATE TABLE table_27218002_1 (directed_by VARCHAR, originalairdate VARCHAR)
SELECT directed_by FROM table_27218002_1 WHERE originalairdate = "12 July 2010"
How many clubs achieved the 5th position in 2012-13?
CREATE TABLE table_1908877_2 (top_division_titles VARCHAR, position_in_2012_13 VARCHAR)
SELECT COUNT(top_division_titles) FROM table_1908877_2 WHERE position_in_2012_13 = "5th"
Which week 2 had a week 3 of Cidney Carson?
CREATE TABLE table_name_74 (week_2 VARCHAR, week_3 VARCHAR)
SELECT week_2 FROM table_name_74 WHERE week_3 = "cidney carson"
Which Result has an Award of virgin media tv awards?
CREATE TABLE table_name_45 (result VARCHAR, award VARCHAR)
SELECT result FROM table_name_45 WHERE award = "virgin media tv awards"
Which week had safe as the result and Dolly Parton as the theme?
CREATE TABLE table_name_42 (week__number VARCHAR, result VARCHAR, theme VARCHAR)
SELECT week__number FROM table_name_42 WHERE result = "safe" AND theme = "dolly parton"
What teak was Brady Browne drafted onto?
CREATE TABLE table_16575609_5 (cfl_team VARCHAR, player VARCHAR)
SELECT cfl_team FROM table_16575609_5 WHERE player = "Brady Browne"
Show ids for all aircrafts with more than 1000 distance.
CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER)
SELECT aid FROM Aircraft WHERE distance > 1000
What's the total number of bronze medals for Sweden (SWE) having less than 1 gold and silver?
CREATE TABLE table_name_90 (bronze VARCHAR, silver VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT COUNT(bronze) FROM table_name_90 WHERE gold < 1 AND nation = "sweden (swe)" AND silver < 1
Who was the writer for the episode with production code 2395096?
CREATE TABLE table_10953197_4 (writer_s_ VARCHAR, production_code VARCHAR)
SELECT writer_s_ FROM table_10953197_4 WHERE production_code = "2395096"
What year did Naoki Tsukahara finish 3rd in the 200 m race?
CREATE TABLE table_name_4 (year VARCHAR, notes VARCHAR, position VARCHAR)
SELECT year FROM table_name_4 WHERE notes = "200 m" AND position = "3rd"
What regions of the USSR have a percentage of deportees of 10.6?
CREATE TABLE table_16048129_5 (region_of_ussr VARCHAR, _percentage_of_total_deportees VARCHAR)
SELECT region_of_ussr FROM table_16048129_5 WHERE _percentage_of_total_deportees = "10.6"
What is Astrid Gruber's email and phone number?
CREATE TABLE customers (email VARCHAR, phone VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT email, phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber"
What is the smallest area with 45 population?
CREATE TABLE table_name_72 (area__km_2__ INTEGER, population__2000_ VARCHAR)
SELECT MIN(area__km_2__) FROM table_name_72 WHERE population__2000_ = "45"
What 2nd Party has an Election of 1834?
CREATE TABLE table_name_11 (election VARCHAR)
SELECT 2 AS nd_party FROM table_name_11 WHERE election = "1834"
What shows for gold when the rank is less than 3, and silver less than 1?
CREATE TABLE table_name_62 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT SUM(gold) FROM table_name_62 WHERE rank < 3 AND silver < 1
Who is the manager of the St. Johnstone club?
CREATE TABLE table_name_53 (manager VARCHAR, club VARCHAR)
SELECT manager FROM table_name_53 WHERE club = "st. johnstone"
What's the location when the notes area is notes?
CREATE TABLE table_name_27 (location VARCHAR)
SELECT location FROM table_name_27 WHERE "notes" = "notes"
Which days of the week does the telenovela play that is aired at 11:00?
CREATE TABLE table_name_75 (weekly_schedule VARCHAR, timeslot VARCHAR)
SELECT weekly_schedule FROM table_name_75 WHERE timeslot = "11:00"
On how many locations is there a church named Askrova Bedehuskapell, built in 1957?
CREATE TABLE table_178381_1 (location_of_the_church VARCHAR, year_built VARCHAR, church_name VARCHAR)
SELECT COUNT(location_of_the_church) FROM table_178381_1 WHERE year_built = "1957" AND church_name = "Askrova bedehuskapell"
Name the least clubs involved for leagues being none for semi finals
CREATE TABLE table_19089486_1 (clubs_involved INTEGER, leagues_entering_this_round VARCHAR, round VARCHAR)
SELECT MIN(clubs_involved) FROM table_19089486_1 WHERE leagues_entering_this_round = "none" AND round = "Semi finals"
What type has the characters 廣丙?
CREATE TABLE table_name_25 (type VARCHAR, characters VARCHAR)
SELECT type FROM table_name_25 WHERE characters = "廣丙"
During what period did Dell Curry play for Toronto?
CREATE TABLE table_10015132_3 (years_in_toronto VARCHAR, player VARCHAR)
SELECT years_in_toronto FROM table_10015132_3 WHERE player = "Dell Curry"
What was the surface tye during the match with the opponent of richard fromberg?
CREATE TABLE table_name_3 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_3 WHERE opponent = "richard fromberg"
Tell me the format for worldwide region july 22, 2008
CREATE TABLE table_name_67 (format VARCHAR, region VARCHAR, date VARCHAR)
SELECT format FROM table_name_67 WHERE region = "worldwide" AND date = "july 22, 2008"
Which biggest interview score had an evening gown stat of 9.286?
CREATE TABLE table_name_56 (interview INTEGER, evening_gown VARCHAR)
SELECT MAX(interview) FROM table_name_56 WHERE evening_gown = 9.286
How many strongs transliteration of the english spelling of the work jehojakin?
CREATE TABLE table_1242447_1 (strongs_transliteration VARCHAR, english_spelling VARCHAR)
SELECT COUNT(strongs_transliteration) FROM table_1242447_1 WHERE english_spelling = "Jehojakin"
What is the position of the competition in Tampere, Finland?
CREATE TABLE table_name_62 (position VARCHAR, venue VARCHAR)
SELECT position FROM table_name_62 WHERE venue = "tampere, finland"
What is the to par for Gene Littler?
CREATE TABLE table_name_42 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_42 WHERE player = "gene littler"
How many production codes were in series 39?
CREATE TABLE table_2409041_3 (production_code VARCHAR, no_in_series VARCHAR)
SELECT COUNT(production_code) FROM table_2409041_3 WHERE no_in_series = 39
Who was the home team when real juventud was the away team when there were more than 1189 in attendance?
CREATE TABLE table_name_4 (home VARCHAR, attendance VARCHAR, away VARCHAR)
SELECT home FROM table_name_4 WHERE attendance > 1189 AND away = "real juventud"
how many episode have 8.4 millions viewer.
CREATE TABLE table_2112766_1 (episode VARCHAR, viewers__in_millions_ VARCHAR)
SELECT COUNT(episode) FROM table_2112766_1 WHERE viewers__in_millions_ = "8.4"
Which 1st Party has an election in 1865?
CREATE TABLE table_name_92 (election VARCHAR)
SELECT 1 AS st_party FROM table_name_92 WHERE election = "1865"
What is the type when the source is Realmadrid, and the name is Soldado?
CREATE TABLE table_name_6 (type VARCHAR, source VARCHAR, name VARCHAR)
SELECT type FROM table_name_6 WHERE source = "realmadrid" AND name = "soldado"
At what event did he fight takaharu murahama?
CREATE TABLE table_name_5 (event VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_5 WHERE opponent = "takaharu murahama"
What team is from terni?
CREATE TABLE table_name_59 (team VARCHAR, home_city VARCHAR)
SELECT team FROM table_name_59 WHERE home_city = "terni"
Name the scoring average for best finsih being t35
CREATE TABLE table_18198579_6 (scoring_average VARCHAR, best_finish VARCHAR)
SELECT scoring_average FROM table_18198579_6 WHERE best_finish = "T35"
Find the names of all the products whose stock number starts with "2".
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR, product_stock_number VARCHAR)
SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2%"
What user had a max demand charge of 1,100 and a unit/time range of h-2: off-peak (22:30-05:30)?
CREATE TABLE table_25479607_3 (user VARCHAR, max_demand_charge___rs__kva_ VARCHAR, unit__kwh__time_range VARCHAR)
SELECT user FROM table_25479607_3 WHERE max_demand_charge___rs__kva_ = "1,100" AND unit__kwh__time_range = "H-2: Off-peak (22:30-05:30)"
When Tujunga is moderate, what is La Crescenta-Montrose?
CREATE TABLE table_name_71 (la_crescenta__montrose VARCHAR, tujunga VARCHAR)
SELECT la_crescenta__montrose FROM table_name_71 WHERE tujunga = "moderate"