question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
Who drives the abc supply sponsored cor?
create table table_2503102_2 (driver_s_ varchar, primary_sponsor varchar, PRIMARY KEY (driver_s_))
select driver_s_ from table_2503102_2 where primary_sponsor = "abc supply"
When 17,874 (33.2) is the percentage against what is the percentage for?
create table table_20683381_3 (for___percentage_ varchar, against___percentage_ varchar, PRIMARY KEY (for___percentage_))
select for___percentage_ from table_20683381_3 where against___percentage_ = "17,874 (33.2)"
How many draft copies does the document with id 2 have?
create table draft_copies (document_id varchar, PRIMARY KEY (document_id))
select count(*) from draft_copies where document_id = 2
What State/Country is Sean Langman the skipper?
create table table_25594888_1 (state_country varchar, skipper varchar, PRIMARY KEY (state_country))
select state_country from table_25594888_1 where skipper = "sean langman"
Who is the director of the original title perl oder pica?
create table table_22073745_1 (director varchar, original_title varchar, PRIMARY KEY (director))
select director from table_22073745_1 where original_title = "perl oder pica"
Name the number of stations for 15 minutes travel time
create table table_2385460_1 (stations varchar, travel_time varchar, PRIMARY KEY (stations))
select count(stations) from table_2385460_1 where travel_time = "15 minutes"
Who replaced the previous manager of Altay?
create table table_27091128_2 (replaced_by varchar, team varchar, PRIMARY KEY (replaced_by))
select replaced_by from table_27091128_2 where team = "altay"
What is the November 3 result when June 10-11 is 147?
create table table_25284864_3 (november_3 varchar, june_10_11 varchar, PRIMARY KEY (november_3))
select november_3 from table_25284864_3 where june_10_11 = "147"
What is the original airdate of the episode that had 8.23 million viewers?
create table table_26139378_1 (original_airdate varchar, viewers__in_millions_ varchar, PRIMARY KEY (original_airdate))
select original_airdate from table_26139378_1 where viewers__in_millions_ = "8.23"
Show all information about each body builder.
create table body_builder (id varchar, PRIMARY KEY (id))
select * from body_builder
What is every English translation when Tamil months is Mārkazhi, Tai?
create table table_1740431_3 (english_translation varchar, tamil_months varchar, PRIMARY KEY (english_translation))
select english_translation from table_1740431_3 where tamil_months = "mārkazhi, tai"
What was the record when the timberwolves were played?
create table table_23285849_7 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_23285849_7 where team = "timberwolves"
What year did Karl Schnabl win the Winter Olympics?
create table table_174491_2 (winter_olympics varchar, winner varchar, PRIMARY KEY (winter_olympics))
select winter_olympics from table_174491_2 where winner = "karl schnabl"
What was the theme when the original artist was The Beatles?
create table table_15796072_1 (theme varchar, original_artist varchar, PRIMARY KEY (theme))
select theme from table_15796072_1 where original_artist = "the beatles"
What is the type of video game Call of Destiny.
create table video_games (gtype varchar, gname varchar, PRIMARY KEY (gtype))
select gtype from video_games where gname = "call of destiny"
What is the measure where the yes% is 44.06%?
create table table_256286_39 (description varchar, _percentage_yes varchar, PRIMARY KEY (description))
select description from table_256286_39 where _percentage_yes = "44.06%"
which is the new pageant from spain?
create table table_14308895_2 (new_pageant varchar, country_territory varchar, PRIMARY KEY (new_pageant))
select new_pageant from table_14308895_2 where country_territory = "spain"
What was the little league team from Michigan when the little league team from Indiana was Terre Haute North LL Terre Haute?
create table table_18461045_1 (michigan varchar, indiana varchar, PRIMARY KEY (michigan))
select michigan from table_18461045_1 where indiana = "terre haute north ll terre haute"
What is the record after the Phoenix game?
create table table_27723526_13 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_27723526_13 where team = "phoenix"
What's the description of the buttonholer whose singer part number is 121795 kit 121908 buttonholer?
create table table_28652521_1 (description varchar, singer_part_number varchar, PRIMARY KEY (description))
select description from table_28652521_1 where singer_part_number = "121795 kit 121908 buttonholer"
How many million U.S. viewers watched the episode that Daniel H. Forer directed?
create table table_24223834_3 (us_viewers__in_millions_ varchar, directed_by varchar, PRIMARY KEY (us_viewers__in_millions_))
select us_viewers__in_millions_ from table_24223834_3 where directed_by = "daniel h. forer"
What is the resale category for the provider NetCologne?
create table table_1773908_3 (resale varchar, provider varchar, PRIMARY KEY (resale))
select resale from table_1773908_3 where provider = "netcologne"
Find names of the document without any images.
create table document_sections_images (section_id varchar, PRIMARY KEY (section_id)); create table documents (document_name varchar, PRIMARY KEY (document_name)); create table documents (document_name varchar, document_code varchar, PRIMARY KEY (document_name)); create table document_sections (document_code varchar, section_id varchar, PRIMARY KEY (document_code))
select document_name from documents except select t1.document_name from documents as t1 join document_sections as t2 on t1.document_code = t2.document_code join document_sections_images as t3 on t2.section_id = t3.section_id
Which advisor has most number of students?
create table student (advisor varchar, PRIMARY KEY (advisor))
select advisor from student group by advisor order by count(*) desc limit 1
What is the confederation when there are 4 places remaining in the finals?
create table table_23995075_2 (confederation varchar, remaining_places_in_finals varchar, PRIMARY KEY (confederation))
select confederation from table_23995075_2 where remaining_places_in_finals = "4"
Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both?
create table table_104858_1 (admits_boys_girls varchar, year_member_organization_was_founded varchar, name_of_member_organization varchar, PRIMARY KEY (admits_boys_girls))
select admits_boys_girls from table_104858_1 where year_member_organization_was_founded = "1912" and name_of_member_organization = "the ghana scout association"
Find the names of states that have some college students playing in goalie and mid positions.
create table tryout (cname varchar, ppos varchar, PRIMARY KEY (cname)); create table college (state varchar, cname varchar, PRIMARY KEY (state))
select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'goalie' intersect select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'mid'
What is the name of the episode written by glen mazzara?
create table table_30030477_1 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_30030477_1 where written_by = "glen mazzara"
Where's the school that Mark Fletcher is the principal of?
create table table_1984697_53 (city___town varchar, principal varchar, PRIMARY KEY (city___town))
select city___town from table_1984697_53 where principal = "mark fletcher"
who was the winner for souderton, pa?
create table table_27887723_1 (winner varchar, location varchar, PRIMARY KEY (winner))
select winner from table_27887723_1 where location = "souderton, pa"
Which party does the incumbent Mathias Morris belong to?
create table table_2668169_2 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_2668169_2 where incumbent = "mathias morris"
Who won when V. A. Muthiah was the runner-up?
create table table_22756549_1 (winner varchar, runner_up_a varchar, PRIMARY KEY (winner))
select winner from table_22756549_1 where runner_up_a = "v. a. muthiah"
Name the location of the church for berle kyrkje
create table table_178408_1 (location_of_the_church varchar, church_name varchar, PRIMARY KEY (location_of_the_church))
select location_of_the_church from table_178408_1 where church_name = "berle kyrkje"
How many drivers did Bob Gerard Racing have?
create table table_21977627_1 (driver varchar, entrant varchar, PRIMARY KEY (driver))
select count(driver) from table_21977627_1 where entrant = "bob gerard racing"
How many regions have 0.5% solar panels?
create table table_25042332_26 (public_network varchar, solar_panel varchar, PRIMARY KEY (public_network))
select count(public_network) from table_25042332_26 where solar_panel = "0.5%"
How many womens singles winners were there when peter rasmussen won the mens singles?
create table table_12027364_1 (womens_singles varchar, mens_singles varchar, PRIMARY KEY (womens_singles))
select count(womens_singles) from table_12027364_1 where mens_singles = "peter rasmussen"
How many towns or cities are at milepost 71.1?
create table table_2572788_1 (town_city varchar, milepost varchar, PRIMARY KEY (town_city))
select count(town_city) from table_2572788_1 where milepost = "71.1"
Name the successor for vacant and december 3, 1862
create table table_2417330_4 (successor varchar, reason_for_change varchar, date_successor_seated varchar, PRIMARY KEY (successor))
select successor from table_2417330_4 where reason_for_change = "vacant" and date_successor_seated = "december 3, 1862"
How many players came from Los Angeles?
create table table_24055352_1 (name varchar, hometown varchar, PRIMARY KEY (name))
select count(name) from table_24055352_1 where hometown = "los angeles"
Which party had Clair Engle as an incumbent?
create table table_1342149_6 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1342149_6 where incumbent = "clair engle"
How many millions of viewers watched the episode directed by Anthony Hemingway?
create table table_11230937_2 (us_viewers__millions_ varchar, directed_by varchar, PRIMARY KEY (us_viewers__millions_))
select us_viewers__millions_ from table_11230937_2 where directed_by = "anthony hemingway"
what's the lowest point with highest point being mount greylock
create table table_1416612_1 (lowest_point varchar, highest_point varchar, PRIMARY KEY (lowest_point))
select lowest_point from table_1416612_1 where highest_point = "mount greylock"
What was the major version when the webkit version was 528.17?
create table table_24257833_4 (major_version varchar, webkit_version varchar, PRIMARY KEY (major_version))
select major_version from table_24257833_4 where webkit_version = "528.17"
How many assists per game have 4.2 rebounds per game?
create table table_2387461_1 (assists_per_game varchar, rebounds_per_game varchar, PRIMARY KEY (assists_per_game))
select assists_per_game from table_2387461_1 where rebounds_per_game = "4.2"
When was the park demolished in 1994 closed?
create table table_1987995_5 (closed integer, demod varchar, PRIMARY KEY (closed))
select min(closed) from table_1987995_5 where demod = 1994
How many teams have channing frye, jason richardson (8) as high rebounds?
create table table_23285761_11 (team varchar, high_rebounds varchar, PRIMARY KEY (team))
select count(team) from table_23285761_11 where high_rebounds = "channing frye, jason richardson (8)"
what is the total number of rank where viewers is 9.38?
create table table_15681686_4 (rank__timeslot_ varchar, viewers__millions_ varchar, PRIMARY KEY (rank__timeslot_))
select count(rank__timeslot_) from table_15681686_4 where viewers__millions_ = "9.38"
Which college/junior/club teams nationality is canada and nhl team is minnesota north stars
create table table_1213511_7 (college_junior_club_team varchar, nationality varchar, nhl_team varchar, PRIMARY KEY (college_junior_club_team))
select college_junior_club_team from table_1213511_7 where nationality = "canada" and nhl_team = "minnesota north stars"
how many bosnian in cook islands is sri lankan
create table table_24807774_1 (bosnian varchar, cook_islands varchar, PRIMARY KEY (bosnian))
select bosnian from table_24807774_1 where cook_islands = "sri lankan"
If the place is hemkunt sahib what is the category?
create table table_1430913_1 (category varchar, name_of_place varchar, PRIMARY KEY (category))
select category from table_1430913_1 where name_of_place = "hemkunt sahib"
What episode number had US viewership of 4.87 million?
create table table_27905664_1 (№ varchar, us_viewers__million_ varchar, PRIMARY KEY (№))
select № from table_27905664_1 where us_viewers__million_ = "4.87"
What is the pinyin for explaining music?
create table table_1216675_1 (pinyin varchar, translation varchar, PRIMARY KEY (pinyin))
select pinyin from table_1216675_1 where translation = "explaining music"
What was the preliminary average for the one who had a semifinal average of 8.966 (3)?
create table table_16323766_3 (preliminary_average varchar, semifinal_average varchar, PRIMARY KEY (preliminary_average))
select preliminary_average from table_16323766_3 where semifinal_average = "8.966 (3)"
Who was the incumbent when the candidate was william drayton (j)?
create table table_2668254_22 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent))
select incumbent from table_2668254_22 where candidates = "william drayton (j)"
How many legs has the player with high checkout of 80 won?
create table table_20351295_2 (legs_won varchar, high_checkout varchar, PRIMARY KEY (legs_won))
select legs_won from table_20351295_2 where high_checkout = 80
How many average attendance has a capacity percentage of 96.5%
create table table_28884858_1 (average_attendance varchar, capacity_percentage varchar, PRIMARY KEY (average_attendance))
select count(average_attendance) from table_28884858_1 where capacity_percentage = "96.5%"
Which flag was on the Green Marine's boat?
create table table_19872699_1 (flag varchar, builder varchar, PRIMARY KEY (flag))
select flag from table_19872699_1 where builder = "green marine"
What is the hanja for the province of "sangju"?
create table table_160510_1 (hanja varchar, province varchar, PRIMARY KEY (hanja))
select hanja from table_160510_1 where province = "sangju"
Name the most 10 3 bbl/d (2008) for present share being 1.7%
create table table_23195_5 (present_share varchar, PRIMARY KEY (present_share))
select max(10 as _3_bbl_d__2008_) from table_23195_5 where present_share = "1.7%"
List all the themes designed by Isabelle Toussaint.
create table table_11900773_6 (theme varchar, design varchar, PRIMARY KEY (theme))
select theme from table_11900773_6 where design = "isabelle toussaint"
Name the number of vocalists for which one ~ is it?
create table table_2144389_8 (vocalist varchar, japanese_translation varchar, PRIMARY KEY (vocalist))
select count(vocalist) from table_2144389_8 where japanese_translation = "which one ~ is it?"
How many locations featured the Webb Family?
create table table_19897294_11 (location_s_ varchar, family_families varchar, PRIMARY KEY (location_s_))
select count(location_s_) from table_19897294_11 where family_families = "the webb family"
What was the record after the game in which the Hurricanes scored 24 points?
create table table_20928682_1 (record varchar, hurricanes_points varchar, PRIMARY KEY (record))
select record from table_20928682_1 where hurricanes_points = 24
Name the cfl team for saskatchewan
create table table_25017530_6 (cfl_team varchar, college varchar, PRIMARY KEY (cfl_team))
select cfl_team from table_25017530_6 where college = "saskatchewan"
Name the segment a for s duvet
create table table_15187735_10 (segment_a varchar, segment_c varchar, PRIMARY KEY (segment_a))
select segment_a from table_15187735_10 where segment_c = "s duvet"
What years were the Iowa State school/club team have a jazz club?
create table table_11545282_19 (years_for_jazz varchar, school_club_team varchar, PRIMARY KEY (years_for_jazz))
select years_for_jazz from table_11545282_19 where school_club_team = "iowa state"
What is the sexual abuse rate where the conflict is the Second Sudanese Civil War?
create table table_15652027_1 (sexual_abuse_1 integer, conflict varchar, PRIMARY KEY (sexual_abuse_1))
select min(sexual_abuse_1) from table_15652027_1 where conflict = "second sudanese civil war"
List all department names ordered by their starting date.
create table department (dname varchar, mgr_start_date varchar, PRIMARY KEY (dname))
select dname from department order by mgr_start_date
List the name of all tracks in the playlists of Movies.
create table playlists (id varchar, name varchar, PRIMARY KEY (id)); create table playlist_tracks (track_id varchar, playlist_id varchar, PRIMARY KEY (track_id)); create table tracks (name varchar, id varchar, PRIMARY KEY (name))
select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t3.id = t2.playlist_id where t3.name = "movies"
What was the original U.S. air date of the episode directed by Julian Petrillo?
create table table_25246990_5 (original_us_air_date varchar, directed_by varchar, PRIMARY KEY (original_us_air_date))
select original_us_air_date from table_25246990_5 where directed_by = "julian petrillo"
What is the rank for Murphy Oil?
create table table_21926985_2 (state_rank_by_revenue varchar, company_name varchar, PRIMARY KEY (state_rank_by_revenue))
select state_rank_by_revenue from table_21926985_2 where company_name = "murphy oil"
Which country is the player that went to Georgetown from?
create table table_10015132_21 (nationality varchar, school_club_team varchar, PRIMARY KEY (nationality))
select nationality from table_10015132_21 where school_club_team = "georgetown"
What are the highest point in latvia
create table table_24285393_1 (highest_point varchar, country_or_region varchar, PRIMARY KEY (highest_point))
select highest_point from table_24285393_1 where country_or_region = "latvia"
What is the trans 2 duration if the total time is 1:51:19.45?
create table table_17085947_32 (trans_2 varchar, total_time varchar, PRIMARY KEY (trans_2))
select trans_2 from table_17085947_32 where total_time = "1:51:19.45"
Show each author and the number of workshops they submitted to.
create table submission (author varchar, submission_id varchar, PRIMARY KEY (author)); create table acceptance (workshop_id varchar, submission_id varchar, PRIMARY KEY (workshop_id))
select t2.author, count(distinct t1.workshop_id) from acceptance as t1 join submission as t2 on t1.submission_id = t2.submission_id group by t2.author
A what time was the title aired in October 22, 2009
create table table_26826304_2 (timeslot varchar, air_date varchar, PRIMARY KEY (timeslot))
select timeslot from table_26826304_2 where air_date = "october 22, 2009"
Who were the quarter-finalists in the event where the champion was Terry Moor 3-6, 7-6, 6-2?
create table table_29295463_9 (quarterfinalists varchar, champion varchar, PRIMARY KEY (quarterfinalists))
select quarterfinalists from table_29295463_9 where champion = "terry moor 3-6, 7-6, 6-2"
What is the annual inflation % when GDP per capita in ppp US$ is 24505 in 2012?
create table table_1598533_8 (inflation__percentage_annual__2012_ varchar, gdp_per_capita_in_ppp_us$__2012_ varchar, PRIMARY KEY (inflation__percentage_annual__2012_))
select inflation__percentage_annual__2012_ from table_1598533_8 where gdp_per_capita_in_ppp_us$__2012_ = 24505
What percentages of social democratic correspond to a 5.5% left bloc?
create table table_1463383_1 (social_democratic varchar, left_bloc varchar, PRIMARY KEY (social_democratic))
select social_democratic from table_1463383_1 where left_bloc = "5.5%"
Name the men doubles for caroline persyn smids
create table table_14903355_2 (men_doubles varchar, womens_doubles varchar, PRIMARY KEY (men_doubles))
select men_doubles from table_14903355_2 where womens_doubles = "caroline persyn smids"
List the type of bed and name of all traditional rooms.
create table rooms (roomname varchar, bedtype varchar, decor varchar, PRIMARY KEY (roomname))
select roomname, bedtype from rooms where decor = "traditional"
What is the club when the shirt sponsor is e-lotto.be?
create table table_27374004_2 (club varchar, shirt_sponsor varchar, PRIMARY KEY (club))
select club from table_27374004_2 where shirt_sponsor = "e-lotto.be"
What is the original air date for the episode directed by Peter Woeste?
create table table_15431251_1 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_15431251_1 where directed_by = "peter woeste"
What are the names of artists who are Male and are from UK?
create table artist (artist_name varchar, country varchar, gender varchar, PRIMARY KEY (artist_name))
select artist_name from artist where country = "uk" and gender = "male"
What is every CFL team from the Calgary college?
create table table_28059992_1 (cfl_team varchar, college varchar, PRIMARY KEY (cfl_team))
select cfl_team from table_28059992_1 where college = "calgary"
Name the location for yellow jackets
create table table_28253870_1 (location varchar, team_nickname varchar, PRIMARY KEY (location))
select location from table_28253870_1 where team_nickname = "yellow jackets"
How many times is the accession number xp_001843282?
create table table_26708105_5 (common_name varchar, accession_number varchar, PRIMARY KEY (common_name))
select count(common_name) from table_26708105_5 where accession_number = "xp_001843282"
Please show the police forces and the number of counties with each police force.
create table county_public_safety (police_force varchar, PRIMARY KEY (police_force))
select police_force, count(*) from county_public_safety group by police_force
Name the number of stacks for 1 & 2 235 mw 3 & 4 88.2 mw
create table table_23958917_1 (stacks varchar, unit_capacity__2009_ varchar, PRIMARY KEY (stacks))
select count(stacks) from table_23958917_1 where unit_capacity__2009_ = "1 & 2 235 mw 3 & 4 88.2 mw"
What was the margin of victory of Steve Stricker as a runner up?
create table table_19630743_2 (margin_of_victory varchar, runner_s__up varchar, PRIMARY KEY (margin_of_victory))
select margin_of_victory from table_19630743_2 where runner_s__up = "steve stricker"
What is the name of the high schooler who has the greatest number of likes?
create table likes (student_id varchar, PRIMARY KEY (student_id)); create table highschooler (name varchar, id varchar, PRIMARY KEY (name))
select t2.name from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id order by count(*) desc limit 1
Who came in second place when the champion was south dakota school of mines & technology?
create table table_2331549_1 (second_place varchar, champion varchar, PRIMARY KEY (second_place))
select second_place from table_2331549_1 where champion = "south dakota school of mines & technology"
what's the election date where member is william richmond category:articles with hcards
create table table_1193568_1 (election_date varchar, member varchar, PRIMARY KEY (election_date))
select election_date from table_1193568_1 where member = "william richmond category:articles with hcards"
What is the up/down at the venue that hosted 7 games?
create table table_1161065_28 (up_down varchar, hosted varchar, PRIMARY KEY (up_down))
select up_down from table_1161065_28 where hosted = 7
How many staff does each project has? List the project id and the number in an ascending order.
create table project_staff (project_id varchar, PRIMARY KEY (project_id)); create table projects (project_id varchar, PRIMARY KEY (project_id))
select t1.project_id, count(*) from project_staff as t1 join projects as t2 on t1.project_id = t2.project_id group by t1.project_id order by count(*)
who is the reference when romaji title is heartbreak sniper?
create table table_10979230_5 (reference varchar, romaji_title varchar, PRIMARY KEY (reference))
select reference from table_10979230_5 where romaji_title = "heartbreak sniper"
Does Venezuela admit only boys, only girls, or both?
create table table_104858_1 (admits_boys_girls varchar, country varchar, PRIMARY KEY (admits_boys_girls))
select admits_boys_girls from table_104858_1 where country = "venezuela"
what are the previous performance details for games involving the montreal canadiens?
create table table_23308178_7 (record varchar, opponent varchar, PRIMARY KEY (record))
select record from table_23308178_7 where opponent = "montreal canadiens"
Where did the team finish in the season when the playoff result was divisional finals.
create table table_1427998_1 (regular_season varchar, playoffs varchar, PRIMARY KEY (regular_season))
select regular_season from table_1427998_1 where playoffs = "divisional finals"
Of which part does congressman dick clark belong to?
create table table_24415627_2 (party varchar, senator varchar, PRIMARY KEY (party))
select party from table_24415627_2 where senator = "dick clark"