question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What country has the most height in the northwestern peak of rysy?
create table table_24285393_1 (country_or_region varchar, highest_point varchar, PRIMARY KEY (country_or_region))
select country_or_region from table_24285393_1 where highest_point = "northwestern peak of rysy"
What is the population density of bandung regency?
create table table_21734764_1 (population_density___km²_2010_ varchar, administrative_division varchar, PRIMARY KEY (population_density___km²_2010_))
select population_density___km²_2010_ from table_21734764_1 where administrative_division = "bandung regency"
What is the english title where the premiere is less than 30.0 and the finale is bigger than 36.0?
create table table_11173827_1 (english_title varchar, premiere varchar, finale varchar, PRIMARY KEY (english_title))
select english_title from table_11173827_1 where premiere < 30.0 and finale > 36.0
List the name of the conductor with the most years of work.
create table conductor (name varchar, year_of_work varchar, PRIMARY KEY (name))
select name from conductor order by year_of_work desc limit 1
What's the English name of the county called 太湖县 / 太湖縣 in Chinese?
create table table_1976898_1 (english_name varchar, chinese_name__simplified___traditional_ varchar, PRIMARY KEY (english_name))
select english_name from table_1976898_1 where chinese_name__simplified___traditional_ = "太湖县 / 太湖縣"
Name the location for democratic méga-plex taschereau imax
create table table_2461720_1 (location varchar, theatre_name varchar, PRIMARY KEY (location))
select location from table_2461720_1 where theatre_name = "méga-plex taschereau imax"
List the builders of railways in ascending alphabetical order.
create table railway (builder varchar, PRIMARY KEY (builder))
select builder from railway order by builder
What is the greek national account when 1997 is 6.1?
create table table_27146868_1 (greek_national_account varchar, PRIMARY KEY (greek_national_account))
select greek_national_account from table_27146868_1 where 1997 = "6.1"
Name the least horizontal for smpte 259m three quarters
create table table_272313_2 (horizontal integer, pixel_aspect_ratio varchar, PRIMARY KEY (horizontal))
select min(horizontal) from table_272313_2 where pixel_aspect_ratio = "smpte 259m three quarters"
What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is Chivas usa?
create table table_11148572_1 (mls_cup_winner varchar, mls_supporters_shield_runner_up varchar, PRIMARY KEY (mls_cup_winner))
select mls_cup_winner from table_11148572_1 where mls_supporters_shield_runner_up = "chivas usa"
What was the amount in Staten Island when The Bronx was 1,281?
create table table_1108394_6 (staten_island varchar, the_bronx varchar, PRIMARY KEY (staten_island))
select staten_island from table_1108394_6 where the_bronx = "1,281"
Who tied in the highest point scorer when playing against Phoenix?
create table table_23274514_4 (high_points varchar, team varchar, PRIMARY KEY (high_points))
select high_points from table_23274514_4 where team = "phoenix"
What is the max pressure of the cartridge where the muzzle energy is 201ft•lbf (273 j)?
create table table_173103_1 (max_pressure varchar, muzzle_energy varchar, PRIMARY KEY (max_pressure))
select max_pressure from table_173103_1 where muzzle_energy = "201ft•lbf (273 j)"
What are the details of the markets that can be accessed by walk or bus?
create table street_markets (market_details varchar, market_id varchar, PRIMARY KEY (market_details)); create table tourist_attractions (tourist_attraction_id varchar, how_to_get_there varchar, PRIMARY KEY (tourist_attraction_id))
select t1.market_details from street_markets as t1 join tourist_attractions as t2 on t1.market_id = t2.tourist_attraction_id where t2.how_to_get_there = "walk" or t2.how_to_get_there = "bus"
What is the local name given to the city of Canberra?
create table table_1008653_1 (capital___endonym__ varchar, capital___exonym__ varchar, PRIMARY KEY (capital___endonym__))
select capital___endonym__ from table_1008653_1 where capital___exonym__ = "canberra"
Hom many musicians performed in the song "Flash"?
create table performance (bandmate varchar, songid varchar, PRIMARY KEY (bandmate)); create table songs (songid varchar, title varchar, PRIMARY KEY (songid)); create table band (id varchar, PRIMARY KEY (id))
select count(*) from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid where t3.title = "flash"
What college did the player who was drafted by Calgary go to?
create table table_28059992_6 (college varchar, cfl_team varchar, PRIMARY KEY (college))
select college from table_28059992_6 where cfl_team = "calgary"
What was the report in the race where the winning team was Roush Fenway Racing?
create table table_2220432_1 (report varchar, team varchar, PRIMARY KEY (report))
select report from table_2220432_1 where team = "roush fenway racing"
Who was the vacator when Shadrach Bond was the successor?
create table table_225095_4 (vacator varchar, successor varchar, PRIMARY KEY (vacator))
select vacator from table_225095_4 where successor = "shadrach bond"
Name the team for chris duhon , nate robinson , david lee (3)
create table table_17060277_7 (team varchar, high_assists varchar, PRIMARY KEY (team))
select team from table_17060277_7 where high_assists = "chris duhon , nate robinson , david lee (3)"
What is every value for percentage(2006) with a Polish mother tongue?
create table table_189893_1 (percentage__2006_ varchar, mother_tongue varchar, PRIMARY KEY (percentage__2006_))
select percentage__2006_ from table_189893_1 where mother_tongue = "polish"
What was the surface when he played with John Alexander?
create table table_26309085_1 (surface varchar, partner varchar, PRIMARY KEY (surface))
select surface from table_26309085_1 where partner = "john alexander"
Who was the young rider classification when Alessandro Petacchi won?
create table table_28538368_2 (young_rider_classification varchar, winner varchar, PRIMARY KEY (young_rider_classification))
select young_rider_classification from table_28538368_2 where winner = "alessandro petacchi"
what's the sunday sōl (sun) with friday venus (venus) being vernes
create table table_1277350_1 (sunday_sōl__sun_ varchar, friday_venus__venus_ varchar, PRIMARY KEY (sunday_sōl__sun_))
select sunday_sōl__sun_ from table_1277350_1 where friday_venus__venus_ = "vernes"
Name the accrediatation for southeast technical institute
create table table_2076557_2 (accreditation varchar, school varchar, PRIMARY KEY (accreditation))
select accreditation from table_2076557_2 where school = "southeast technical institute"
Show the ids of all employees who have either destroyed a document or made an authorization to do this.
create table documents_to_be_destroyed (destroyed_by_employee_id varchar, destruction_authorised_by_employee_id varchar, PRIMARY KEY (destroyed_by_employee_id))
select destroyed_by_employee_id from documents_to_be_destroyed union select destruction_authorised_by_employee_id from documents_to_be_destroyed
If the location is Chicago, Illinois, what is the airport name?
create table table_18047346_4 (airport_name varchar, location varchar, PRIMARY KEY (airport_name))
select airport_name from table_18047346_4 where location = "chicago, illinois"
What date did the episode air that had a ranking of 17 for cable?
create table table_24399615_4 (airdate varchar, cable_rank varchar, PRIMARY KEY (airdate))
select airdate from table_24399615_4 where cable_rank = "17"
Who were the guests for the episode with an original airdate of december 07?
create table table_25691838_12 (guest varchar, original_airdate varchar, PRIMARY KEY (guest))
select guest from table_25691838_12 where original_airdate = "december 07"
What title episode did Paris Barclay direct?
create table table_20726262_2 (title varchar, directedby varchar, PRIMARY KEY (title))
select title from table_20726262_2 where directedby = "paris barclay"
Where was the home match against FK Rudar Ugljevik played?
create table table_29728596_1 (location varchar, away_team varchar, PRIMARY KEY (location))
select location from table_29728596_1 where away_team = "fk rudar ugljevik"
How many times a year is the Paris 20k road race held?
create table table_26166836_3 (month_held varchar, road_race varchar, PRIMARY KEY (month_held))
select count(month_held) from table_26166836_3 where road_race = "paris 20k"
Show the names of aircrafts that are associated with both an airport named "London Heathrow" and an airport named "London Gatwick"
create table airport (airport_id varchar, airport_name varchar, PRIMARY KEY (airport_id)); create table aircraft (aircraft varchar, aircraft_id varchar, PRIMARY KEY (aircraft)); create table airport_aircraft (aircraft_id varchar, airport_id varchar, PRIMARY KEY (aircraft_id))
select t1.aircraft from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.airport_name = "london heathrow" intersect select t1.aircraft from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.airport_name = "london gatwick"
If the gun used is the qf 12 pdr 12 cwt, what is the shell weight?
create table table_16439764_1 (shell__lb_ varchar, gun varchar, PRIMARY KEY (shell__lb_))
select shell__lb_ from table_16439764_1 where gun = "qf 12 pdr 12 cwt"
What is the English version of the title Getto Daun?
create table table_11839306_2 (english_title varchar, rōmaji_title varchar, PRIMARY KEY (english_title))
select english_title from table_11839306_2 where rōmaji_title = "getto daun"
How many entrants was yves giraud-cabantous?
create table table_21977627_1 (entrant varchar, driver varchar, PRIMARY KEY (entrant))
select count(entrant) from table_21977627_1 where driver = "yves giraud-cabantous"
What are Andrew McNamara's colors?
create table table_20095300_1 (colours varchar, jockey varchar, PRIMARY KEY (colours))
select colours from table_20095300_1 where jockey = "andrew mcnamara"
What was the date in which Behtash Fariba left his team?
create table table_22297140_3 (date_of_vacancy varchar, outgoing_manager varchar, PRIMARY KEY (date_of_vacancy))
select date_of_vacancy from table_22297140_3 where outgoing_manager = "behtash fariba"
Who is the color commentator when brian engblom is ice level reporters?
create table table_22485543_1 (color_commentator_s_ varchar, ice_level_reporters varchar, PRIMARY KEY (color_commentator_s_))
select color_commentator_s_ from table_22485543_1 where ice_level_reporters = "brian engblom"
What was the original title of Run for Money?
create table table_18162883_1 (original_title varchar, film_title_used_in_nomination varchar, PRIMARY KEY (original_title))
select original_title from table_18162883_1 where film_title_used_in_nomination = "run for money"
When καθ are the letters what is the nickname?
create table table_28436909_4 (nickname varchar, letters varchar, PRIMARY KEY (nickname))
select nickname from table_28436909_4 where letters = "καθ"
who are the directors of the episode that had 20.5 millions of north american viewers?
create table table_27714573_1 (directed_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_27714573_1 where us_viewers__millions_ = "20.5"
How many are the Race 2 points when Race 1 was 12?
create table table_23293785_3 (race_2_pts_ varchar, race_1_pts_ varchar, PRIMARY KEY (race_2_pts_))
select race_2_pts_ from table_23293785_3 where race_1_pts_ = 12
Which languages are offered in the coverage area of klang petaling jaya shah alam?
create table table_1837570_1 (language varchar, coverage_area varchar, PRIMARY KEY (language))
select language from table_1837570_1 where coverage_area = "klang petaling jaya shah alam"
What town is Volleyball Sportiv Complex (3 500) located in?
create table table_14015965_1 (town varchar, arena__capacity_ varchar, PRIMARY KEY (town))
select town from table_14015965_1 where arena__capacity_ = "volleyball sportiv complex (3 500)"
If second leg is Newell's Old Boys, what name is first leg?
create table table_17968229_1 (home__2nd_leg_ varchar, PRIMARY KEY (home__2nd_leg_))
select 1 as st_leg from table_17968229_1 where home__2nd_leg_ = "newell's old boys"
When the face value is 42¢, what was the issue's date?
create table table_15635768_1 (date_of_issue varchar, face_value varchar, PRIMARY KEY (date_of_issue))
select date_of_issue from table_15635768_1 where face_value = "42¢"
What was the lowest home attendance for the southern derby?
create table table_14302582_1 (home_attendance integer, competition varchar, PRIMARY KEY (home_attendance))
select min(home_attendance) from table_14302582_1 where competition = "southern derby"
What stadium does FK Jedinstvo 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 jedinstvo"
If the district ID is 74907, what is the name of the district?
create table table_22665117_1 (district_name varchar, dist_id varchar, PRIMARY KEY (district_name))
select district_name from table_22665117_1 where dist_id = 74907
How many members were added at the nchc (men only) conference?
create table table_27671835_3 (members_added varchar, conference varchar, PRIMARY KEY (members_added))
select members_added from table_27671835_3 where conference = "nchc (men only)"
What group had 29 studio albums?
create table table_19439814_1 (girl_group varchar, studio_albums varchar, PRIMARY KEY (girl_group))
select girl_group from table_19439814_1 where studio_albums = 29
Name the southern lakota for morning
create table table_1499791_2 (southern_lakota varchar, english_gloss varchar, PRIMARY KEY (southern_lakota))
select southern_lakota from table_1499791_2 where english_gloss = "morning"
Which Grand Prix was won by a car constructed by Jordan - Mugen-Honda?
create table table_1137694_3 (grand_prix varchar, winning_constructor varchar, PRIMARY KEY (grand_prix))
select grand_prix from table_1137694_3 where winning_constructor = "jordan - mugen-honda"
Who is the incumbent that is listed with the candidates listed as marilyn lloyd (d) 57.4% harold w. coker (r) 42.6%?
create table table_1341577_43 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent))
select incumbent from table_1341577_43 where candidates = "marilyn lloyd (d) 57.4% harold w. coker (r) 42.6%"
Name the decease spouse for carol deluise
create table table_24143253_1 (deceased_spouse varchar, name varchar, PRIMARY KEY (deceased_spouse))
select deceased_spouse from table_24143253_1 where name = "carol deluise"
What is the sub-parish of the church located in Fortun?
create table table_178398_1 (sub_parish__sogn_ varchar, location_of_the_church varchar, PRIMARY KEY (sub_parish__sogn_))
select sub_parish__sogn_ from table_178398_1 where location_of_the_church = "fortun"
what was the name of the team opponent to elfsborg
create table table_29261823_10 (team varchar, opponent varchar, PRIMARY KEY (team))
select team from table_29261823_10 where opponent = "elfsborg"
Name the bed 2010 for 6.5%
create table table_25256368_1 (february_2010 varchar, june_2010 varchar, PRIMARY KEY (february_2010))
select february_2010 from table_25256368_1 where june_2010 = "6.5%"
How many miles were driven with the average speed at 116.81?
create table table_2175858_1 (miles__km_ varchar, average_speed__mph_ varchar, PRIMARY KEY (miles__km_))
select miles__km_ from table_2175858_1 where average_speed__mph_ = "116.81"
in the detroit team who made the high points
create table table_30049462_5 (high_points varchar, team varchar, PRIMARY KEY (high_points))
select high_points from table_30049462_5 where team = "detroit"
When yakup şener is the athlete what is the round of 32?
create table table_27294107_11 (round_of_32 varchar, athlete varchar, PRIMARY KEY (round_of_32))
select round_of_32 from table_27294107_11 where athlete = "yakup şener"
What was segment C when segment D was fluorescent tubes?
create table table_15187735_1 (segment_c varchar, segment_d varchar, PRIMARY KEY (segment_c))
select segment_c from table_15187735_1 where segment_d = "fluorescent tubes"
For each trip, return its ending station's installation date.
create table station (installation_date varchar, id varchar, PRIMARY KEY (installation_date)); create table trip (id varchar, end_station_id varchar, PRIMARY KEY (id))
select t1.id, t2.installation_date from trip as t1 join station as t2 on t1.end_station_id = t2.id
Find the name of organizations whose names contain "Party".
create table organizations (organization_name varchar, PRIMARY KEY (organization_name))
select organization_name from organizations where organization_name like "%party%"
When tus rosenberg is the oberpfalz what is the oberbayern b?
create table table_23224961_1 (oberbayern_b varchar, oberpfalz varchar, PRIMARY KEY (oberbayern_b))
select oberbayern_b from table_23224961_1 where oberpfalz = "tus rosenberg"
How many outcome have a score of 7–6 (9–7) , 6–3?
create table table_22834834_3 (outcome varchar, score_in_the_final varchar, PRIMARY KEY (outcome))
select count(outcome) from table_22834834_3 where score_in_the_final = "7–6 (9–7) , 6–3"
How many unique labels are there for albums?
create table albums (label varchar, PRIMARY KEY (label))
select count(distinct label) from albums
Which conference is Belmont in?
create table table_16295365_1 (conference varchar, school varchar, PRIMARY KEY (conference))
select conference from table_16295365_1 where school = "belmont"
What episode did John Rogers direct?
create table table_20704243_6 (title varchar, directed_by varchar, PRIMARY KEY (title))
select title from table_20704243_6 where directed_by = "john rogers"
what's the thursday time with location being hawthorne
create table table_11019212_1 (thursday varchar, location varchar, PRIMARY KEY (thursday))
select thursday from table_11019212_1 where location = "hawthorne"
Who was the outgoing manager for Aberdeen?
create table table_16075179_6 (outgoing_manager varchar, team varchar, PRIMARY KEY (outgoing_manager))
select outgoing_manager from table_16075179_6 where team = "aberdeen"
Which candidates were in the election where Frank W. Boykin was an incumbent?
create table table_1341973_3 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341973_3 where incumbent = "frank w. boykin"
Who got second place when the winners were rafał mroczek & aneta piotrowska?
create table table_15988037_4 (second_place varchar, winner varchar, PRIMARY KEY (second_place))
select second_place from table_15988037_4 where winner = "rafał mroczek & aneta piotrowska"
Which Market/Rank is associated with WCRN calls?
create table table_10333757_1 (market_rank varchar, calls varchar, PRIMARY KEY (market_rank))
select market_rank from table_10333757_1 where calls = "wcrn"
How many pressure figures are given for the .380 acp cartridge?
create table table_173103_1 (max_pressure varchar, cartridge varchar, PRIMARY KEY (max_pressure))
select count(max_pressure) from table_173103_1 where cartridge = ".380 acp"
Name the team that has a song writer named larry spokes.
create table table_28243323_1 (club_name varchar, writer_composer varchar, PRIMARY KEY (club_name))
select club_name from table_28243323_1 where writer_composer = "larry spokes"
What is the genre for the hot fm station?
create table table_1601792_3 (genre varchar, station varchar, PRIMARY KEY (genre))
select genre from table_1601792_3 where station = "hot fm"
What is the average amount due for all the payments?
create table payments (amount_due integer, PRIMARY KEY (amount_due))
select avg(amount_due) from payments
Show all official native languages that contain the word "English".
create table country (official_native_language varchar, PRIMARY KEY (official_native_language))
select official_native_language from country where official_native_language like "%english%"
Who was the winning driver at Okayama International Circuit?
create table table_16670746_2 (winning_driver varchar, circuit varchar, PRIMARY KEY (winning_driver))
select winning_driver from table_16670746_2 where circuit = "okayama international circuit"
Find the number of professors in accounting department.
create table professor (dept_code varchar, PRIMARY KEY (dept_code)); create table department (dept_code varchar, PRIMARY KEY (dept_code))
select count(*) from professor as t1 join department as t2 on t1.dept_code = t2.dept_code where dept_name = "accounting"
Who directed the show that had a TV broadcast of S07E04?
create table table_16090262_1 (directed_by varchar, tv_broadcast varchar, PRIMARY KEY (directed_by))
select directed_by from table_16090262_1 where tv_broadcast = "s07e04"
What is the title of the episode directed by Charles Beeson?
create table table_24649082_1 (title varchar, directed_by varchar, PRIMARY KEY (title))
select title from table_24649082_1 where directed_by = "charles beeson"
Name the change 2009 to 2010 where international tourist arrivals is 9.4 million
create table table_14752049_3 (change__2009_to_2010_ varchar, international_tourist_arrivals__2011_ varchar, PRIMARY KEY (change__2009_to_2010_))
select change__2009_to_2010_ from table_14752049_3 where international_tourist_arrivals__2011_ = "9.4 million"
What's the type of the school whose students' name is spirits?
create table table_1973842_1 (type varchar, nickname varchar, PRIMARY KEY (type))
select type from table_1973842_1 where nickname = "spirits"
What is the winning span of the name martin kaymer?
create table table_1953516_1 (winning_span varchar, name varchar, PRIMARY KEY (winning_span))
select winning_span from table_1953516_1 where name = "martin kaymer"
How many seats are contested for independents?
create table table_20728138_1 (seats_contested varchar, party varchar, PRIMARY KEY (seats_contested))
select seats_contested from table_20728138_1 where party = "independents"
What is the chinese name for whom chan chi-yuen, paul is listed as the romanised name?
create table table_17964087_2 (chinese_name varchar, romanised_name varchar, PRIMARY KEY (chinese_name))
select chinese_name from table_17964087_2 where romanised_name = "chan chi-yuen, paul"
What is the institution with the nickname seahawks?
create table table_261927_1 (institution varchar, nickname varchar, PRIMARY KEY (institution))
select institution from table_261927_1 where nickname = "seahawks"
How may assists per game have 7.7 points per game?
create table table_2387461_1 (assists_per_game varchar, points_per_game varchar, PRIMARY KEY (assists_per_game))
select assists_per_game from table_2387461_1 where points_per_game = "7.7"
what is the lowest qualifying rank?
create table table_13114949_3 (qualifying_rank integer, PRIMARY KEY (qualifying_rank))
select min(qualifying_rank) from table_13114949_3
What is the name origin of Nike Fossae?
create table table_16799784_11 (name varchar, PRIMARY KEY (name))
select name as origin from table_16799784_11 where name = "nike fossae"
How many parties are there in races involving Dawson Mathis?
create table table_1341663_11 (party varchar, incumbent varchar, PRIMARY KEY (party))
select count(party) from table_1341663_11 where incumbent = "dawson mathis"
What are all values for male population in 2001 when sex ratio in 1991 is 896?
create table table_19589113_5 (male_population_2001 varchar, sex_ratio_‡_1991 varchar, PRIMARY KEY (male_population_2001))
select male_population_2001 from table_19589113_5 where sex_ratio_‡_1991 = 896
Who had the high point total when dee brown (5) had the high assist total?
create table table_13619105_4 (high_points varchar, high_assists varchar, PRIMARY KEY (high_points))
select high_points from table_13619105_4 where high_assists = "dee brown (5)"
Name the coronie for marowijne being 6.8%
create table table_16886076_1 (coronie varchar, marowijne varchar, PRIMARY KEY (coronie))
select coronie from table_16886076_1 where marowijne = "6.8%"
Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.
create table employee (name varchar, eid varchar, PRIMARY KEY (name)); create table certificate (eid varchar, aid varchar, PRIMARY KEY (eid)); create table aircraft (aid varchar, name varchar, PRIMARY KEY (aid))
select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.name = "boeing 737-800" intersect select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.name = "airbus a340-300"
What is the lowest overall amount of shutouts?
create table table_29743928_4 (shutouts integer, PRIMARY KEY (shutouts))
select min(shutouts) from table_29743928_4
Name the santee sisseton for morning
create table table_1499791_2 (santee_sisseton varchar, english_gloss varchar, PRIMARY KEY (santee_sisseton))
select santee_sisseton from table_1499791_2 where english_gloss = "morning"