question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
How many nhl teams are listed when college/junior/club team is listed as newton north high school (ushs-ma)?
create table table_2850912_7 (nhl_team varchar, college_junior_club_team varchar, PRIMARY KEY (nhl_team))
select count(nhl_team) from table_2850912_7 where college_junior_club_team = "newton north high school (ushs-ma)"
who was running where the winner is daniel montgomery
create table table_2668378_13 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_2668378_13 where incumbent = "daniel montgomery"
in the leage what was the minimum 4wi
create table table_28798161_3 (id varchar, PRIMARY KEY (id))
select min(4 as wi) from table_28798161_3
What colors does David Langdon use?
create table table_19624708_1 (colours varchar, owner varchar, PRIMARY KEY (colours))
select colours from table_19624708_1 where owner = "david langdon"
How many dvd releases where directed by david decoteau?
create table table_19982699_1 (dvd_release varchar, director varchar, PRIMARY KEY (dvd_release))
select count(dvd_release) from table_19982699_1 where director = "david decoteau"
List the name of film studio that have the most number of films.
create table film (studio varchar, PRIMARY KEY (studio))
select studio from film group by studio order by count(*) desc limit 1
Show the names of countries that have more than one roller coaster.
create table roller_coaster (country_id varchar, PRIMARY KEY (country_id)); create table country (name varchar, country_id varchar, PRIMARY KEY (name))
select t1.name from country as t1 join roller_coaster as t2 on t1.country_id = t2.country_id group by t1.name having count(*) > 1
What is the home ground if team is Sunshine Coast Falcons?
create table table_2383498_4 (home_ground varchar, team varchar, PRIMARY KEY (home_ground))
select home_ground from table_2383498_4 where team = "sunshine coast falcons"
What is the maximum number of km listed?
create table table_206361_2 (kilometer integer, PRIMARY KEY (kilometer))
select max(kilometer) from table_206361_2
Who is every high rebound when the team is Mount St. Mary's?
create table table_29846807_4 (high_rebounds varchar, team varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_29846807_4 where team = "mount st. mary's"
Name the most ceiling temperature for intermediate
create table table_1538516_1 (maximum_ceiling_temperature varchar, temperature_classification varchar, PRIMARY KEY (maximum_ceiling_temperature))
select maximum_ceiling_temperature from table_1538516_1 where temperature_classification = "intermediate"
What are the names of products with category "Spices"?
create table products (product_name varchar, product_category_code varchar, PRIMARY KEY (product_name))
select product_name from products where product_category_code = "spices"
How many co-singers were there when Parveen Babi co-starred?
create table table_2528382_5 (singers varchar, co varchar, co_stars varchar, PRIMARY KEY (singers))
select count(co) - singers from table_2528382_5 where co_stars = "parveen babi"
List the id of students who attended some courses?
create table student_course_attendance (student_id varchar, PRIMARY KEY (student_id))
select student_id from student_course_attendance
Where was the tourney when Weber State 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 = "weber state"
What is the Galician (reintegrationist) word of the Galician (Official) is bo día / bos días?
create table table_26614365_5 (galician___reintegrationist__ varchar, galician___official__ varchar, PRIMARY KEY (galician___reintegrationist__))
select galician___reintegrationist__ from table_26614365_5 where galician___official__ = "bo día / bos días"
What was the margin of victory with the winning score "63-68-68-68=267"?
create table table_1602858_1 (margin_of_victory varchar, winning_score varchar, PRIMARY KEY (margin_of_victory))
select margin_of_victory from table_1602858_1 where winning_score = 63 - 68 - 68 - 68 = 267
What is every affiliation for candidate Daren Ireland?
create table table_25818630_1 (affiliation varchar, candidate varchar, PRIMARY KEY (affiliation))
select affiliation from table_25818630_1 where candidate = "daren ireland"
When hittite middle kingdom , new kingdom of egypt is the ubaid period in mesopotamia how many early chalcolithics are there?
create table table_23537091_1 (early_chalcolithic varchar, ubaid_period_in_mesopotamia varchar, PRIMARY KEY (early_chalcolithic))
select count(early_chalcolithic) from table_23537091_1 where ubaid_period_in_mesopotamia = "hittite middle kingdom , new kingdom of egypt"
What is the rev for all of the Aston Martin applications?
create table table_1310499_1 (rev varchar, application varchar, PRIMARY KEY (rev))
select rev from table_1310499_1 where application = "aston martin"
What are the movies that are written and dircted by john sullivan with the airdate of 15january2009.
create table table_17641206_8 (directed_by varchar, written_by varchar, original_airdate varchar, PRIMARY KEY (directed_by))
select directed_by from table_17641206_8 where written_by = "john sullivan" and original_airdate = "15january2009"
List the names and locations of all stations ordered by their yearly entry exit and interchange amounts.
create table station (name varchar, location varchar, annual_entry_exit varchar, annual_interchanges varchar, PRIMARY KEY (name))
select name, location from station order by annual_entry_exit, annual_interchanges
Name the viewers for the episode directed by tony phelan
create table table_19501664_1 (us_viewers__millions_ varchar, directed_by varchar, PRIMARY KEY (us_viewers__millions_))
select us_viewers__millions_ from table_19501664_1 where directed_by = "tony phelan"
What was the winning team when mikhail goikhberg was the winning driver?
create table table_25668203_2 (winning_team varchar, winning_driver varchar, PRIMARY KEY (winning_team))
select winning_team from table_25668203_2 where winning_driver = "mikhail goikhberg"
How many afc titles did the Cleveland Browns have?
create table table_1952065_4 (afc_titles integer, teams_with_division_titles varchar, PRIMARY KEY (afc_titles))
select max(afc_titles) from table_1952065_4 where teams_with_division_titles = "cleveland browns"
where title is am/pm callanetics , what are all the copyright information?
create table table_11222744_2 (copyright_information varchar, title varchar, PRIMARY KEY (copyright_information))
select copyright_information from table_11222744_2 where title = "am/pm callanetics"
Which teams are located in highland township?
create table table_11094950_1 (team varchar, location varchar, PRIMARY KEY (team))
select team from table_11094950_1 where location = "highland township"
What is the 2 June time for the rider with time of 17' 48.58 127.111mph on 3 June?
create table table_25220821_4 (wed_2_june varchar, thurs_3_june varchar, PRIMARY KEY (wed_2_june))
select wed_2_june from table_25220821_4 where thurs_3_june = "17' 48.58 127.111mph"
What type of institution is San Diego Christian college?
create table table_2562113_1 (type varchar, institution varchar, PRIMARY KEY (type))
select type from table_2562113_1 where institution = "san diego christian college"
How many times was taiwan 3rd runner-up?
create table table_28634206_1 (country varchar, PRIMARY KEY (country))
select max(3 as rd_runner_up) from table_28634206_1 where country = "taiwan"
how many years has сенки been nominated?
create table table_14928423_1 (year__ceremony_ varchar, original_title varchar, PRIMARY KEY (year__ceremony_))
select count(year__ceremony_) from table_14928423_1 where original_title = "сенки"
How many seats in 2006 has a % 1997 rating of 38.9?
create table table_21132404_1 (seats_2006 varchar, _percentage_1997 varchar, PRIMARY KEY (seats_2006))
select count(seats_2006) from table_21132404_1 where _percentage_1997 = "38.9"
The player for what club had 2 tests?
create table table_27771406_1 (club varchar, tests varchar, PRIMARY KEY (club))
select club from table_27771406_1 where tests = 2
Name the away team score for carlton
create table table_16388439_3 (away_team varchar, home_team varchar, PRIMARY KEY (away_team))
select away_team as score from table_16388439_3 where home_team = "carlton"
what's the airport with % change 2005/2006 being 13.0%
create table table_13836704_9 (airport varchar, _percentage_change_2005_2006 varchar, PRIMARY KEY (airport))
select airport from table_13836704_9 where _percentage_change_2005_2006 = "13.0%"
What team had high assists Rafer Alston (5)?
create table table_15872814_7 (team varchar, high_assists varchar, PRIMARY KEY (team))
select team from table_15872814_7 where high_assists = "rafer alston (5)"
Find the addresses and author IDs of the course authors that teach at least two courses.
create table courses (author_id varchar, PRIMARY KEY (author_id)); create table course_authors_and_tutors (address_line_1 varchar, author_id varchar, PRIMARY KEY (address_line_1))
select t1.address_line_1, t2.author_id from course_authors_and_tutors as t1 join courses as t2 on t1.author_id = t2.author_id group by t2.author_id having count(*) >= 2
Find how many different affiliation types there are.
create table university (affiliation varchar, PRIMARY KEY (affiliation))
select count(distinct affiliation) from university
Rome is in which country?
create table table_14903081_1 (country varchar, location varchar, PRIMARY KEY (country))
select country from table_14903081_1 where location = "rome"
What are the details and opening hours of the museums?
create table tourist_attractions (opening_hours varchar, tourist_attraction_id varchar, PRIMARY KEY (opening_hours)); create table museums (museum_details varchar, museum_id varchar, PRIMARY KEY (museum_details))
select t1.museum_details, t2.opening_hours from museums as t1 join tourist_attractions as t2 on t1.museum_id = t2.tourist_attraction_id
How many segment b's when segment a is filigree glass
create table table_15187735_16 (segment_b varchar, segment_a varchar, PRIMARY KEY (segment_b))
select count(segment_b) from table_15187735_16 where segment_a = "filigree glass"
Name the finished for kerry katona
create table table_14345690_4 (finished varchar, celebrity varchar, PRIMARY KEY (finished))
select count(finished) from table_14345690_4 where celebrity = "kerry katona"
Who was nominated for best supporting actor in the movie Going My Way?
create table table_18638067_1 (actor_actress varchar, film_title_used_in_nomination varchar, category varchar, PRIMARY KEY (actor_actress))
select actor_actress from table_18638067_1 where film_title_used_in_nomination = "going my way" and category = "best supporting actor"
What is the athlete from Edwardsville?
create table table_1231316_7 (athlete varchar, location varchar, PRIMARY KEY (athlete))
select athlete from table_1231316_7 where location = "edwardsville"
What is the innovation when the economic incentive grime is 7.14?
create table table_23050383_1 (innovation varchar, economic_incentive_regime varchar, PRIMARY KEY (innovation))
select innovation from table_23050383_1 where economic_incentive_regime = "7.14"
Name the regular judge when host is anja rubik
create table table_1597866_3 (regular_judge varchar, host varchar, PRIMARY KEY (regular_judge))
select regular_judge from table_1597866_3 where host = "anja rubik"
what is the scoreboard when karen was 4.5
create table table_19744915_3 (scoreboard varchar, karen varchar, PRIMARY KEY (scoreboard))
select scoreboard from table_19744915_3 where karen = "4.5"
Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.
create table phone_market (phone_id varchar, num_of_stock integer, PRIMARY KEY (phone_id)); create table phone (name varchar, phone_id varchar, PRIMARY KEY (name))
select t2.name from phone_market as t1 join phone as t2 on t1.phone_id = t2.phone_id group by t2.name having sum(t1.num_of_stock) >= 2000 order by sum(t1.num_of_stock) desc
Which circuit was located in st. petersburg, florida?
create table table_30134667_2 (circuit varchar, location varchar, PRIMARY KEY (circuit))
select circuit from table_30134667_2 where location = "st. petersburg, florida"
Name the record for houston
create table table_23186738_6 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_23186738_6 where team = "houston"
when was the episode on which barbara windsor and heston blumenthal guest starred 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_ = "barbara windsor and heston blumenthal"
What was the Ram's conference record when they were the CBI champions?
create table table_14609295_4 (conference varchar, postseason varchar, PRIMARY KEY (conference))
select conference from table_14609295_4 where postseason = "cbi champions"
Name the opponent for record 10-13-3
create table table_27537870_5 (opponent varchar, record varchar, PRIMARY KEY (opponent))
select opponent from table_27537870_5 where record = "10-13-3"
When the network mask is 255.255.255.224 what is the highest total usable host?
create table table_149426_4 (total_usable_hosts integer, network_mask varchar, PRIMARY KEY (total_usable_hosts))
select max(total_usable_hosts) from table_149426_4 where network_mask = "255.255.255.224"
What is the original air date when the director is Rowan Woods and the writer is Peter Duncan?
create table table_29494395_3 (originalair_date varchar, director varchar, writer varchar, PRIMARY KEY (originalair_date))
select originalair_date from table_29494395_3 where director = "rowan woods" and writer = "peter duncan"
Find the top 3 wineries with the greatest number of wines made of white color grapes.
create table grapes (grape varchar, color varchar, PRIMARY KEY (grape)); create table wine (winery varchar, grape varchar, PRIMARY KEY (winery))
select t2.winery from grapes as t1 join wine as t2 on t1.grape = t2.grape where t1.color = "white" group by t2.winery order by count(*) desc limit 3
How many different numbers of B shares does Handelsbanken fonder have?
create table table_206359_1 (b_shares varchar, shareholder_name varchar, PRIMARY KEY (b_shares))
select count(b_shares) from table_206359_1 where shareholder_name = "handelsbanken fonder"
List the companies and the investors of entrepreneurs.
create table entrepreneur (company varchar, investor varchar, PRIMARY KEY (company))
select company, investor from entrepreneur
How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?
create table table_1825751_4 (binibining_pilipinas_international varchar, binibining_pilipinas_world varchar, PRIMARY KEY (binibining_pilipinas_international))
select count(binibining_pilipinas_international) from table_1825751_4 where binibining_pilipinas_world = "maria karla bautista"
What is the English title when the original title is Die Qual Der Wahl?
create table table_1481865_1 (title__english_ varchar, title__original_ varchar, PRIMARY KEY (title__english_))
select title__english_ from table_1481865_1 where title__original_ = "die qual der wahl"
What is the d-r spread if the no party preference is 31.8%?
create table table_25200461_9 (d_r_spread varchar, no_party_preference varchar, PRIMARY KEY (d_r_spread))
select d_r_spread from table_25200461_9 where no_party_preference = "31.8%"
Which broadcast date has 6.8 million viewers?
create table table_2114238_1 (broadcast_date varchar, viewers__in_millions_ varchar, PRIMARY KEY (broadcast_date))
select broadcast_date from table_2114238_1 where viewers__in_millions_ = "6.8"
WHO WAS THE COVER MODEL OF PLAYBOY WHERE THE CENTERFOLD MODEL WAS SHALLAN MEIERS?
create table table_1566852_3 (cover_model varchar, centerfold_model varchar, PRIMARY KEY (cover_model))
select cover_model from table_1566852_3 where centerfold_model = "shallan meiers"
When a private individual is the source and 018 is the story number what is the total footage remaining from missing episodes (mm:ss)?
create table table_1889619_5 (total_footage_remaining_from_missing_episodes__mm varchar, story_no varchar, source varchar, PRIMARY KEY (total_footage_remaining_from_missing_episodes__mm))
select total_footage_remaining_from_missing_episodes__mm as :ss_ from table_1889619_5 where story_no = "018" and source = "private individual"
What is the title(s) of episodes written by aron eli coleite?
create table table_28215780_4 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_28215780_4 where written_by = "aron eli coleite"
Name the umbr of creators for flash of two worlds
create table table_19534677_1 (creators varchar, volume_title varchar, PRIMARY KEY (creators))
select count(creators) from table_19534677_1 where volume_title = "flash of two worlds"
What stadium does FK Rudar play in?
create table table_28668784_1 (stadium varchar, home_team varchar, PRIMARY KEY (stadium))
select stadium from table_28668784_1 where home_team = "fk rudar"
Who is the successor when the reason for change is seat declared vacant January 2, 1808
create table table_225093_4 (successor varchar, reason_for_change varchar, PRIMARY KEY (successor))
select successor from table_225093_4 where reason_for_change = "seat declared vacant january 2, 1808"
What was the manner of departure for the appointment date of 21 september 2010
create table table_27495117_3 (manner_of_departure varchar, date_of_appointment varchar, PRIMARY KEY (manner_of_departure))
select manner_of_departure from table_27495117_3 where date_of_appointment = "21 september 2010"
Find the number of routes that have destination John F Kennedy International Airport.
create table airports (apid varchar, name varchar, PRIMARY KEY (apid)); create table routes (dst_apid varchar, PRIMARY KEY (dst_apid))
select count(*) from airports as t1 join routes as t2 on t1.apid = t2.dst_apid where t1.name = 'john f kennedy international airport'
What is listed in hight points when the high rebounds is listed as Nick Collison (10)?
create table table_28768469_7 (high_points varchar, high_rebounds varchar, PRIMARY KEY (high_points))
select high_points from table_28768469_7 where high_rebounds = "nick collison (10)"
What is the location of the tournament that the share of winning is 7000?
create table table_12243817_1 (tournament_location varchar, winners_share__$_ varchar, PRIMARY KEY (tournament_location))
select tournament_location from table_12243817_1 where winners_share__$_ = 7000
How many numbers were recorded for Chester when the religion was Hindu?
create table table_16974228_1 (chester varchar, religion varchar, PRIMARY KEY (chester))
select count(chester) from table_16974228_1 where religion = "hindu"
when was the last performance of the first performance on 11/15/1909
create table table_19189856_1 (last_performance varchar, first_performance varchar, PRIMARY KEY (last_performance))
select last_performance from table_19189856_1 where first_performance = "11/15/1909"
How many data was given the total electricity in GW-h if the renewable electricity w/o hydro (GW-h) is 3601?
create table table_25244412_2 (total_electricity__gw varchar, renewable_electricity_w_o_hydro__gw·h_ varchar, PRIMARY KEY (total_electricity__gw))
select count(total_electricity__gw) as ·h_ from table_25244412_2 where renewable_electricity_w_o_hydro__gw·h_ = 3601
Name the school that is cougars
create table table_24216139_2 (institution varchar, nickname varchar, PRIMARY KEY (institution))
select institution from table_24216139_2 where nickname = "cougars"
Who sand He's Bigfoot?
create table table_23667534_1 (singer_s_ varchar, song_s__title varchar, PRIMARY KEY (singer_s_))
select singer_s_ from table_23667534_1 where song_s__title = "he's bigfoot"
In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team?
create table table_10725629_2 (report varchar, pole_position varchar, winning_team varchar, PRIMARY KEY (report))
select report from table_10725629_2 where pole_position = "michael andretti" and winning_team = "galles-kraco racing"
what's the estimated value where cover date is august 1962
create table table_1217448_1 (estimated_value varchar, cover_date varchar, PRIMARY KEY (estimated_value))
select estimated_value from table_1217448_1 where cover_date = "august 1962"
Where are all school boards associated with a number of elementary schools of 96?
create table table_1506619_1 (school_board varchar, number_of_elementary_schools varchar, PRIMARY KEY (school_board))
select school_board from table_1506619_1 where number_of_elementary_schools = 96
what is faisaly when wehdat is xxx?
create table table_26173063_2 (faisaly varchar, wehdat varchar, PRIMARY KEY (faisaly))
select faisaly from table_26173063_2 where wehdat = "xxx"
What is the average high temperature for each day of week?
create table weekly_weather (day_of_week varchar, high_temperature integer, PRIMARY KEY (day_of_week))
select avg(high_temperature), day_of_week from weekly_weather group by day_of_week
Which authority has a rocket launch called rehbar-ii?
create table table_11869952_1 (institutional_authority varchar, rocket_launch varchar, PRIMARY KEY (institutional_authority))
select institutional_authority from table_11869952_1 where rocket_launch = "rehbar-ii"
List the forenames of all distinct drivers in alphabetical order?
create table drivers (forename varchar, PRIMARY KEY (forename))
select distinct forename from drivers order by forename
who is the driver that had winnings of $225,000?
create table table_27781212_1 (driver varchar, winnings varchar, PRIMARY KEY (driver))
select driver from table_27781212_1 where winnings = "$225,000"
What are the title that have 19.48 million u.s. viewers?
create table table_1130632_1 (title varchar, us_viewers__million_ varchar, PRIMARY KEY (title))
select title from table_1130632_1 where us_viewers__million_ = "19.48"
How many countries does honoree Roberto de Vicenzo represent?
create table table_1515346_2 (country varchar, honoree_s_ varchar, PRIMARY KEY (country))
select count(country) from table_1515346_2 where honoree_s_ = "roberto de vicenzo"
How many television service are in italian and n°is greater than 856.0?
create table table_15887683_15 (television_service varchar, language varchar, n° varchar, PRIMARY KEY (television_service))
select television_service from table_15887683_15 where language = "italian" and n° > 856.0
What is the lowest overall number for total(min. 2 medals)?
create table table_22355_65 (total_min_2_medals_ integer, PRIMARY KEY (total_min_2_medals_))
select min(total_min_2_medals_) from table_22355_65
What week #(s featured sara bareilles as the original artist?
create table table_21501564_1 (week__number varchar, original_artist varchar, PRIMARY KEY (week__number))
select week__number from table_21501564_1 where original_artist = "sara bareilles"
What is the stadium in Kuopio?
create table table_25129482_1 (stadium varchar, location varchar, PRIMARY KEY (stadium))
select stadium from table_25129482_1 where location = "kuopio"
Name the growth rate for density of 1087
create table table_231623_3 (growth_rate varchar, density_per_kilometer varchar, PRIMARY KEY (growth_rate))
select count(growth_rate) from table_231623_3 where density_per_kilometer = 1087
In the circuit Showevent Olympiastadion München, where the winning driver is Bruno Spengler, what is the pole position?
create table table_26267607_2 (pole_position varchar, winning_driver varchar, circuit varchar, PRIMARY KEY (pole_position))
select pole_position from table_26267607_2 where winning_driver = "bruno spengler" and circuit = "showevent olympiastadion münchen"
What was the date of appointment when Jürgen Kohler was the outgoing manager?
create table table_17085981_2 (date_of_appointment varchar, outgoing_manager varchar, PRIMARY KEY (date_of_appointment))
select date_of_appointment from table_17085981_2 where outgoing_manager = "jürgen kohler"
What location did Zach Veach have the fastest lap?
create table table_29285076_2 (location varchar, fastest_lap varchar, PRIMARY KEY (location))
select location from table_29285076_2 where fastest_lap = "zach veach"
Which team did they play at Rich Stadium?
create table table_14423274_3 (opponent varchar, game_site varchar, PRIMARY KEY (opponent))
select opponent from table_14423274_3 where game_site = "rich stadium"
Who is the captain of Dave Jones' team?
create table table_26593762_2 (team varchar, manager varchar, PRIMARY KEY (team))
select team as captain from table_26593762_2 where manager = "dave jones"
What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?
create table table_10602294_1 (pressure varchar, deaths varchar, PRIMARY KEY (pressure))
select pressure from table_10602294_1 where deaths = "95km/h (60mph)"
What is the document id and name with greatest number of paragraphs?
create table documents (document_name varchar, document_id varchar, PRIMARY KEY (document_name)); create table paragraphs (document_id varchar, PRIMARY KEY (document_id))
select t1.document_id, t2.document_name from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id group by t1.document_id order by count(*) desc limit 1
Who did Abdelhafid Benchebla face in the quarterfinals?
create table table_17427004_7 (quarterfinals varchar, athlete varchar, PRIMARY KEY (quarterfinals))
select quarterfinals from table_17427004_7 where athlete = "abdelhafid benchebla"