question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
find the name of the program that was launched most recently.
create table program (name varchar, launch varchar, PRIMARY KEY (name))
select name from program order by launch desc limit 1
Name the reason for change when George W. Greene (D) was the vacator.
create table table_2417345_4 (reason_for_change varchar, vacator varchar, PRIMARY KEY (reason_for_change))
select reason_for_change from table_2417345_4 where vacator = "george w. greene (d)"
How many numbers were recorded for high points when the team played against Oklahoma City?
create table table_17311783_6 (high_points varchar, team varchar, PRIMARY KEY (high_points))
select count(high_points) from table_17311783_6 where team = "oklahoma city"
If the armor is bronze cuirass , linothorax, what are the close ranged weapons?
create table table_27704991_1 (close_ranged_weapons varchar, armor varchar, PRIMARY KEY (close_ranged_weapons))
select close_ranged_weapons from table_27704991_1 where armor = "bronze cuirass , linothorax"
How many Phonetic Greek words translate to grenouille in French?
create table table_2077192_2 (phonetic_greek varchar, french varchar, PRIMARY KEY (phonetic_greek))
select count(phonetic_greek) from table_2077192_2 where french = "grenouille"
Who are all the candidates who ran in the district where Ralph Regula is the incumbent?
create table table_1341577_36 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341577_36 where incumbent = "ralph regula"
What is every country with a TV network of AXN India?
create table table_18821196_1 (country varchar, tv_network_s_ varchar, PRIMARY KEY (country))
select country from table_18821196_1 where tv_network_s_ = "axn india"
Which opponent led to a 5-2 record?
create table table_24560733_1 (opponent varchar, record varchar, PRIMARY KEY (opponent))
select opponent from table_24560733_1 where record = "5-2"
how many president with date of inauguration being 4june1979
create table table_12134383_1 (president varchar, date_of_inauguration varchar, PRIMARY KEY (president))
select count(president) from table_12134383_1 where date_of_inauguration = "4june1979"
If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw?
create table table_17265535_7 (equation varchar, PRIMARY KEY (equation))
select 2 as nd_throw from table_17265535_7 where equation = "1 × 9² + 4 × 9 + 0"
What was the candidates for hardie scott
create table table_1342198_38 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1342198_38 where incumbent = "hardie scott"
Which one of the songs was originally performed by Rickie Lee Jones?
create table table_12310814_1 (song_choice varchar, original_artist varchar, PRIMARY KEY (song_choice))
select song_choice from table_12310814_1 where original_artist = "rickie lee jones"
What's the 2nd leg result in the round where team #1 is Iraklis?
create table table_19130829_4 (team__number1 varchar, PRIMARY KEY (team__number1))
select 2 as nd_leg from table_19130829_4 where team__number1 = "iraklis"
When using a .375 Winchester, what is the muzzle energy?
create table table_16010376_1 (muzzle_energy varchar, cartridge varchar, PRIMARY KEY (muzzle_energy))
select muzzle_energy from table_16010376_1 where cartridge = ".375 winchester"
How many different types are allocated to the institution in Bridgewater, Massachusetts?
create table table_261927_2 (type varchar, location varchar, PRIMARY KEY (type))
select count(type) from table_261927_2 where location = "bridgewater, massachusetts"
Name the density for pennsbury village
create table table_22916979_5 (density varchar, densest_incorporated_place varchar, PRIMARY KEY (density))
select density from table_22916979_5 where densest_incorporated_place = "pennsbury village"
What is the up/down associated with the Subiaco Oval?
create table table_2472711_32 (up_down varchar, venue varchar, PRIMARY KEY (up_down))
select up_down from table_2472711_32 where venue = "subiaco oval"
What mobile markets have cvt hd?
create table table_25839957_5 (cvt_hd varchar, market varchar, PRIMARY KEY (cvt_hd))
select cvt_hd from table_25839957_5 where market = "mobile"
How many licenses have mind workstation software?
create table table_15038373_1 (license varchar, software varchar, PRIMARY KEY (license))
select count(license) from table_15038373_1 where software = "mind workstation"
How many wines are produced at Robert Biale winery?
create table wine (winery varchar, PRIMARY KEY (winery))
select count(*) from wine where winery = "robert biale"
what is the team where winnings is $81,690?
create table table_1708014_2 (team_s_ varchar, winnings varchar, PRIMARY KEY (team_s_))
select team_s_ from table_1708014_2 where winnings = "$81,690"
Pink cytoplasm is seen in a test that specifically stains what?
create table table_13570_1 (specifically_stains varchar, cytoplasm varchar, PRIMARY KEY (specifically_stains))
select specifically_stains from table_13570_1 where cytoplasm = "pink"
What was the original air date of the episode that was directed by Alex Zakrzewski?
create table table_27491610_2 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_27491610_2 where directed_by = "alex zakrzewski"
Name the sanskrit word and meaning for aquarius
create table table_20354_7 (sanskrit_word_and_meaning varchar, zodiac_sign varchar, PRIMARY KEY (sanskrit_word_and_meaning))
select sanskrit_word_and_meaning from table_20354_7 where zodiac_sign = "aquarius"
What was the official ITV1 HD rating in millions for the episode that had an official ITV1 rating of 8.98 million?
create table table_27319183_5 (official_itv1_hd_rating__millions_ varchar, official_itv1_rating__millions_ varchar, PRIMARY KEY (official_itv1_hd_rating__millions_))
select official_itv1_hd_rating__millions_ from table_27319183_5 where official_itv1_rating__millions_ = "8.98"
Which athlete is from Mexico City?
create table table_1231316_7 (athlete varchar, location varchar, PRIMARY KEY (athlete))
select athlete from table_1231316_7 where location = "mexico city"
What are the records when Elzbieta Urbanczik competed?
create table table_14884844_2 (record varchar, athletes varchar, PRIMARY KEY (record))
select record from table_14884844_2 where athletes = "elzbieta urbanczik"
What is the most common mill type, and how many are there?
create table mill (type varchar, PRIMARY KEY (type))
select type, count(*) from mill group by type order by count(*) desc limit 1
What is the broadcast date where Jason's team is Rhod Gilbert and Shappi Khorsandi?
create table table_23292220_8 (first_broadcast varchar, jasons_team varchar, PRIMARY KEY (first_broadcast))
select first_broadcast from table_23292220_8 where jasons_team = "rhod gilbert and shappi khorsandi"
Name the singer for bruce forsyth
create table table_29135051_2 (singer_s_ varchar, guest_s_ varchar, PRIMARY KEY (singer_s_))
select singer_s_ from table_29135051_2 where guest_s_ = "bruce forsyth"
If the qatari female is 918, what is the total number of females?
create table table_26214389_3 (total_female varchar, qatari_female varchar, PRIMARY KEY (total_female))
select total_female from table_26214389_3 where qatari_female = 918
If you get a ranking as major in the english military then what would the spanish military address you as?
create table table_1015521_2 (rank_in_spanish varchar, rank_in_english varchar, PRIMARY KEY (rank_in_spanish))
select rank_in_spanish from table_1015521_2 where rank_in_english = "major"
what's the report with location  österreichring
create table table_1140080_2 (report varchar, location varchar, PRIMARY KEY (report))
select report from table_1140080_2 where location = "österreichring"
List the first and last name of the students who do not have any food type allergy.
create table student (fname varchar, lname varchar, stuid varchar, PRIMARY KEY (fname)); create table allergy_type (allergy varchar, allergytype varchar, PRIMARY KEY (allergy)); create table has_allergy (stuid varchar, allergy varchar, PRIMARY KEY (stuid))
select fname, lname from student where not stuid in (select t1.stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = "food")
What are the first name, last name, and gender of all the good customers? Order by their last name.
create table customers (first_name varchar, last_name varchar, gender_mf varchar, good_or_bad_customer varchar, PRIMARY KEY (first_name))
select first_name, last_name, gender_mf from customers where good_or_bad_customer = 'good' order by last_name
What is the theme song for Magarikado no Kanojo?
create table table_18540104_1 (theme_song_s_ varchar, romaji_title varchar, PRIMARY KEY (theme_song_s_))
select theme_song_s_ from table_18540104_1 where romaji_title = "magarikado no kanojo"
What's the name of the episode whose part 3 aired on February 7, 2008?
create table table_13241993_3 (title varchar, part_3 varchar, PRIMARY KEY (title))
select title from table_13241993_3 where part_3 = "february 7, 2008"
What was the manner of departure for Edgar Schmitt of the Stuttgarter Kickers?
create table table_17085981_2 (manner_of_departure varchar, team varchar, outgoing_manager varchar, PRIMARY KEY (manner_of_departure))
select manner_of_departure from table_17085981_2 where team = "stuttgarter kickers" and outgoing_manager = "edgar schmitt"
Name the total number of dar for disney channel and number is 613
create table table_15887683_9 (dar varchar, television_service varchar, n° varchar, PRIMARY KEY (dar))
select count(dar) from table_15887683_9 where television_service = "disney channel" and n° = 613
How many distinct incident type codes are there?
create table behavior_incident (incident_type_code varchar, PRIMARY KEY (incident_type_code))
select count(distinct incident_type_code) from behavior_incident
What's the part 3 of the verb with part 4 gelopen?
create table table_1745843_7 (part_3 varchar, part_4 varchar, PRIMARY KEY (part_3))
select part_3 from table_1745843_7 where part_4 = "gelopen"
What packages offer the Cartello Promozionale Sky HD service?
create table table_15887683_3 (package_option varchar, television_service varchar, PRIMARY KEY (package_option))
select package_option from table_15887683_3 where television_service = "cartello promozionale sky hd"
Who was the runner-up (a) if K. P. Ramalingam won the election?
create table table_22752982_5 (runner_up_a varchar, winner varchar, PRIMARY KEY (runner_up_a))
select runner_up_a from table_22752982_5 where winner = "k. p. ramalingam"
Show all sport name and the number of students.
create table sportsinfo (sportname varchar, PRIMARY KEY (sportname))
select sportname, count(*) from sportsinfo group by sportname
What is the input clock (mhz) for s-spec number sk096?
create table table_15261_1 (input_clock__mhz_ varchar, s_spec_number varchar, PRIMARY KEY (input_clock__mhz_))
select input_clock__mhz_ from table_15261_1 where s_spec_number = "sk096"
Who was the supporting actress in "For Whom the Bell Tolls"?
create table table_24225238_1 (supporting_actress varchar, film varchar, PRIMARY KEY (supporting_actress))
select supporting_actress from table_24225238_1 where film = "for whom the bell tolls"
Who are all the major users of the Gordon Close-Support Weapon System?
create table table_29474407_11 (major_users varchar, name__designation varchar, PRIMARY KEY (major_users))
select major_users from table_29474407_11 where name__designation = "gordon close-support weapon system"
who directed the episode that have 14.59 million viewers
create table table_19417244_2 (directed_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_19417244_2 where us_viewers__millions_ = "14.59"
What was the number for Bötzow where Vehlefanz is 1.800?
create table table_11680175_1 (bötzow varchar, vehlefanz varchar, PRIMARY KEY (bötzow))
select bötzow from table_11680175_1 where vehlefanz = "1.800"
what's the jurisdiction where percent yes is 43.4
create table table_120778_2 (jurisdiction varchar, percent_yes varchar, PRIMARY KEY (jurisdiction))
select jurisdiction from table_120778_2 where percent_yes = "43.4"
How many apartment bookings are there in total?
create table apartment_bookings (id varchar, PRIMARY KEY (id))
select count(*) from apartment_bookings
Name the total number of wind m/s for sunday emmanuel
create table table_1231316_6 (wind__m_s_ varchar, athlete varchar, PRIMARY KEY (wind__m_s_))
select count(wind__m_s_) from table_1231316_6 where athlete = "sunday emmanuel"
How many films were in assamese?
create table table_25926120_3 (name_of_film varchar, language varchar, PRIMARY KEY (name_of_film))
select count(name_of_film) from table_25926120_3 where language = "assamese"
Who wrote the teleplay for the episode directed by Tim Robbins?
create table table_26914076_4 (teleplay_by varchar, directed_by varchar, PRIMARY KEY (teleplay_by))
select teleplay_by from table_26914076_4 where directed_by = "tim robbins"
Name the hebrew for tisʕ-
create table table_26919_6 (hebrew varchar, arabic varchar, PRIMARY KEY (hebrew))
select hebrew from table_26919_6 where arabic = "tisʕ-"
What car make was sponsored by Aflac?
create table table_27940569_1 (make varchar, sponsor varchar, PRIMARY KEY (make))
select make from table_27940569_1 where sponsor = "aflac"
Name the wininng yacht for 14 entries
create table table_256862_1 (winning_yacht varchar, entries varchar, PRIMARY KEY (winning_yacht))
select winning_yacht from table_256862_1 where entries = "14"
Name the incelandic of the glossary for 218
create table table_13003460_1 (the_icelandic_of_the_glossary varchar, word_number varchar, PRIMARY KEY (the_icelandic_of_the_glossary))
select the_icelandic_of_the_glossary from table_13003460_1 where word_number = "218"
Name the national for rimutaka
create table table_20217811_1 (national varchar, electorate varchar, PRIMARY KEY (national))
select national from table_20217811_1 where electorate = "rimutaka"
Where was the audition venue where Peninha was the guest fourth judge?
create table table_27615445_1 (audition_venue varchar, guest_fourth_judge varchar, PRIMARY KEY (audition_venue))
select audition_venue from table_27615445_1 where guest_fourth_judge = "peninha"
How many family friendly games are in the 1990s?
create table table_14160327_4 (family_friendly varchar, decade varchar, PRIMARY KEY (family_friendly))
select count(family_friendly) from table_14160327_4 where decade = "1990s"
Please show different denominations and the corresponding number of schools in descending order.
create table school (denomination varchar, PRIMARY KEY (denomination))
select denomination, count(*) from school group by denomination order by count(*) desc
What is the number of distinct teams that suffer elimination?
create table elimination (team varchar, PRIMARY KEY (team))
select count(distinct team) from elimination
How many regions had 153 women prison inmates?
create table table_25042332_31 (incarceration_rate_total varchar, prison_inmates_women varchar, PRIMARY KEY (incarceration_rate_total))
select count(incarceration_rate_total) from table_25042332_31 where prison_inmates_women = 153
What party does William J. Jefferson?
create table table_1341453_20 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1341453_20 where incumbent = "william j. jefferson"
How many items were under ranking l.a.(2) when the world ranking was 21st?
create table table_19948664_2 (ranking_la__2_ varchar, world_ranking__1_ varchar, PRIMARY KEY (ranking_la__2_))
select count(ranking_la__2_) from table_19948664_2 where world_ranking__1_ = "21st"
Name the recopa sudamericana 1992 for did not qualify for libertadores 1992 and round of 16 for bragantino
create table table_15013825_8 (recopa_sudamericana_1992 varchar, team varchar, copa_libertadores_1992 varchar, copa_conmebol_1992 varchar, PRIMARY KEY (recopa_sudamericana_1992))
select recopa_sudamericana_1992 from table_15013825_8 where copa_libertadores_1992 = "did not qualify" and copa_conmebol_1992 = "round of 16" and team = "bragantino"
How many terms began when the term ended in January 3, 1989?
create table table_197446_1 (term_began varchar, term_ended varchar, PRIMARY KEY (term_began))
select count(term_began) from table_197446_1 where term_ended = "january 3, 1989"
In what week was the original singer Whitney Houston.
create table table_23871828_1 (week__number varchar, original_artist varchar, PRIMARY KEY (week__number))
select week__number from table_23871828_1 where original_artist = "whitney houston"
Name the equipment for bike number 6
create table table_16941304_4 (equipment varchar, bike_no varchar, PRIMARY KEY (equipment))
select equipment from table_16941304_4 where bike_no = 6
What team drafted a player from Sweden?
create table table_2897457_1 (nhl_team varchar, nationality varchar, PRIMARY KEY (nhl_team))
select nhl_team from table_2897457_1 where nationality = "sweden"
What are the chip model and screen mode of the phone with hardware model name "LG-P760"?
create table phone (chip_model varchar, screen_mode varchar, hardware_model_name varchar, PRIMARY KEY (chip_model))
select chip_model, screen_mode from phone where hardware_model_name = "lg-p760"
What are the names of conductors whose nationalities are not "USA"?
create table conductor (name varchar, nationality varchar, PRIMARY KEY (name))
select name from conductor where nationality <> 'usa'
When london irish was eliminated from competition who proceeded to quarter final?
create table table_27987767_3 (proceed_to_quarter_final varchar, eliminated_from_competition varchar, PRIMARY KEY (proceed_to_quarter_final))
select proceed_to_quarter_final from table_27987767_3 where eliminated_from_competition = "london irish"
When were the callback auditions at Hilton Riverside Hotel held?
create table table_27455867_1 (callback_audition_date varchar, callback_venue varchar, PRIMARY KEY (callback_audition_date))
select callback_audition_date from table_27455867_1 where callback_venue = "hilton riverside hotel"
what is the minimum norwegian americans (1980) where state is rhode island
create table table_1182314_5 (norwegian_americans__1980_ integer, state varchar, PRIMARY KEY (norwegian_americans__1980_))
select min(norwegian_americans__1980_) from table_1182314_5 where state = "rhode island"
how many local title with televbeingion network being tv nova website
create table table_13779832_1 (local_title varchar, television_network varchar, PRIMARY KEY (local_title))
select count(local_title) from table_13779832_1 where television_network = "tv nova website"
What is the nickname of the institution from Concordia University, Nebraska?
create table table_262508_1 (nickname varchar, institution varchar, PRIMARY KEY (nickname))
select nickname from table_262508_1 where institution = "concordia university, nebraska"
Name the location for black, orange
create table table_26466528_1 (location varchar, colors varchar, PRIMARY KEY (location))
select location from table_26466528_1 where colors = "black, orange"
What record was set when the result/game was equal to 9 games (28,595 avg.)
create table table_21436373_8 (type_of_record varchar, result_games varchar, PRIMARY KEY (type_of_record))
select type_of_record from table_21436373_8 where result_games = "9 games (28,595 avg.)"
How many donors have endowment for school named "Glenn"?
create table school (school_id varchar, school_name varchar, PRIMARY KEY (school_id)); create table endowment (donator_name varchar, school_id varchar, PRIMARY KEY (donator_name))
select count(distinct t1.donator_name) from endowment as t1 join school as t2 on t1.school_id = t2.school_id where t2.school_name = "glenn"
Who is the writer with the ratings 14.8?
create table table_26591434_1 (writer varchar, ratings__kanto_ varchar, PRIMARY KEY (writer))
select writer from table_26591434_1 where ratings__kanto_ = "14.8"
List the name and gender for all artists who released songs in March.
create table song (artist_name varchar, releasedate varchar, PRIMARY KEY (artist_name)); create table artist (artist_name varchar, gender varchar, PRIMARY KEY (artist_name))
select t1.artist_name, t1.gender from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.releasedate like "%mar%"
What is the Alpha 3 code for the area also known as FO?
create table table_222771_1 (alpha_3_code varchar, alpha_2_code varchar, PRIMARY KEY (alpha_3_code))
select alpha_3_code from table_222771_1 where alpha_2_code = "fo"
Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.
create table engineer_visits (engineer_id varchar, PRIMARY KEY (engineer_id)); create table maintenance_engineers (engineer_id varchar, first_name varchar, last_name varchar, PRIMARY KEY (engineer_id))
select t1.engineer_id, t1.first_name, t1.last_name from maintenance_engineers as t1 join engineer_visits as t2 on t1.engineer_id = t2.engineer_id group by t1.engineer_id order by count(*) limit 1
When fort irwin-barstow/victorville is the type of fare what is the cash fare?
create table table_20803241_1 (cash_fare varchar, type_of_fare varchar, PRIMARY KEY (cash_fare))
select cash_fare from table_20803241_1 where type_of_fare = "fort irwin-barstow/victorville"
What's the number of users in the Nisibon-Yuma within the Del Este district?
create table table_20018310_1 (users___number_ varchar, irrigation_district varchar, juntas_de_regantes__wub_ varchar, PRIMARY KEY (users___number_))
select users___number_ from table_20018310_1 where irrigation_district = "del este" and juntas_de_regantes__wub_ = "nisibon-yuma"
What is the civil parish of the cappanaboul townland?
create table table_30120547_1 (civil_parish varchar, townland varchar, PRIMARY KEY (civil_parish))
select civil_parish from table_30120547_1 where townland = "cappanaboul"
With the population in 2005 of 572, what is the former name?
create table table_21302_1 (former_name varchar, population__2005_ varchar, PRIMARY KEY (former_name))
select former_name from table_21302_1 where population__2005_ = 572
What is the zip code of the address where the teacher with first name "Lyla" lives?
create table teachers (address_id varchar, first_name varchar, PRIMARY KEY (address_id)); create table addresses (zip_postcode varchar, address_id varchar, PRIMARY KEY (zip_postcode))
select t1.zip_postcode from addresses as t1 join teachers as t2 on t1.address_id = t2.address_id where t2.first_name = "lyla"
What is the brand name associated with the model 4x0?
create table table_24099628_1 (brand_name varchar, model__list_ varchar, PRIMARY KEY (brand_name))
select brand_name from table_24099628_1 where model__list_ = "4x0"
Who are all the assistant principals that served from 2013-2014 under the principal Cort Monroe?
create table table_14254419_3 (assistant varchar, principal__2013_2014_ varchar, PRIMARY KEY (assistant))
select assistant as principal__2013_2014_ from table_14254419_3 where principal__2013_2014_ = "cort monroe"
Where is store 1 located?
create table store (address_id varchar, PRIMARY KEY (address_id)); create table address (address varchar, address_id varchar, PRIMARY KEY (address))
select t2.address from store as t1 join address as t2 on t1.address_id = t2.address_id where store_id = 1
Who had the high rebounds when the record was 14–7?
create table table_27723228_8 (high_rebounds varchar, record varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_27723228_8 where record = "14–7"
What is the type where the name is bojan?
create table table_11891841_2 (type varchar, name varchar, PRIMARY KEY (type))
select type from table_11891841_2 where name = "bojan"
how many managers left sunshine stars?
create table table_28164986_4 (outgoing_manager varchar, team varchar, PRIMARY KEY (outgoing_manager))
select count(outgoing_manager) from table_28164986_4 where team = "sunshine stars"
Name who directed the episode that was viewed by 4.22 million
create table table_18569389_1 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_18569389_1 where us_viewers__million_ = "4.22"
When Saginaw's fare is $470.47, what was the fare to Grand Rapids?
create table table_1637981_7 (grand_rapids__grr_ varchar, saginaw__mbs_ varchar, PRIMARY KEY (grand_rapids__grr_))
select grand_rapids__grr_ from table_1637981_7 where saginaw__mbs_ = "$470.47"
Who was the GT2 Winning Team if Greg Mansell Leo Mansell was the LMP1 Winning Team?
create table table_24865763_2 (gt2_winning_team varchar, lmp1_winning_team varchar, PRIMARY KEY (gt2_winning_team))
select gt2_winning_team from table_24865763_2 where lmp1_winning_team = "greg mansell leo mansell"
How many episodes had their first air date on March 6, 2008?
create table table_11220799_2 (episode_titles varchar, first_air_date varchar, PRIMARY KEY (episode_titles))
select count(episode_titles) from table_11220799_2 where first_air_date = "march 6, 2008"