question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What Film Festival had participants/recipients of Isao Tomita?
create table table_26282750_1 (film_festival varchar, participants_recipients varchar, PRIMARY KEY (film_festival))
select film_festival from table_26282750_1 where participants_recipients = "isao tomita"
Find the name of the organization that has published the largest number of papers.
create table inst (name varchar, instid varchar, PRIMARY KEY (name)); create table authorship (instid varchar, paperid varchar, PRIMARY KEY (instid)); create table papers (paperid varchar, PRIMARY KEY (paperid))
select t1.name from inst as t1 join authorship as t2 on t1.instid = t2.instid join papers as t3 on t2.paperid = t3.paperid group by t1.name order by count(*) desc limit 1
Which post had the horse named chocolate candy?
create table table_22517564_3 (post varchar, horse_name varchar, PRIMARY KEY (post))
select post from table_22517564_3 where horse_name = "chocolate candy"
How many schools have the team nickname bobcats?
create table table_16384648_2 (institution varchar, team_nickname varchar, PRIMARY KEY (institution))
select count(institution) from table_16384648_2 where team_nickname = "bobcats"
When platense is the home (2nd leg) what is the 2nd leg?
create table table_14219514_2 (home__2nd_leg_ varchar, PRIMARY KEY (home__2nd_leg_))
select 2 as nd_leg from table_14219514_2 where home__2nd_leg_ = "platense"
What is the maximum renewable energy (gw×h) for the state of Delaware?
create table table_25244412_1 (renewable_electricity__gw integer, state varchar, PRIMARY KEY (renewable_electricity__gw))
select max(renewable_electricity__gw) as •h_ from table_25244412_1 where state = "delaware"
What is the last name of the staff who has handled the first ever complaint?
create table staff (last_name varchar, staff_id varchar, PRIMARY KEY (last_name)); create table complaints (staff_id varchar, date_complaint_raised varchar, PRIMARY KEY (staff_id))
select t1.last_name from staff as t1 join complaints as t2 on t1.staff_id = t2.staff_id order by t2.date_complaint_raised limit 1
When paul moor is on the europe team who is on the usa team?
create table table_19072602_5 (team_usa varchar, team_europe varchar, PRIMARY KEY (team_usa))
select team_usa from table_19072602_5 where team_europe = "paul moor"
When saif saaeed shaheen (qat) is the saif saaeed shaheen ( qat ) what is the world record?
create table table_23988726_2 (world_record varchar, PRIMARY KEY (world_record))
select world_record from table_23988726_2 where "saif_saaeed_shaheen___qat__" = "saif_saaeed_shaheen___qat__"
What are the names of gymnasts whose hometown is not "Santo Domingo"?
create table gymnast (gymnast_id varchar, PRIMARY KEY (gymnast_id)); create table people (name varchar, people_id varchar, hometown varchar, PRIMARY KEY (name))
select t2.name from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t2.hometown <> "santo domingo"
Which paper's title contains the word "Database"?
create table papers (title varchar, PRIMARY KEY (title))
select title from papers where title like "%database%"
How many college/junior/club teams are from Sweden?
create table table_2850912_5 (college_junior_club_team varchar, nationality varchar, PRIMARY KEY (college_junior_club_team))
select count(college_junior_club_team) from table_2850912_5 where nationality = "sweden"
How many different titles does the episode originally aired on September 27, 1984 have?
create table table_2818164_2 (title varchar, original_air_date varchar, PRIMARY KEY (title))
select count(title) from table_2818164_2 where original_air_date = "september 27, 1984"
What are the original air dates when scientology isthe poll winner?
create table table_15781170_3 (original_air_date varchar, poll_winner varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_15781170_3 where poll_winner = "scientology"
Name the total number of language of films for méga-plex taschereau imax
create table table_2461720_1 (language_of_films varchar, theatre_name varchar, PRIMARY KEY (language_of_films))
select count(language_of_films) from table_2461720_1 where theatre_name = "méga-plex taschereau imax"
How many channel tv (dt)s are in austin, texas?
create table table_1353096_1 (channel_tv___dt__ varchar, city_of_license__market varchar, PRIMARY KEY (channel_tv___dt__))
select count(channel_tv___dt__) from table_1353096_1 where city_of_license__market = "austin, texas"
What is the gayndah when perry is 304?
create table table_12526990_1 (gayndah integer, perry varchar, PRIMARY KEY (gayndah))
select max(gayndah) from table_12526990_1 where perry = 304
Find the names of artists that do not have any albums.
create table artist (name varchar, PRIMARY KEY (name)); create table album (artistid varchar, PRIMARY KEY (artistid)); create table artist (name varchar, artistid varchar, PRIMARY KEY (name))
select name from artist except select t2.name from album as t1 join artist as t2 on t1.artistid = t2.artistid
Who got high assists for team @ Indiana?
create table table_27700375_8 (high_assists varchar, team varchar, PRIMARY KEY (high_assists))
select high_assists from table_27700375_8 where team = "@ indiana"
Find the distinct Advisor of students who have treasurer votes in the spring election cycle.
create table student (advisor varchar, stuid varchar, PRIMARY KEY (advisor)); create table voting_record (treasurer_vote varchar, election_cycle varchar, PRIMARY KEY (treasurer_vote))
select distinct t1.advisor from student as t1 join voting_record as t2 on t1.stuid = t2.treasurer_vote where t2.election_cycle = "spring"
What year was the film Milagros submitted?
create table table_17919342_1 (year__ceremony_ varchar, original_title varchar, PRIMARY KEY (year__ceremony_))
select year__ceremony_ from table_17919342_1 where original_title = "milagros"
When did the fourth episode of the season (4 1-04) first air?
create table table_24222929_3 (original_airdate varchar, episode_number_production_number varchar, PRIMARY KEY (original_airdate))
select original_airdate from table_24222929_3 where episode_number_production_number = "4 1-04"
WHAT TEAM CLASSIFIED IN THE STAGE WHERE BRADLEY WIGGINS WON THE POINTS CLASSIFICATION ?
create table table_11667521_17 (team_classification varchar, points_classification varchar, PRIMARY KEY (team_classification))
select team_classification from table_11667521_17 where points_classification = "bradley wiggins"
What country is Richard Vanquelef from?
create table table_24565004_22 (nationality² varchar, name varchar, PRIMARY KEY (nationality²))
select nationality² from table_24565004_22 where name = "richard vanquelef"
The results for gt2 winning team is all lars-erik nielsen allan simonsen richard westbrook.
create table table_14154271_2 (results varchar, gt2_winning_team varchar, PRIMARY KEY (results))
select results from table_14154271_2 where gt2_winning_team = "lars-erik nielsen allan simonsen richard westbrook"
What is the Quarterback rating of the player who got a comp percentage of 62.0?
create table table_18686317_1 (qb_rating varchar, comp__percentage varchar, PRIMARY KEY (qb_rating))
select qb_rating from table_18686317_1 where comp__percentage = "62.0"
What did the home team score against Richmond?
create table table_16387653_1 (home_team varchar, away_team varchar, PRIMARY KEY (home_team))
select home_team as score from table_16387653_1 where away_team = "richmond"
Which planet has an orbital period of 11.86 years?
create table table_10932739_2 (planet varchar, orbital_period varchar, PRIMARY KEY (planet))
select planet from table_10932739_2 where orbital_period = "11.86 years"
What is the ISBN of "Dead as a Doornail?
create table table_16907214_1 (paperback varchar, title varchar, PRIMARY KEY (paperback))
select paperback from table_16907214_1 where title = "dead as a doornail"
Name the team for javier clemente
create table table_29398373_2 (team varchar, head_coach varchar, PRIMARY KEY (team))
select team from table_29398373_2 where head_coach = "javier clemente"
When madison square garden ( new york city, new york ) is the tournament venue (city) what is the conference tournament?
create table table_24160890_3 (conference varchar, tournament_venue__city_ varchar, PRIMARY KEY (conference))
select conference as tournament from table_24160890_3 where tournament_venue__city_ = "madison square garden ( new york city, new york )"
From the trip record, find the number of unique bikes.
create table trip (bike_id varchar, PRIMARY KEY (bike_id))
select count(distinct bike_id) from trip
When galaxy angel aa was the title was the us release date?
create table table_1714685_1 (us_release_date varchar, title varchar, PRIMARY KEY (us_release_date))
select us_release_date from table_1714685_1 where title = "galaxy angel aa"
What was the callsign in Zamboanga?
create table table_12547903_3 (callsign varchar, location varchar, PRIMARY KEY (callsign))
select callsign from table_12547903_3 where location = "zamboanga"
What is the original title of europe for dummies?
create table table_14631909_1 (original_title varchar, english_title varchar, PRIMARY KEY (original_title))
select original_title from table_14631909_1 where english_title = "europe for dummies"
reginald hudlin directed how many written by.
create table table_21994729_3 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by))
select written_by from table_21994729_3 where directed_by = "reginald hudlin"
Name the sepal width when sepal length is 6.5 and petal width is 2.2
create table table_10477224_1 (sepal_width varchar, sepal_length varchar, petal_width varchar, PRIMARY KEY (sepal_width))
select sepal_width from table_10477224_1 where sepal_length = "6.5" and petal_width = "2.2"
What is Australia's role in the UN operation Unama?
create table table_10121127_1 (australian_role varchar, un_operation_name varchar, PRIMARY KEY (australian_role))
select australian_role from table_10121127_1 where un_operation_name = "unama"
what is the name of the episode when the number of spectators was 5.60 millions?
create table table_23117208_3 (title varchar, viewers__millions_ varchar, PRIMARY KEY (title))
select title from table_23117208_3 where viewers__millions_ = "5.60"
What accreditation does Hollins University have?
create table table_2076608_1 (accreditation varchar, school varchar, PRIMARY KEY (accreditation))
select accreditation from table_2076608_1 where school = "hollins university"
Who proceeded to the quarter final when the london irish were eliminated from competition?
create table table_28068063_3 (proceed_to_quarter_final varchar, eliminated_from_competition varchar, PRIMARY KEY (proceed_to_quarter_final))
select proceed_to_quarter_final from table_28068063_3 where eliminated_from_competition = "london irish"
What is the province for with the stadium capacity of 5100?
create table table_27369069_4 (province varchar, stadium_capacity varchar, PRIMARY KEY (province))
select province from table_27369069_4 where stadium_capacity = 5100
When classic hits 102.1 cjcy is the branding who is the owner?
create table table_18536769_1 (owner varchar, branding varchar, PRIMARY KEY (owner))
select owner from table_18536769_1 where branding = "classic hits 102.1 cjcy"
How many millions of people in the US watched when Kevin Bray was director?
create table table_24319661_3 (us_viewers__million_ varchar, directed_by varchar, PRIMARY KEY (us_viewers__million_))
select us_viewers__million_ from table_24319661_3 where directed_by = "kevin bray"
Show the most common location of performances.
create table performance (location varchar, PRIMARY KEY (location))
select location from performance group by location order by count(*) desc limit 1
what is smallest number in fleet for chassis manufacturer Scania and fleet numbers is 3230?
create table table_1425948_1 (number_in_fleet integer, chassis_manufacturer varchar, fleet_numbers varchar, PRIMARY KEY (number_in_fleet))
select min(number_in_fleet) from table_1425948_1 where chassis_manufacturer = "scania" and fleet_numbers = "3230"
Name the best director for mother
create table table_15301258_1 (best_director varchar, best_film varchar, PRIMARY KEY (best_director))
select best_director from table_15301258_1 where best_film = "mother"
How many accelerators are not compatible with the browsers listed ?
create table accelerator_compatible_browser (id varchar, accelerator_id varchar, PRIMARY KEY (id)); create table web_client_accelerator (id varchar, accelerator_id varchar, PRIMARY KEY (id))
select count(*) from web_client_accelerator where not id in (select accelerator_id from accelerator_compatible_browser)
What was the little league team from Indiana when the little league team from Michigan was Midland Northeast LL Midland?
create table table_18461045_1 (indiana varchar, michigan varchar, PRIMARY KEY (indiana))
select indiana from table_18461045_1 where michigan = "midland northeast ll midland"
What is the value of Monday August 24 if the rider is Benny Smith 600cc Yamaha?
create table table_23465864_5 (mon_24_aug varchar, rider varchar, PRIMARY KEY (mon_24_aug))
select mon_24_aug from table_23465864_5 where rider = "benny smith 600cc yamaha"
Name the sepal length for sepal width of 2.8 and petal length of 5.1
create table table_10477224_1 (sepal_length varchar, sepal_width varchar, petal_length varchar, PRIMARY KEY (sepal_length))
select sepal_length from table_10477224_1 where sepal_width = "2.8" and petal_length = "5.1"
Name the analysts
create table table_22654139_2 (s_analyst varchar, PRIMARY KEY (s_analyst))
select s_analyst from table_22654139_2
What was the record when chris paul (16) had the high points?
create table table_27723228_8 (record varchar, high_points varchar, PRIMARY KEY (record))
select record from table_27723228_8 where high_points = "chris paul (16)"
If the proto-semitic is *bayt-, what are the geez?
create table table_26919_7 (geez varchar, proto_semitic varchar, PRIMARY KEY (geez))
select geez from table_26919_7 where proto_semitic = "*bayt-"
What is Ballymurphy North's civil parish?
create table table_30120633_1 (civil_parish varchar, townland varchar, PRIMARY KEY (civil_parish))
select civil_parish from table_30120633_1 where townland = "ballymurphy north"
Show all game names played by at least 1000 hours.
create table plays_games (gameid varchar, PRIMARY KEY (gameid)); create table video_games (gameid varchar, PRIMARY KEY (gameid))
select gname from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid group by t1.gameid having sum(hours_played) >= 1000
What purses had a winners share equal to $428650?
create table table_1520559_1 (purse___$__ varchar, winners_share__$_ varchar, PRIMARY KEY (purse___$__))
select purse___$__ from table_1520559_1 where winners_share__$_ = 428650
How many David's team for the Lees Team of Deborah Meaden and Mark Watson?
create table table_23575917_4 (davids_team varchar, lees_team varchar, PRIMARY KEY (davids_team))
select count(davids_team) from table_23575917_4 where lees_team = "deborah meaden and mark watson"
Find all the product whose name contains the word "Scanner".
create table product (product varchar, PRIMARY KEY (product))
select product from product where product like "%scanner%"
Who sanctioned the event in lincoln, illinois?
create table table_16275828_4 (sanction varchar, location varchar, PRIMARY KEY (sanction))
select sanction from table_16275828_4 where location = "lincoln, illinois"
Show the names of products and the number of events they are in.
create table products (product_name varchar, product_id varchar, PRIMARY KEY (product_name)); create table products_in_events (product_id varchar, PRIMARY KEY (product_id))
select t1.product_name, count(*) from products as t1 join products_in_events as t2 on t1.product_id = t2.product_id group by t1.product_name
What is the average rating for tv asahi?
create table table_18539834_2 (average_ratings varchar, tv_station varchar, PRIMARY KEY (average_ratings))
select average_ratings from table_18539834_2 where tv_station = "tv asahi"
What is the name of the episode written by David Matthews?
create table table_28037619_2 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_28037619_2 where written_by = "david matthews"
What is the kr td when mfg lg is 64?
create table table_16912000_13 (kr_td varchar, mfg_lg varchar, PRIMARY KEY (kr_td))
select kr_td from table_16912000_13 where mfg_lg = 64
Are there SPI on the number 7 cylinder?
create table table_16731248_1 (spi varchar, number_on_cyl varchar, PRIMARY KEY (spi))
select spi from table_16731248_1 where number_on_cyl = "7"
What is the English spelling of the strongs transliteration: 'adoniyah?
create table table_1242447_2 (english_spelling varchar, strongs_transliteration varchar, PRIMARY KEY (english_spelling))
select english_spelling from table_1242447_2 where strongs_transliteration = "'adoniyah"
List the titles of episodes written by Anne Cofell Saunders.
create table table_26464364_1 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_26464364_1 where written_by = "anne cofell saunders"
For armenia as opponent team and edition is 2009 europe/africa group iiib mention all the opponent
create table table_27877656_7 (opponent varchar, edition varchar, opponent_team varchar, PRIMARY KEY (opponent))
select opponent from table_27877656_7 where edition = "2009 europe/africa group iiib" and opponent_team = "armenia"
Who wrote the episode that had 5.93 million viewers?
create table table_27846651_1 (writer varchar, viewers__millions_ varchar, PRIMARY KEY (writer))
select writer from table_27846651_1 where viewers__millions_ = "5.93"
Name the regular season for final playoffs
create table table_2361911_2 (regular_season varchar, playoffs varchar, PRIMARY KEY (regular_season))
select regular_season from table_2361911_2 where playoffs = "final"
How many statements do we have?
create table statements (id varchar, PRIMARY KEY (id))
select count(*) from statements
Where was the tourney when UCLA won the regular season?
create table table_21269441_4 (tournament_venue__city_ varchar, regular_season_winner varchar, PRIMARY KEY (tournament_venue__city_))
select tournament_venue__city_ from table_21269441_4 where regular_season_winner = "ucla"
List all info about all people.
create table people (id varchar, PRIMARY KEY (id))
select * from people
Name the cyrillic name for orthodox christianity village and bačko dobro polje
create table table_2562572_20 (cyrillic_name_other_names varchar, settlement varchar, dominant_religion__2002_ varchar, type varchar, PRIMARY KEY (cyrillic_name_other_names))
select cyrillic_name_other_names from table_2562572_20 where dominant_religion__2002_ = "orthodox christianity" and type = "village" and settlement = "bačko dobro polje"
Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.
create table browser (id varchar, name varchar, PRIMARY KEY (id)); create table web_client_accelerator (name varchar, operating_system varchar, PRIMARY KEY (name)); create table accelerator_compatible_browser (accelerator_id varchar, browser_id varchar, PRIMARY KEY (accelerator_id)); create table web_client_accelerator (name varchar, operating_system varchar, id varchar, PRIMARY KEY (name))
select name, operating_system from web_client_accelerator except select t1.name, t1.operating_system from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id join browser as t3 on t2.browser_id = t3.id where t3.name = 'opera'
Find the total number of students living in the male dorm (with gender M).
create table dorm (dormid varchar, gender varchar, PRIMARY KEY (dormid)); create table lives_in (stuid varchar, dormid varchar, PRIMARY KEY (stuid)); create table student (stuid varchar, PRIMARY KEY (stuid))
select count(*) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.gender = 'm'
List the names of departments where some physicians are primarily affiliated with.
create table affiliated_with (department varchar, PRIMARY KEY (department)); create table department (name varchar, departmentid varchar, PRIMARY KEY (name))
select distinct t2.name from affiliated_with as t1 join department as t2 on t1.department = t2.departmentid where primaryaffiliation = 1
List all countries and their number of airlines in the descending order of number of airlines.
create table airlines (country varchar, PRIMARY KEY (country))
select country, count(*) from airlines group by country order by count(*) desc
Name the least 2 credits for straight hand
create table table_148535_2 (hand varchar, PRIMARY KEY (hand))
select min(2 as _credits) from table_148535_2 where hand = "straight"
Show the most common apartment type code.
create table apartments (apt_type_code varchar, PRIMARY KEY (apt_type_code))
select apt_type_code from apartments group by apt_type_code order by count(*) desc limit 1
Which bike traveled the most often in zip code 94002?
create table trip (bike_id varchar, zip_code varchar, PRIMARY KEY (bike_id))
select bike_id from trip where zip_code = 94002 group by bike_id order by count(*) desc limit 1
Show all allergies and their types.
create table allergy_type (allergy varchar, allergytype varchar, PRIMARY KEY (allergy))
select allergy, allergytype from allergy_type
Name the launch date for duration days 174.14
create table table_1906515_1 (launch_date varchar, duration__days_ varchar, PRIMARY KEY (launch_date))
select launch_date from table_1906515_1 where duration__days_ = "174.14"
Who is the director of the episode whom Scott Peters is the writer?
create table table_10470082_4 (director varchar, writer varchar, PRIMARY KEY (director))
select director from table_10470082_4 where writer = "scott peters"
Name the rufus guest for 15 december 2008
create table table_19930660_1 (rufus_guest varchar, first_broadcast varchar, PRIMARY KEY (rufus_guest))
select count(rufus_guest) from table_19930660_1 where first_broadcast = "15 december 2008"
What all capacities have turbines between 50-60?
create table table_26387382_1 (capacity__mw_ varchar, turbines varchar, PRIMARY KEY (capacity__mw_))
select capacity__mw_ from table_26387382_1 where turbines = "50-60"
If the channels is wxyzrstuvpq, what is the horizontal order?
create table table_233830_1 (horizontal_order varchar, channels varchar, PRIMARY KEY (horizontal_order))
select horizontal_order from table_233830_1 where channels = "wxyzrstuvpq"
When nathaniel g. taylor (u) is the successor what is the vacator?
create table table_2147588_4 (vacator varchar, successor varchar, PRIMARY KEY (vacator))
select vacator from table_2147588_4 where successor = "nathaniel g. taylor (u)"
When james seaton is the incumbent what is the reason?
create table table_28898974_3 (reason varchar, incumbent varchar, PRIMARY KEY (reason))
select reason from table_28898974_3 where incumbent = "james seaton"
What was the number of athletes in the host city of Nice?
create table table_26669939_1 (no_of_athletes varchar, host_city varchar, PRIMARY KEY (no_of_athletes))
select no_of_athletes from table_26669939_1 where host_city = "nice"
What kind of school is Canton, New York?
create table table_16381914_1 (affiliation varchar, location varchar, PRIMARY KEY (affiliation))
select affiliation from table_16381914_1 where location = "canton, new york"
What models have an a2 barrel profile?
create table table_12834315_5 (name varchar, barrel_profile varchar, PRIMARY KEY (name))
select name from table_12834315_5 where barrel_profile = "a2"
What school did the player that has been in Toronto from 2010-2012 go to?
create table table_10015132_1 (school_club_team varchar, years_in_toronto varchar, PRIMARY KEY (school_club_team))
select school_club_team from table_10015132_1 where years_in_toronto = "2010-2012"
When Cleveland was 2nd, great lakes in the regular season what did they get to in the playoffs?
create table table_2357201_1 (playoffs varchar, regular_season varchar, PRIMARY KEY (playoffs))
select playoffs from table_2357201_1 where regular_season = "2nd, great lakes"
What are the names of the tourist attractions that can be accessed by bus?
create table tourist_attractions (name varchar, how_to_get_there varchar, PRIMARY KEY (name))
select name from tourist_attractions where how_to_get_there = "bus"
Who were the runner(s)-up when Tiger won by 11 strokes?
create table table_11570261_2 (runner_s__up varchar, margin_of_victory varchar, PRIMARY KEY (runner_s__up))
select runner_s__up from table_11570261_2 where margin_of_victory = "11 strokes"
When was the train 2053 built?
create table table_1057316_1 (build_date varchar, serial_number varchar, PRIMARY KEY (build_date))
select build_date from table_1057316_1 where serial_number = "2053"
what is the percentage of democratic voters in which the registered voters is 67.8%?
create table table_27003223_4 (democratic varchar, registered_voters varchar, PRIMARY KEY (democratic))
select democratic from table_27003223_4 where registered_voters = "67.8%"
What is the current account balance for an export volume of goods and service value of -4.2?
create table table_30133_1 (current_account_balance__percent_of_gdp_ varchar, export_volume_of_goods_and_services__percent_change_ varchar, PRIMARY KEY (current_account_balance__percent_of_gdp_))
select current_account_balance__percent_of_gdp_ from table_30133_1 where export_volume_of_goods_and_services__percent_change_ = "-4.2"
when was the episode guest starring michael mcintyre and alex james broadcasted
create table table_29135051_3 (broadcast_date varchar, guest_s_ varchar, PRIMARY KEY (broadcast_date))
select broadcast_date from table_29135051_3 where guest_s_ = "michael mcintyre and alex james"