question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
Show the most common nationality of hosts.
create table host (nationality varchar, PRIMARY KEY (nationality))
select nationality from host group by nationality order by count(*) desc limit 1
What film did michaylo ilyenko make with best actor in a supporting role?
create table table_10236830_1 (film_name varchar, director varchar, nomination varchar, PRIMARY KEY (film_name))
select film_name from table_10236830_1 where director = "michaylo ilyenko" and nomination = "best actor in a supporting role"
How many countries are listed?
create table countries (id varchar, PRIMARY KEY (id))
select count(*) from countries
Name the discipline for 1561 fis points
create table table_30073089_2 (discipline varchar, fis_points varchar, PRIMARY KEY (discipline))
select discipline from table_30073089_2 where fis_points = 1561
Which stadium had the result/game montreal 20 @ ottawa 10?
create table table_21436373_8 (stadium varchar, result_games varchar, PRIMARY KEY (stadium))
select stadium from table_21436373_8 where result_games = "montreal 20 @ ottawa 10"
Find the names of all physicians and their primary affiliated departments' names.
create table department (name varchar, departmentid varchar, PRIMARY KEY (name)); create table affiliated_with (physician varchar, department varchar, primaryaffiliation varchar, PRIMARY KEY (physician)); create table physician (name varchar, employeeid varchar, PRIMARY KEY (name))
select t1.name, t3.name from physician as t1 join affiliated_with as t2 on t1.employeeid = t2.physician join department as t3 on t2.department = t3.departmentid where t2.primaryaffiliation = 1
How many degrees does the engineering department offer?
create table degree_programs (department_id varchar, PRIMARY KEY (department_id)); create table departments (department_id varchar, department_name varchar, PRIMARY KEY (department_id))
select count(*) from departments as t1 join degree_programs as t2 on t1.department_id = t2.department_id where t1.department_name = 'engineer'
Name the genus/species of accession number bx897699.1
create table table_27155678_2 (genus_species varchar, accession_number varchar, PRIMARY KEY (genus_species))
select genus_species from table_27155678_2 where accession_number = "bx897699.1"
What is the original air date of the episode directed by Paul Marcus?
create table table_15026994_3 (original_air_date varchar, director varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_15026994_3 where director = "paul marcus"
Who is the team captain when the club is k.f.c. germinal beerschot?
create table table_27374004_2 (team_captain varchar, club varchar, PRIMARY KEY (team_captain))
select team_captain from table_27374004_2 where club = "k.f.c. germinal beerschot"
What was the location when the winning driver was Nathanaël Berthon?
create table table_25572068_1 (location varchar, winning_driver varchar, PRIMARY KEY (location))
select location from table_25572068_1 where winning_driver = "nathanaël berthon"
Who did the high assists in the game where Amar'e Stoudemire (10) did the high rebounds?
create table table_23285761_7 (high_assists varchar, high_rebounds varchar, PRIMARY KEY (high_assists))
select high_assists from table_23285761_7 where high_rebounds = "amar'e stoudemire (10)"
who is the the mens singles with mens doubles being kaj lindfors kaj osterberg
create table table_13857700_1 (mens_singles varchar, mens_doubles varchar, PRIMARY KEY (mens_singles))
select mens_singles from table_13857700_1 where mens_doubles = "kaj lindfors kaj osterberg"
Name the number of teams for 11th position september 10
create table table_25361570_2 (team varchar, position_in_table varchar, date_of_appointment varchar, PRIMARY KEY (team))
select count(team) from table_25361570_2 where position_in_table = "11th" and date_of_appointment = "september 10"
Name the host when first premiere is august 3, 2007
create table table_1597866_3 (host varchar, first_premiere varchar, PRIMARY KEY (host))
select host from table_1597866_3 where first_premiere = "august 3, 2007"
Who wrote the episode that had 8.84 million viewers?
create table table_21025437_5 (written_by varchar, viewers__millions_ varchar, PRIMARY KEY (written_by))
select written_by from table_21025437_5 where viewers__millions_ = "8.84"
When was the coin with the mass of 3.7 g first minted?
create table table_1307572_1 (first_minting varchar, mass varchar, PRIMARY KEY (first_minting))
select first_minting from table_1307572_1 where mass = "3.7 g"
When the change (2011 to 2012) is -0.1% what is the country?
create table table_14752049_6 (country varchar, change__2011_to_2012_ varchar, PRIMARY KEY (country))
select country from table_14752049_6 where change__2011_to_2012_ = "-0.1%"
When 0.6–1.4 is the b r (t) what is the h ci (ka/m)?
create table table_2282444_1 (h_ci__ka_m_ varchar, b_r__t_ varchar, PRIMARY KEY (h_ci__ka_m_))
select h_ci__ka_m_ from table_2282444_1 where b_r__t_ = "0.6–1.4"
What are the japanese title(s) for tv asahi?
create table table_18539834_2 (japanese_title varchar, tv_station varchar, PRIMARY KEY (japanese_title))
select japanese_title from table_18539834_2 where tv_station = "tv asahi"
When the high assists were Shawn Marion (6) who had high rebounds?
create table table_17323092_7 (high_rebounds varchar, high_assists varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_17323092_7 where high_assists = "shawn marion (6)"
How many students have advisors?
create table advisor (s_id varchar, PRIMARY KEY (s_id))
select count(distinct s_id) from advisor
Find the name of airports which do not have any flight in and out.
create table flights (airportname varchar, airportcode varchar, sourceairport varchar, destairport varchar, PRIMARY KEY (airportname)); create table airports (airportname varchar, airportcode varchar, sourceairport varchar, destairport varchar, PRIMARY KEY (airportname))
select airportname from airports where not airportcode in (select sourceairport from flights union select destairport from flights)
How many players had a best winning average of 20?
create table table_27533947_1 (games_won varchar, best_winning_average varchar, PRIMARY KEY (games_won))
select count(games_won) from table_27533947_1 where best_winning_average = "20"
What is the modern equivalent of the former kingdom "silla" with the hanja 尙州?
create table table_160510_1 (modern_equivalent varchar, former_kingdom varchar, hanja varchar, PRIMARY KEY (modern_equivalent))
select count(modern_equivalent) from table_160510_1 where former_kingdom = "silla" and hanja = "尙州"
What were the guests that aired on 7 June 2010?
create table table_26733129_1 (guests varchar, air_date varchar, PRIMARY KEY (guests))
select guests from table_26733129_1 where air_date = "7 june 2010"
How many route numbers occur for the origin of Birmingham and destination of Bristol?
create table table_3005999_1 (route_number varchar, origin varchar, destination varchar, PRIMARY KEY (route_number))
select count(route_number) from table_3005999_1 where origin = "birmingham" and destination = "bristol"
what is the score in fg-fga if in ft-fta is 16-21
create table table_23817012_6 (fg_fga varchar, ft_fta varchar, PRIMARY KEY (fg_fga))
select fg_fga from table_23817012_6 where ft_fta = "16-21"
What is the average finish when winnings equals $71,200?
create table table_2182562_1 (avg_finish varchar, winnings varchar, PRIMARY KEY (avg_finish))
select avg_finish from table_2182562_1 where winnings = "$71,200"
What are the first names of students studying in room 107?
create table list (firstname varchar, classroom varchar, PRIMARY KEY (firstname))
select distinct firstname from list where classroom = 107
For a processor with model number atom e665c and a TDP of 3.6 W, what is the sSpec number?
create table table_16729930_18 (sspec_number varchar, tdp varchar, model_number varchar, PRIMARY KEY (sspec_number))
select sspec_number from table_16729930_18 where tdp = "3.6 w" and model_number = "atom e665c"
Name the driver matched db for joseph grado signature
create table table_1601027_2 (driver_matched_db varchar, headphone_class varchar, PRIMARY KEY (driver_matched_db))
select driver_matched_db from table_1601027_2 where headphone_class = "joseph grado signature"
How much uranium did Russia use in 2006 to 2008?
create table table_15624586_2 (uranium_required_2006_08 varchar, country varchar, PRIMARY KEY (uranium_required_2006_08))
select uranium_required_2006_08 from table_15624586_2 where country = "russia"
What train number is heading to amritsar?
create table table_12095519_1 (train_no varchar, destination varchar, PRIMARY KEY (train_no))
select train_no from table_12095519_1 where destination = "amritsar"
When philippe gilbert is the winner who is the points classification?
create table table_18733814_2 (points_classification varchar, winner varchar, PRIMARY KEY (points_classification))
select points_classification from table_18733814_2 where winner = "philippe gilbert"
What is other when no party preference is 19.1%?
create table table_27003186_3 (other varchar, no_party_preference varchar, PRIMARY KEY (other))
select other from table_27003186_3 where no_party_preference = "19.1%"
What are the outcomes of the last 5 meetings where the overall record is UM, 2-1?
create table table_16201038_5 (last_5_meetings varchar, overall_record varchar, PRIMARY KEY (last_5_meetings))
select last_5_meetings from table_16201038_5 where overall_record = "um, 2-1"
When westcott 1935 is in division two how many leagues are in division three?
create table table_24575253_4 (division_three varchar, division_two varchar, PRIMARY KEY (division_three))
select count(division_three) from table_24575253_4 where division_two = "westcott 1935"
What is the overall attendance in the places where the average attendance was 17148?
create table table_2771237_1 (overall_attendance varchar, average_attendance varchar, PRIMARY KEY (overall_attendance))
select overall_attendance from table_2771237_1 where average_attendance = 17148
what's the notes where withdrawn is 1956–57
create table table_1181375_1 (notes varchar, withdrawn varchar, PRIMARY KEY (notes))
select notes from table_1181375_1 where withdrawn = "1956–57"
What is the ICT when education is 1.73 and KI is ag 1.99?
create table table_23050383_1 (ict varchar, education varchar, ki varchar, PRIMARY KEY (ict))
select ict from table_23050383_1 where education = "1.73" and ki = "1.99"
Find the number of phones for each accreditation type.
create table phone (accreditation_type varchar, PRIMARY KEY (accreditation_type))
select accreditation_type, count(*) from phone group by accreditation_type
Who are thebmix artists when tears for fears is artist 1 and eric prydz is artist 2?
create table table_23649244_1 (mix_artist varchar, artist_1 varchar, artist_2 varchar, PRIMARY KEY (mix_artist))
select mix_artist from table_23649244_1 where artist_1 = "tears for fears" and artist_2 = "eric prydz"
What are the id and the amount of refund of the booking that incurred the most times of payments?
create table payments (booking_id varchar, PRIMARY KEY (booking_id)); create table bookings (booking_id varchar, amount_of_refund varchar, PRIMARY KEY (booking_id))
select t1.booking_id, t1.amount_of_refund from bookings as t1 join payments as t2 on t1.booking_id = t2.booking_id group by t1.booking_id order by count(*) desc limit 1
What is the transcription of the sanskrit word chandra?
create table table_180802_3 (transcription varchar, sanskrit_word varchar, PRIMARY KEY (transcription))
select transcription from table_180802_3 where sanskrit_word = "chandra"
Name the record for milwaukee
create table table_23248940_7 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_23248940_7 where team = "milwaukee"
What was the gender of the contestant on RR: South Pacific season?
create table table_18974269_1 (gender varchar, original_season varchar, PRIMARY KEY (gender))
select gender from table_18974269_1 where original_season = "rr: south pacific"
How many team franchises are active, with active value 'Y'?
create table team_franchise (active varchar, PRIMARY KEY (active))
select count(*) from team_franchise where active = 'y'
Who are the mens doubles and and mens singles is lee hyun-il?
create table table_13553701_1 (mens_doubles varchar, mens_singles varchar, PRIMARY KEY (mens_doubles))
select mens_doubles from table_13553701_1 where mens_singles = "lee hyun-il"
What are all the possible breed type and size type combinations?
create table dogs (breed_code varchar, size_code varchar, PRIMARY KEY (breed_code))
select distinct breed_code, size_code from dogs
What is the lyric fm for rnag 93.2?
create table table_18475946_2 (lyric_fm__mhz_ varchar, rnag__mhz_ varchar, PRIMARY KEY (lyric_fm__mhz_))
select lyric_fm__mhz_ from table_18475946_2 where rnag__mhz_ = "93.2"
Name the city for ада
create table table_2562572_5 (city___municipality varchar, cyrillic_name varchar, PRIMARY KEY (city___municipality))
select city___municipality from table_2562572_5 where cyrillic_name = "ада"
How long has Mel Daniels been playing?
create table table_22719663_3 (experience varchar, name varchar, PRIMARY KEY (experience))
select experience from table_22719663_3 where name = "mel daniels"
On week 11 when Dixon scored an 8, what was tonioli's score?
create table table_2803106_1 (tonioli varchar, week__number varchar, dixon varchar, PRIMARY KEY (tonioli))
select tonioli from table_2803106_1 where week__number = 11 and dixon = "8"
What is the pinyin name for the english name xin county?
create table table_2847477_2 (pinyin varchar, english_name varchar, PRIMARY KEY (pinyin))
select pinyin from table_2847477_2 where english_name = "xin county"
Carl Elliott is a member of which party?
create table table_1342149_3 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1342149_3 where incumbent = "carl elliott"
What was the reading score in the year the science score was 96.13?
create table table_2534578_1 (reading varchar, science varchar, PRIMARY KEY (reading))
select reading from table_2534578_1 where science = "96.13"
Which college is present in the hometown of Crete, Illinois?
create table table_11677691_9 (college varchar, hometown varchar, PRIMARY KEY (college))
select college from table_11677691_9 where hometown = "crete, illinois"
How many different results for red (e8) does the model with parchment/saddle interior/roof have?
create table table_2066296_5 (red__e8_ varchar, interior_roof varchar, PRIMARY KEY (red__e8_))
select count(red__e8_) from table_2066296_5 where interior_roof = "parchment/saddle"
who is the coach where dudley tuckey medal is ben howlett
create table table_1165048_1 (coach varchar, dudley_tuckey_medal varchar, PRIMARY KEY (coach))
select coach from table_1165048_1 where dudley_tuckey_medal = "ben howlett"
How many outcomes are listed when the final opponent was Johan Kriek?
create table table_22597626_5 (outcome varchar, opponent_in_the_final varchar, PRIMARY KEY (outcome))
select count(outcome) from table_22597626_5 where opponent_in_the_final = "johan kriek"
Name the won promotion for kalmar ff
create table table_2119448_3 (won_promotion varchar, lost_promotion_playoffs varchar, PRIMARY KEY (won_promotion))
select won_promotion from table_2119448_3 where lost_promotion_playoffs = "kalmar ff"
What is the county for senator C. Anthony Muse?
create table table_11948857_1 (county_s__represented varchar, member_senator varchar, PRIMARY KEY (county_s__represented))
select county_s__represented from table_11948857_1 where member_senator = "c. anthony muse"
List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".
create table cartoon (title varchar, directed_by varchar, PRIMARY KEY (title))
select title from cartoon where directed_by = "ben jones" or directed_by = "brandon vietti"
Find the name of bank branches that provided some loans.
create table loan (branch_id varchar, PRIMARY KEY (branch_id)); create table bank (bname varchar, branch_id varchar, PRIMARY KEY (bname))
select distinct t1.bname from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id
What is the webkit version when the minor version was 3.1.2.?
create table table_24257833_4 (webkit_version varchar, minor_version varchar, PRIMARY KEY (webkit_version))
select webkit_version from table_24257833_4 where minor_version = "3.1.2"
How many year locations are there for the womens doubles in jing junhong li jiawei?
create table table_28138035_20 (year_location varchar, womens_doubles varchar, PRIMARY KEY (year_location))
select count(year_location) from table_28138035_20 where womens_doubles = "jing junhong li jiawei"
How many times has Ma Long won the men's singles?
create table table_28138035_33 (mens_doubles varchar, mens_singles varchar, PRIMARY KEY (mens_doubles))
select count(mens_doubles) from table_28138035_33 where mens_singles = "ma long"
What is the name of the writer when the ratings was 2.61 million?
create table table_23705843_1 (writer varchar, ratings__millions_ varchar, PRIMARY KEY (writer))
select writer from table_23705843_1 where ratings__millions_ = "2.61"
During the 2013 debut, what is the w-I(total) number?
create table table_11233358_2 (w_l__total_ varchar, debut varchar, PRIMARY KEY (w_l__total_))
select count(w_l__total_) from table_11233358_2 where debut = 2013
What is the original title of the film submitted by Greece?
create table table_18994724_1 (original_title varchar, submitting_country varchar, PRIMARY KEY (original_title))
select original_title from table_18994724_1 where submitting_country = "greece"
What date did the episode written by Mitch Watson and directed by Curt Geda originally air in the U.S.?
create table table_28511558_2 (original_air_date__us_ varchar, directed_by varchar, written_by varchar, PRIMARY KEY (original_air_date__us_))
select original_air_date__us_ from table_28511558_2 where directed_by = "curt geda" and written_by = "mitch watson"
Who played in Maryland the same year that New Jersey hosted Somerset Hills LL Bernardsville?
create table table_13012165_1 (maryland varchar, new_jersey varchar, PRIMARY KEY (maryland))
select maryland from table_13012165_1 where new_jersey = "somerset hills ll bernardsville"
Name the main location for public and masters university
create table table_2076533_1 (main_location varchar, control varchar, type varchar, PRIMARY KEY (main_location))
select main_location from table_2076533_1 where control = "public" and type = "masters university"
Return the names of singers who are from UK and released an English song.
create table song (artist_name varchar, languages varchar, PRIMARY KEY (artist_name)); create table artist (artist_name varchar, PRIMARY KEY (artist_name)); create table artist (artist_name varchar, country varchar, PRIMARY KEY (artist_name))
select artist_name from artist where country = "uk" intersect select t1.artist_name from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.languages = "english"
Who had the fastest lap in the race where Patrick Tambay was on the pole?
create table table_1140073_2 (fastest_lap varchar, pole_position varchar, PRIMARY KEY (fastest_lap))
select fastest_lap from table_1140073_2 where pole_position = "patrick tambay"
Who were the candidates when ed markey was the incumbent?
create table table_1341395_22 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341395_22 where incumbent = "ed markey"
What was the language of "Mein Name Ist Bach"?
create table table_22034853_1 (language_s_ varchar, film_title_used_in_nomination varchar, PRIMARY KEY (language_s_))
select language_s_ from table_22034853_1 where film_title_used_in_nomination = "mein name ist bach"
What record label corresponds to the single "I can't stay"?
create table table_18710512_3 (record_label varchar, single varchar, PRIMARY KEY (record_label))
select record_label from table_18710512_3 where single = "i can't stay"
Name the text for 心猿意马
create table table_16162581_1 (text varchar, simplified_characters varchar, PRIMARY KEY (text))
select text from table_16162581_1 where simplified_characters = "心猿意马"
What was the airdate of the episode that was directed by giancarlo volpe and written by is john o'bryan?
create table table_14562722_1 (original_air_date varchar, directed_by varchar, written_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_14562722_1 where directed_by = "giancarlo volpe" and written_by = "john o'bryan"
How many inhabitants does Sweden have per square kilometer?
create table table_24066938_1 (pop_density_people_km_2 varchar, member_state varchar, PRIMARY KEY (pop_density_people_km_2))
select pop_density_people_km_2 from table_24066938_1 where member_state = "sweden"
With team #21/#07 ss-green light racing, what was the average finish number?
create table table_2190919_3 (avg_finish varchar, team_s_ varchar, PRIMARY KEY (avg_finish))
select avg_finish from table_2190919_3 where team_s_ = "#21/#07 ss-green light racing"
what row is the population of Latin America/Caribbean when Asia is 4,894 (46.1%)?
create table table_19017269_5 (latin_america_caribbean varchar, asia varchar, PRIMARY KEY (latin_america_caribbean))
select count(latin_america_caribbean) from table_19017269_5 where asia = "4,894 (46.1%)"
What is the part number for s-spec number sk096?
create table table_15261_1 (part_number varchar, s_spec_number varchar, PRIMARY KEY (part_number))
select part_number from table_15261_1 where s_spec_number = "sk096"
What are the womens singles of naoko fukuman kurumi yonao?
create table table_12104319_1 (womens_singles varchar, womens_doubles varchar, PRIMARY KEY (womens_singles))
select womens_singles from table_12104319_1 where womens_doubles = "naoko fukuman kurumi yonao"
What was the title of the episode directed by Rowan Woods?
create table table_23918997_1 (title varchar, directed_by varchar, PRIMARY KEY (title))
select title from table_23918997_1 where directed_by = "rowan woods"
Show the locations that have more than one railways.
create table railway (location varchar, PRIMARY KEY (location))
select location from railway group by location having count(*) > 1
How many athletes were named federico muller?
create table table_29521180_35 (quarterfinals varchar, athlete varchar, PRIMARY KEY (quarterfinals))
select count(quarterfinals) from table_29521180_35 where athlete = "federico muller"
Find the states which do not have any employee in their record.
create table employees (state_province_county varchar, address_id varchar, employee_address_id varchar, PRIMARY KEY (state_province_county)); create table addresses (state_province_county varchar, address_id varchar, employee_address_id varchar, PRIMARY KEY (state_province_county))
select state_province_county from addresses where not address_id in (select employee_address_id from employees)
How many times did incumbent ruben hinojosa get elected?
create table table_1341453_45 (results varchar, incumbent varchar, PRIMARY KEY (results))
select count(results) from table_1341453_45 where incumbent = "ruben hinojosa"
How many locations are listed for the winner Temple?
create table table_22645714_5 (tournament_venue__city_ varchar, tournament_winner varchar, PRIMARY KEY (tournament_venue__city_))
select count(tournament_venue__city_) from table_22645714_5 where tournament_winner = "temple"
What were all USAF space flights when the aximum speed was 3822?
create table table_221315_3 (usaf_space_flights varchar, max_speed__mph_ varchar, PRIMARY KEY (usaf_space_flights))
select usaf_space_flights from table_221315_3 where max_speed__mph_ = 3822
What is the number for march 27-29 whern november 3 is 153?
create table table_25252080_3 (march_27_29 varchar, november_3 varchar, PRIMARY KEY (march_27_29))
select march_27_29 from table_25252080_3 where november_3 = "153"
If the equation is 8 × 9² + 8 × 9 + 8, what is the 2nd throw?
create table table_17265535_7 (equation varchar, PRIMARY KEY (equation))
select min(2 as nd_throw) from table_17265535_7 where equation = "8 × 9² + 8 × 9 + 8"
Which institution does "Katsuhiro Ueno" belong to?
create table authorship (authid varchar, instid varchar, PRIMARY KEY (authid)); create table authors (authid varchar, fname varchar, lname varchar, PRIMARY KEY (authid)); create table inst (name varchar, instid varchar, PRIMARY KEY (name))
select distinct t3.name from authors as t1 join authorship as t2 on t1.authid = t2.authid join inst as t3 on t2.instid = t3.instid where t1.fname = "katsuhiro" and t1.lname = "ueno"
Name the points for top tens being 24 and ownder david pearson
create table table_27786562_1 (points__margin_ varchar, top_tens varchar, owner varchar, PRIMARY KEY (points__margin_))
select points__margin_ from table_27786562_1 where top_tens = 24 and owner = "david pearson"
Name the runs conceded where overs bowled is 53
create table table_15700367_2 (runs_conceded varchar, overs_bowled varchar, PRIMARY KEY (runs_conceded))
select count(runs_conceded) from table_15700367_2 where overs_bowled = "53"
Who were the commanders when 8 off 0 men were wounded?
create table table_11793221_2 (commander varchar, wounded varchar, PRIMARY KEY (commander))
select commander from table_11793221_2 where wounded = "8 off 0 men"
What was the domestic box office for "House on Haunted Hill"?
create table table_2203760_4 (domestic_box_office varchar, film varchar, PRIMARY KEY (domestic_box_office))
select domestic_box_office from table_2203760_4 where film = "house on haunted hill"