answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT life FROM table_name_93 WHERE name = "stefanie rabatsch"
What is the lifespan of Stefanie Rabatsch?
CREATE TABLE table_name_93 (life VARCHAR, name VARCHAR)
SELECT candidates FROM table_1341930_33 WHERE party = "Democratic" AND district = "North Carolina 1"
what's the candidates with party being democratic and dbeingtrict being north carolina 1
CREATE TABLE table_1341930_33 (candidates VARCHAR, party VARCHAR, district VARCHAR)
SELECT MIN(since) FROM table_name_76 WHERE transfer_fee = "€ 14m" AND ends > 2011
What is the lowest year in since that had a transfer fee of € 14m and ended after 2011?
CREATE TABLE table_name_76 (since INTEGER, transfer_fee VARCHAR, ends VARCHAR)
SELECT release_date FROM table_name_34 WHERE song_title = "if you talk in your sleep"
When was the song titled if you talk in your sleep released?
CREATE TABLE table_name_34 (release_date VARCHAR, song_title VARCHAR)
SELECT SUM(first_elected) FROM table_name_37 WHERE party = "republican" AND district = "kentucky 2"
In what year was the republican incumbent from Kentucky 2 district first elected?
CREATE TABLE table_name_37 (first_elected INTEGER, party VARCHAR, district VARCHAR)
SELECT MIN(laps) FROM table_name_39 WHERE time = "+24.440" AND grid > 18
What is the lowest number of Laps that have a Time of +24.440, and a Grid higher than 18?
CREATE TABLE table_name_39 (laps INTEGER, time VARCHAR, grid VARCHAR)
SELECT name, LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1
What are the name and location of the cinema with the largest capacity?
CREATE TABLE cinema (name VARCHAR, LOCATION VARCHAR, capacity VARCHAR)
SELECT 2007 FROM table_name_92 WHERE 2010 = "qf" AND 2012 = "w"
What in 2007 has a 2010 of qf, and a 2012 of w?
CREATE TABLE table_name_92 (Id VARCHAR)
SELECT yacht FROM table_25594271_2 WHERE loa__metres_ = "13.34"
What yacht had LOA Metres of 13.34?
CREATE TABLE table_25594271_2 (yacht VARCHAR, loa__metres_ VARCHAR)
SELECT MIN(gold) FROM table_name_65 WHERE nation = "denmark"
How many gold medals did Denmark win?
CREATE TABLE table_name_65 (gold INTEGER, nation VARCHAR)
SELECT term FROM table_name_22 WHERE district = "7" AND party = "democratic"
Which term had a Democratic representative from district 7?
CREATE TABLE table_name_22 (term VARCHAR, district VARCHAR, party VARCHAR)
SELECT COUNT(frequency) FROM table_21716139_1 WHERE destination = "Jaipur"
What is the number of frequencies that have a destination of Jaipur?
CREATE TABLE table_21716139_1 (frequency VARCHAR, destination VARCHAR)
SELECT COUNT(_number) FROM table_12919003_3 WHERE director = "Tom Hooper" AND viewers_millions_ = "8.08"
What's the total number of episodes both directed by Tom Hooper and viewed by 8.08 million viewers?
CREATE TABLE table_12919003_3 (_number VARCHAR, director VARCHAR, viewers_millions_ VARCHAR)
SELECT class FROM table_name_11 WHERE driver = "stanley dickens"
Which class had Stanley Dickens as a driver?
CREATE TABLE table_name_11 (class VARCHAR, driver VARCHAR)
SELECT doctor FROM table_1620397_5 WHERE series_sorted = "6EB/B"
What was the doctor for sorted series 6eb/b?
CREATE TABLE table_1620397_5 (doctor VARCHAR, series_sorted VARCHAR)
SELECT sprint_classification FROM table_25055040_22 WHERE mountains_classification = "Ryan Anderson" AND general_classification = "Michael Rogers"
When Ryan Anderson won the mountains classification, and Michael Rogers won the general classification, who won the sprint classification?
CREATE TABLE table_25055040_22 (sprint_classification VARCHAR, mountains_classification VARCHAR, general_classification VARCHAR)
SELECT COUNT(attendance) FROM table_name_20 WHERE score = "4-2"
What is the total attendance at games with a score of 4-2?
CREATE TABLE table_name_20 (attendance VARCHAR, score VARCHAR)
SELECT birth FROM table_name_65 WHERE became_duchess = "17 april 1711 husband's ascension"
Which Birth has a Became Duchess of 17 april 1711 husband's ascension?
CREATE TABLE table_name_65 (birth VARCHAR, became_duchess VARCHAR)
SELECT stu_fname, stu_gpa FROM student WHERE stu_gpa < (SELECT AVG(stu_gpa) FROM student)
Find the first name and gpa of the students whose gpa is lower than the average gpa of all students.
CREATE TABLE student (stu_fname VARCHAR, stu_gpa INTEGER)
SELECT score FROM table_name_33 WHERE visitor = "miami"
What is the score when Miami is the visitor?
CREATE TABLE table_name_33 (score VARCHAR, visitor VARCHAR)
SELECT AVG(clean_) & _jerk FROM table_name_10 WHERE snatch = 140 AND total__kg_ < 315
Name the average clean and jerk for snatch of 140 and total kg less than 315
CREATE TABLE table_name_10 (_jerk VARCHAR, clean_ INTEGER, snatch VARCHAR, total__kg_ VARCHAR)
SELECT home_team FROM table_name_60 WHERE score = "102-87"
What home team scored 102-87?
CREATE TABLE table_name_60 (home_team VARCHAR, score VARCHAR)
SELECT studio FROM table_name_71 WHERE rank < 3 AND director = "adrian lyne"
Which Studio has a Rank smaller than 3, and a Director of adrian lyne?
CREATE TABLE table_name_71 (studio VARCHAR, rank VARCHAR, director VARCHAR)
SELECT other FROM table_name_9 WHERE value = "1 000"
What is the Other transliteration for value 1 000?
CREATE TABLE table_name_9 (other VARCHAR, value VARCHAR)
SELECT _number_of_bids FROM table_name_98 WHERE conference = "atlantic 10"
How many bids does Atlantic 10 have?
CREATE TABLE table_name_98 (_number_of_bids VARCHAR, conference VARCHAR)
SELECT draw FROM table_name_95 WHERE performer = "nigel connell"
What draw did Nigel Connell?
CREATE TABLE table_name_95 (draw VARCHAR, performer VARCHAR)
SELECT date FROM table_name_15 WHERE location_attendance = "verizon center 7,448"
Which Date has a Location/Attendance of verizon center 7,448?
CREATE TABLE table_name_15 (date VARCHAR, location_attendance VARCHAR)
SELECT commercial_operation FROM table_name_27 WHERE construction_start = "june 10, 1971"
When was commercial operation where construction started June 10, 1971?
CREATE TABLE table_name_27 (commercial_operation VARCHAR, construction_start VARCHAR)
SELECT AVG(points) FROM table_name_67 WHERE played > 10
What was the average points for someone who has played more than 10?
CREATE TABLE table_name_67 (points INTEGER, played INTEGER)
SELECT MIN(code) FROM table_1404456_1 WHERE area__km_2__ = "12,245.9"
what is the minimum code with area (km 2 ) being 12,245.9
CREATE TABLE table_1404456_1 (code INTEGER, area__km_2__ VARCHAR)
SELECT channel FROM table_name_64 WHERE 2011 = "8.5"
What is the channel with a 2011 rating of 8.5?
CREATE TABLE table_name_64 (channel VARCHAR)
SELECT position FROM table_name_22 WHERE college = "toronto"
What position did the CFL player drafted out of college of toronto in 2007 play?
CREATE TABLE table_name_22 (position VARCHAR, college VARCHAR)
SELECT COUNT(game) FROM table_name_69 WHERE opponent = "los angeles kings" AND january > 5
What is the total number of games of the team against the Los Angeles Kings after January 5?
CREATE TABLE table_name_69 (game VARCHAR, opponent VARCHAR, january VARCHAR)
SELECT inhabitants FROM table_name_42 WHERE election = 2009 AND municipality = "cremona"
Which inhabitants have 2009 as the election, with cremona as the municipality?
CREATE TABLE table_name_42 (inhabitants VARCHAR, election VARCHAR, municipality VARCHAR)
SELECT third_place FROM table_23647668_2 WHERE season = 1980
Who was in third place in the 1980 season?
CREATE TABLE table_23647668_2 (third_place VARCHAR, season VARCHAR)
SELECT MIN(draws) FROM table_16034882_4 WHERE club = "Švyturys Klaipėda"
How many draws did švyturys Klaipėda have?
CREATE TABLE table_16034882_4 (draws INTEGER, club VARCHAR)
SELECT year FROM table_name_11 WHERE label = "cryptogramophon"
what year was cryptogramophon released
CREATE TABLE table_name_11 (year VARCHAR, label VARCHAR)
SELECT winners FROM table_name_92 WHERE season = 2010
Who is the winner in 2010?
CREATE TABLE table_name_92 (winners VARCHAR, season VARCHAR)
SELECT high_rebounds FROM table_17311759_8 WHERE game = 64
Who scored the most rebounds in game 64?
CREATE TABLE table_17311759_8 (high_rebounds VARCHAR, game VARCHAR)
SELECT record FROM table_name_51 WHERE february < 8 AND opponent = "montreal canadiens"
Which Record has a February smaller than 8, and an Opponent of montreal canadiens?
CREATE TABLE table_name_51 (record VARCHAR, february VARCHAR, opponent VARCHAR)
SELECT AVG(apps) FROM table_name_64 WHERE country = "indonesia" AND goals < 1000
What is the average Apps of indonesia with Goals smaller than 1000?
CREATE TABLE table_name_64 (apps INTEGER, country VARCHAR, goals VARCHAR)
SELECT population_density___km_2__ FROM table_24574438_1 WHERE ds_division = "Manthai West"
Name the popultion density being manthai west
CREATE TABLE table_24574438_1 (population_density___km_2__ VARCHAR, ds_division VARCHAR)
SELECT place FROM table_name_13 WHERE player = "bobby wadkins"
What place did bobby wadkins come in?
CREATE TABLE table_name_13 (place VARCHAR, player VARCHAR)
SELECT COUNT(*) FROM airlines
How many airlines are there?
CREATE TABLE airlines (Id VARCHAR)
SELECT date FROM table_name_31 WHERE total = "56–75"
What date was the total 56–75?
CREATE TABLE table_name_31 (date VARCHAR, total VARCHAR)
SELECT erp_w FROM table_name_50 WHERE class = "a" AND call_sign = "wffc"
Which ERP W has a Class of A, and a Call sign of wffc?
CREATE TABLE table_name_50 (erp_w VARCHAR, class VARCHAR, call_sign VARCHAR)
SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach'
How old is the doctor named Zach?
CREATE TABLE Person (age VARCHAR, job VARCHAR, name VARCHAR)
SELECT COUNT(_percentage_of_all_immigrants_2007) FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2005 = "1.2%"
How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?
CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2005 VARCHAR)
SELECT COUNT(pl_gp) FROM table_name_90 WHERE reg_gp = 0 AND rd__number > 8 AND pick__number > 146
What is the sum number of Pl GP when the Reg GP was 0, the Rd number was bigger than 8, and the pick number was bigger than 146?
CREATE TABLE table_name_90 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR, rd__number VARCHAR)
SELECT to_par FROM table_name_28 WHERE country = "australia" AND player = "peter senior"
What is the To Par of Peter Senior from Australia?
CREATE TABLE table_name_28 (to_par VARCHAR, country VARCHAR, player VARCHAR)
SELECT score FROM table_name_9 WHERE date = "20/6/97"
What was the score on 20/6/97?
CREATE TABLE table_name_9 (score VARCHAR, date VARCHAR)
SELECT SUM(wickets) FROM table_name_64 WHERE runs < 4600 AND matches < 44
What is the total number of wickets that have runs under 4600 and matches under 44?
CREATE TABLE table_name_64 (wickets INTEGER, runs VARCHAR, matches VARCHAR)
SELECT MAX(attendance) FROM table_name_83 WHERE home = "detroit"
What was the highest attendance at a Detroit home game?
CREATE TABLE table_name_83 (attendance INTEGER, home VARCHAR)
SELECT venue FROM table_name_20 WHERE competition = "european cross country championships" AND notes = "junior men individual 6.595km"
What venue hsoted the european cross country championships with a notes of junior men individual 6.595km?
CREATE TABLE table_name_20 (venue VARCHAR, competition VARCHAR, notes VARCHAR)
SELECT MIN(2007 AS __usd_) FROM table_24364690_1 WHERE federal_subjects = "Kabardino-Balkaria"
What is the minimum 2007 USD in Kabardino-Balkaria?
CREATE TABLE table_24364690_1 (federal_subjects VARCHAR)
SELECT COUNT(popular_votes) FROM table_name_74 WHERE office = "mn attorney general" AND year = 1994
Name the total number of popular votes for mn attorney general in 1994
CREATE TABLE table_name_74 (popular_votes VARCHAR, office VARCHAR, year VARCHAR)
SELECT average_attendance FROM stadium WHERE capacity_percentage > 100
What is the average attendance of stadiums with capacity percentage higher than 100%?
CREATE TABLE stadium (average_attendance VARCHAR, capacity_percentage INTEGER)
SELECT linke FROM table_name_99 WHERE state = "tyrol"
What percent did LINKE get in Tyrol?
CREATE TABLE table_name_99 (linke VARCHAR, state VARCHAR)
SELECT AVG(caps) FROM table_name_75 WHERE club_province = "meralomas" AND position = "centre"
What is the average number of caps for Meralomas with positions of centre?
CREATE TABLE table_name_75 (caps INTEGER, club_province VARCHAR, position VARCHAR)
SELECT COUNT(division) FROM table_1046071_1 WHERE open_cup = "1st Round"
What is the number of the division for the 1st round?
CREATE TABLE table_1046071_1 (division VARCHAR, open_cup VARCHAR)
SELECT position FROM table_name_69 WHERE player = "tayshaun prince"
What is the position of Tayshaun Prince?
CREATE TABLE table_name_69 (position VARCHAR, player VARCHAR)
SELECT charleston_southerns_head_coach FROM table_26240481_1 WHERE result = "L, 56-6"
Who is Charleston Southerns head coach where the result is L, 56-6?-
CREATE TABLE table_26240481_1 (charleston_southerns_head_coach VARCHAR, result VARCHAR)
SELECT irish_name FROM table_1682865_1 WHERE £1_fraction = "1/240"
What is the Irish name for the £1 fraction of 1/240?
CREATE TABLE table_1682865_1 (irish_name VARCHAR, £1_fraction VARCHAR)
SELECT comments FROM table_1206114_2 WHERE vendor_and_type = "Alcatel-Lucent routers"
What are the comments when the vendor and type is alcatel-lucent routers?
CREATE TABLE table_1206114_2 (comments VARCHAR, vendor_and_type VARCHAR)
SELECT rank_on_channel FROM table_24222929_4 WHERE title = "Mooning and Crooning"
Name the rank on channel mooning and crooning
CREATE TABLE table_24222929_4 (rank_on_channel VARCHAR, title VARCHAR)
SELECT current_marital_status FROM table_24143253_2 WHERE name = "Stella Farentino"
What is Stella Farentino's current relationship status?
CREATE TABLE table_24143253_2 (current_marital_status VARCHAR, name VARCHAR)
SELECT surface FROM table_name_56 WHERE date = 1981
What was the surface in 1981?
CREATE TABLE table_name_56 (surface VARCHAR, date VARCHAR)
SELECT source FROM table_21535453_1 WHERE brian_moran = "19%"
What source showed Brian Moran at 19%?
CREATE TABLE table_21535453_1 (source VARCHAR, brian_moran VARCHAR)
SELECT location FROM table_name_65 WHERE method = "tko (punches)" AND time = "2:48"
what is the location when the method is tko (punches) and the time is 2:48?
CREATE TABLE table_name_65 (location VARCHAR, method VARCHAR, time VARCHAR)
SELECT 2012 FROM table_name_22 WHERE 2009 = "205"
What's the 2012 when 2009 was 205?
CREATE TABLE table_name_22 (Id 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 date FROM table_name_85 WHERE visitor = "st. louis"
What day was St. Louis the visitor?
CREATE TABLE table_name_85 (date VARCHAR, visitor VARCHAR)
SELECT rounds FROM table_name_74 WHERE constructor = "gordini"
What rounds did Gordini participate in?
CREATE TABLE table_name_74 (rounds VARCHAR, constructor VARCHAR)
SELECT COUNT(ties) FROM table_name_3 WHERE win__percentage > 0 AND tenure = "2001-2011" AND lost > 16
I want the total number of ties for win % more than 0 and tenure of 2001-2011 with lost more than 16
CREATE TABLE table_name_3 (ties VARCHAR, lost VARCHAR, win__percentage VARCHAR, tenure VARCHAR)
SELECT time FROM table_name_7 WHERE laps < 18 AND grid > 8 AND rider = "loic napoleone"
What is the time of rider Loic Napoleone, who had less than 18 laps and a grid greater than 8?
CREATE TABLE table_name_7 (time VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT date FROM table_name_11 WHERE opponents = "scottish football league xi" AND score = "1-5"
When were scottish football league xi the opponents with a score of 1-5?
CREATE TABLE table_name_11 (date VARCHAR, opponents VARCHAR, score VARCHAR)
SELECT stadium FROM table_name_74 WHERE bowl_game = "fiesta bowl"
What stadium was the Fiesta Bowl played at?
CREATE TABLE table_name_74 (stadium VARCHAR, bowl_game VARCHAR)
SELECT district FROM table_name_31 WHERE college_or_campus_name = "anna university college of engineering kanchipuram"
What District has a College or Campus Name of anna university college of engineering kanchipuram?
CREATE TABLE table_name_31 (district VARCHAR, college_or_campus_name VARCHAR)
SELECT COUNT(population) FROM table_name_92 WHERE number_of_households = 41 OFFSET 511
What is the population with 41,511 households?
CREATE TABLE table_name_92 (population VARCHAR, number_of_households VARCHAR)
SELECT MIN(game) FROM table_name_47 WHERE time = "2:06" AND attendance < 27 OFFSET 374
Which week was the first game played that had a time of 2:06 and less than 27,374 attendees?
CREATE TABLE table_name_47 (game INTEGER, time VARCHAR, attendance VARCHAR)
SELECT AVG(round) FROM table_name_18 WHERE opponent = "klas akesson"
What is the average round against opponent Klas Akesson?
CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR)
SELECT event FROM table_name_5 WHERE opponent = "takaharu murahama"
At what event did he fight takaharu murahama?
CREATE TABLE table_name_5 (event VARCHAR, opponent VARCHAR)
SELECT MIN(seats) FROM table_name_55 WHERE share_of_votes = "27.0%"
What is the lowest number of seats from the election with 27.0% of votes?
CREATE TABLE table_name_55 (seats INTEGER, share_of_votes VARCHAR)
SELECT place FROM table_name_41 WHERE language = "croatian"
Where is Croatian spoken?
CREATE TABLE table_name_41 (place VARCHAR, language VARCHAR)
SELECT prime_mover FROM table_name_87 WHERE build_date = "1975"
What is the prime mover for a build date in 1975?
CREATE TABLE table_name_87 (prime_mover VARCHAR, build_date VARCHAR)
SELECT gecko FROM table_name_6 WHERE prince_xml = "yes" AND khtml = "yes"
What is the Gecko value for the item that has a Prince XML value of 'no' and a KHTML value of 'yes'?
CREATE TABLE table_name_6 (gecko VARCHAR, prince_xml VARCHAR, khtml VARCHAR)
SELECT location FROM table_22862203_2 WHERE record = "9-1"
Where were games played when the record was 9-1?
CREATE TABLE table_22862203_2 (location VARCHAR, record VARCHAR)
SELECT MAX(number_at_pyewipe) FROM table_15608800_2
Name the most number of pyewipe
CREATE TABLE table_15608800_2 (number_at_pyewipe INTEGER)
SELECT visitor FROM table_name_14 WHERE date = "may 9"
Who is the visitor on May 9?
CREATE TABLE table_name_14 (visitor VARCHAR, date VARCHAR)
SELECT playing_for FROM table_name_95 WHERE opponent = "deportes savio" AND date = "2010-03-11"
who is playing for when the opponent is deportes savio and the date is 2010-03-11?
CREATE TABLE table_name_95 (playing_for VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT MAX(rank) FROM table_name_89 WHERE time = 53.33
With a time of 53.33, who ranked the highest?
CREATE TABLE table_name_89 (rank INTEGER, time VARCHAR)
SELECT country FROM table_name_76 WHERE score = 70 - 71 - 72 = 213
Which country has a score of 70-71-72=213?
CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR)
SELECT result FROM table_24561550_1 WHERE record = "3-3"
List all results from the 3-3 scoring game.
CREATE TABLE table_24561550_1 (result VARCHAR, record VARCHAR)
SELECT pilot FROM table_name_48 WHERE weapon = "35mm fire" AND date = "4 may 1982"
What is Pilot, when Weapon is "35mm fire", and when Date is "4 May 1982"?
CREATE TABLE table_name_48 (pilot VARCHAR, weapon VARCHAR, date VARCHAR)
SELECT COUNT(total_goals) FROM table_name_27 WHERE league_cup_goals < 0
How many Total Goals values have 0 League Cup Goals?
CREATE TABLE table_name_27 (total_goals VARCHAR, league_cup_goals INTEGER)
SELECT location FROM table_name_27 WHERE "notes" = "notes"
What's the location when the notes area is notes?
CREATE TABLE table_name_27 (location VARCHAR)
SELECT position FROM table_name_31 WHERE pick > 28
Which position has a pick greater than 28?
CREATE TABLE table_name_31 (position VARCHAR, pick INTEGER)
SELECT MAX(points__pts_) FROM table_name_53 WHERE team__equipo_ = "orion" AND lost__pp_ > 4
What is the largest number of points for Orion with more than 4 losses?
CREATE TABLE table_name_53 (points__pts_ INTEGER, team__equipo_ VARCHAR, lost__pp_ VARCHAR)
SELECT date FROM table_name_81 WHERE away_team = "footscray"
On what date the footscray's away game?
CREATE TABLE table_name_81 (date VARCHAR, away_team VARCHAR)
SELECT role FROM table_name_99 WHERE title = "alvin and the chipmunks meet frankenstein"
When alvin and the chipmunks meet frankenstein, what was the role?
CREATE TABLE table_name_99 (role VARCHAR, title VARCHAR)