question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
How many winning drivers were there in the race that had a fastest lap time of 56.920?
create table table_10706961_2 (winning_driver varchar, fastest_lap varchar, PRIMARY KEY (winning_driver))
select count(winning_driver) from table_10706961_2 where fastest_lap = "56.920"
What is the name of the circuit where the race xi Syracuse grand prix was held?
create table table_1140105_6 (circuit varchar, race_name varchar, PRIMARY KEY (circuit))
select circuit from table_1140105_6 where race_name = "xi syracuse grand prix"
Name the replaced by where date of vacancy is 31 december 2008 where position in table is 1st
create table table_17039232_3 (replaced_by varchar, date_of_vacancy varchar, position_in_table varchar, PRIMARY KEY (replaced_by))
select replaced_by from table_17039232_3 where date_of_vacancy = "31 december 2008" and position_in_table = "1st"
How many MotoGP winners were there when the circuit was Catalunya?
create table table_26781017_1 (motogp_winner varchar, circuit varchar, PRIMARY KEY (motogp_winner))
select count(motogp_winner) from table_26781017_1 where circuit = "catalunya"
How many bills where originally cosponsored in those years where the total of all amendments cosponsored was 0?
create table table_18852984_2 (bills_originally_cosponsored varchar, all_amendments_cosponsored varchar, PRIMARY KEY (bills_originally_cosponsored))
select bills_originally_cosponsored from table_18852984_2 where all_amendments_cosponsored = 0
what was the competitoin where the opponent is sheffield scimitars?
create table table_17120964_9 (competition varchar, opponent varchar, PRIMARY KEY (competition))
select competition from table_17120964_9 where opponent = "sheffield scimitars"
Which politican party has a birthday of November 10, 1880
create table table_10284385_1 (party varchar, date_of_birth varchar, PRIMARY KEY (party))
select party from table_10284385_1 where date_of_birth = "november 10, 1880"
How many teams had gary megson as an incoming manager
create table table_26914759_3 (position_in_table varchar, incoming_manager varchar, PRIMARY KEY (position_in_table))
select count(position_in_table) from table_26914759_3 where incoming_manager = "gary megson"
Which of the networks originate in Xalapa?
create table table_2899987_2 (network varchar, origin varchar, PRIMARY KEY (network))
select network from table_2899987_2 where origin = "xalapa"
Find the name of all customers whose name contains "Alex".
create table customers (customer_name varchar, PRIMARY KEY (customer_name))
select customer_name from customers where customer_name like "%alex%"
Which eagle riders have battle of the planets as zoltar?
create table table_17480471_3 (eagle_riders varchar, battle_of_the_planets varchar, PRIMARY KEY (eagle_riders))
select eagle_riders from table_17480471_3 where battle_of_the_planets = "zoltar"
When relay is the station type and 5kw is the power kw what is the branding?
create table table_23394920_1 (branding varchar, power_kw varchar, station_type varchar, PRIMARY KEY (branding))
select branding from table_23394920_1 where power_kw = "5kw" and station_type = "relay"
When the type is "reset" what is the description?
create table table_1507852_1 (description varchar, type varchar, PRIMARY KEY (description))
select description from table_1507852_1 where type = "reset"
Show all video games with type Collectible card game.
create table video_games (gname varchar, gtype varchar, PRIMARY KEY (gname))
select gname from video_games where gtype = "collectible card game"
Show each state and the number of addresses in each state.
create table addresses (state_province_county varchar, PRIMARY KEY (state_province_county))
select state_province_county, count(*) from addresses group by state_province_county
What is the record when the opponent is washington redskins?
create table table_18847692_2 (record varchar, opponent varchar, PRIMARY KEY (record))
select record from table_18847692_2 where opponent = "washington redskins"
Name the circuit for hertz british grand prix
create table table_27948565_1 (circuit varchar, grand_prix varchar, PRIMARY KEY (circuit))
select circuit from table_27948565_1 where grand_prix = "hertz british grand_prix"
What is the station type of smni tv-26 naga
create table table_12547903_2 (station_type varchar, branding varchar, PRIMARY KEY (station_type))
select station_type from table_12547903_2 where branding = "smni tv-26 naga"
How many primary conferences were held in Allendale, Michigan?
create table table_27361255_1 (primary_conference varchar, location varchar, PRIMARY KEY (primary_conference))
select count(primary_conference) from table_27361255_1 where location = "allendale, michigan"
What was the percentage of yes votes for the measure where the no votes number 199174?
create table table_256286_45 (_percentage_yes varchar, no_votes varchar, PRIMARY KEY (_percentage_yes))
select _percentage_yes from table_256286_45 where no_votes = 199174
What is the height in ft for number 42 for the rockets in 1993-94?
create table table_11734041_16 (height_in_ft varchar, no_s_ varchar, years_for_rockets varchar, PRIMARY KEY (height_in_ft))
select height_in_ft from table_11734041_16 where no_s_ = "42" and years_for_rockets = "1993-94"
Name the winner for date of nov 5, 1987
create table table_1594772_2 (winner varchar, match_date varchar, PRIMARY KEY (winner))
select winner from table_1594772_2 where match_date = "nov 5, 1987"
When 70 is the total points what is the rr4 points?
create table table_21489362_2 (rr4_pts varchar, total_pts varchar, PRIMARY KEY (rr4_pts))
select rr4_pts from table_21489362_2 where total_pts = 70
What's the largest number of abandoned games by any of the teams?
create table table_25368177_1 (abandoned integer, PRIMARY KEY (abandoned))
select max(abandoned) from table_25368177_1
What is no-yds when no.-yds is 1-13?
create table table_26176081_29 (no_yds varchar, PRIMARY KEY (no_yds))
select no_yds from table_26176081_29 where no_yds = "1-13"
What is the data point for s hindu where the buddhist data point is 73.0%?
create table table_14598_5 (s_hindu varchar, buddhist varchar, PRIMARY KEY (s_hindu))
select count(s_hindu) from table_14598_5 where buddhist = "73.0%"
Who made the comments for radio broadcast when Jan Gabrielsson made them for television broadcast?
create table table_2794180_11 (radio_commentator varchar, television_commentator varchar, PRIMARY KEY (radio_commentator))
select radio_commentator from table_2794180_11 where television_commentator = "jan gabrielsson"
What yacht had LOA Metres of 13.34?
create table table_25594271_2 (yacht varchar, loa__metres_ varchar, PRIMARY KEY (yacht))
select yacht from table_25594271_2 where loa__metres_ = "13.34"
Who had the fasted lap in motorsport arena oschersleben?
create table table_21321935_2 (fastest_lap varchar, circuit varchar, PRIMARY KEY (fastest_lap))
select fastest_lap from table_21321935_2 where circuit = "motorsport arena oschersleben"
What country submitted the movie the orphanage?
create table table_12842068_1 (submitting_country varchar, film_title_used_in_nomination varchar, PRIMARY KEY (submitting_country))
select submitting_country from table_12842068_1 where film_title_used_in_nomination = "the orphanage"
It was announced on July 2, 2006 that what asset was acquired?
create table table_1373542_1 (asset_acquired varchar, date_announced varchar, PRIMARY KEY (asset_acquired))
select asset_acquired from table_1373542_1 where date_announced = "july 2, 2006"
what's the comment with model name being 2.4 (2001-2007)
create table table_1147701_4 (comment varchar, model_name varchar, PRIMARY KEY (comment))
select comment from table_1147701_4 where model_name = "2.4 (2001-2007)"
If in arabic it is salām-, what is it in proto-semitic?
create table table_26919_7 (proto_semitic varchar, arabic varchar, PRIMARY KEY (proto_semitic))
select proto_semitic from table_26919_7 where arabic = "salām-"
What was the inroductory phase for the episode that originally aired january 21?
create table table_14835674_1 (introductory_phrase varchar, original_airdate varchar, PRIMARY KEY (introductory_phrase))
select introductory_phrase from table_14835674_1 where original_airdate = "january 21"
Where did the episode rank that was written by thomas l. moran?
create table table_28026156_1 (rank__week_ varchar, written_by varchar, PRIMARY KEY (rank__week_))
select rank__week_ from table_28026156_1 where written_by = "thomas l. moran"
How many million viewers watched episode number 20?
create table table_21025437_5 (viewers__millions_ varchar, episode_no varchar, PRIMARY KEY (viewers__millions_))
select viewers__millions_ from table_21025437_5 where episode_no = 20
Name the bocas for chironius multiventris septentrionalis
create table table_1850282_7 (bocas_is varchar, species varchar, PRIMARY KEY (bocas_is))
select bocas_is from table_1850282_7 where species = "chironius multiventris septentrionalis"
What is the dollar amount of ebit when the net profit is 120.6?
create table table_18077713_1 (ebit__us_$m_ varchar, net_profit__us_$m_ varchar, PRIMARY KEY (ebit__us_$m_))
select ebit__us_$m_ from table_18077713_1 where net_profit__us_$m_ = "120.6"
Find the ids of the problems that are reported by the staff whose last name is Bosco.
create table problems (problem_id varchar, reported_by_staff_id varchar, PRIMARY KEY (problem_id)); create table staff (staff_id varchar, staff_last_name varchar, PRIMARY KEY (staff_id))
select t1.problem_id from problems as t1 join staff as t2 on t1.reported_by_staff_id = t2.staff_id where t2.staff_last_name = "bosco"
What is the smallest frames per minute when the pixels are 5.0
create table table_1251878_3 (least_compression_at_24_fps varchar, mpix varchar, PRIMARY KEY (least_compression_at_24_fps))
select least_compression_at_24_fps from table_1251878_3 where mpix = "5.0"
When and where did Chen Qi win in men singles?
create table table_28138035_13 (year_location varchar, mens_singles varchar, PRIMARY KEY (year_location))
select year_location from table_28138035_13 where mens_singles = "chen qi"
How many teams had a point margin of 48?
create table table_28068063_3 (eliminated_from_competition varchar, points_margin varchar, PRIMARY KEY (eliminated_from_competition))
select count(eliminated_from_competition) from table_28068063_3 where points_margin = 48
List the studios of each film and the number of films produced by that studio.
create table film (studio varchar, PRIMARY KEY (studio))
select studio, count(*) from film group by studio
what is bb - blind bear where ba - running bear is tc - tile chariot?
create table table_2603017_2 (bb___blind_bear varchar, ba___running_bear varchar, PRIMARY KEY (bb___blind_bear))
select bb___blind_bear from table_2603017_2 where ba___running_bear = "tc - tile chariot"
Name the golden ticket for invesco field
create table table_22897967_1 (golden_tickets varchar, audition_venue varchar, PRIMARY KEY (golden_tickets))
select golden_tickets from table_22897967_1 where audition_venue = "invesco field"
Which type of policy is most frequently used? Give me the policy type code.
create table policies (policy_type_code varchar, PRIMARY KEY (policy_type_code))
select policy_type_code from policies group by policy_type_code order by count(*) desc limit 1
Name the company where index weighting % is 11.96
create table table_168274_1 (company varchar, index_weighting___percentage__at_17_january_2013 varchar, PRIMARY KEY (company))
select company from table_168274_1 where index_weighting___percentage__at_17_january_2013 = "11.96"
what is ҕь ҕь [ʁʲ/ɣʲ] when гь гь [ɡʲ] is ҷ ҷ [t͡ʃʼ]?
create table table_202365_2 (ҕь_ҕь_ varchar, ʁʲ_ɣʲ varchar, гь_гь_ varchar, ɡʲ varchar, PRIMARY KEY (ҕь_ҕь_))
select ҕь_ҕь_[ʁʲ_ɣʲ] from table_202365_2 where гь_гь_[ɡʲ] = "ҷ ҷ [t͡ʃʼ]"
Show the ids and details of the investors who have at least two transactions with type code "SALE".
create table transactions (investor_id varchar, transaction_type_code varchar, PRIMARY KEY (investor_id)); create table investors (investor_details varchar, investor_id varchar, PRIMARY KEY (investor_details))
select t2.investor_id, t1.investor_details from investors as t1 join transactions as t2 on t1.investor_id = t2.investor_id where t2.transaction_type_code = "sale" group by t2.investor_id having count(*) >= 2
Name the most maidens when e.r. 5.11
create table table_15700367_4 (maidens integer, er varchar, PRIMARY KEY (maidens))
select max(maidens) from table_15700367_4 where er = "5.11"
Name the 1st m for nor
create table table_14407512_24 (nationality varchar, PRIMARY KEY (nationality))
select 1 as st__m_ from table_14407512_24 where nationality = "nor"
Find all the name of documents without any sections.
create table document_sections (document_name varchar, document_code varchar, PRIMARY KEY (document_name)); create table documents (document_name varchar, document_code varchar, PRIMARY KEY (document_name))
select document_name from documents where not document_code in (select document_code from document_sections)
How did the election end for Robert Wexler?
create table table_1341453_11 (results varchar, incumbent varchar, PRIMARY KEY (results))
select results from table_1341453_11 where incumbent = "robert wexler"
What are the L2 cache specifications of part number amql64dam22gg?
create table table_27277284_27 (l2_cache varchar, order_part_number varchar, PRIMARY KEY (l2_cache))
select l2_cache from table_27277284_27 where order_part_number = "amql64dam22gg"
What municipality had 26839 people living in it in 2010?
create table table_216776_2 (municipality varchar, population__2010_ varchar, PRIMARY KEY (municipality))
select municipality from table_216776_2 where population__2010_ = 26839
How many county councils for the communist party of norway
create table table_203802_2 (county_councils___2011__ integer, english_party_name varchar, PRIMARY KEY (county_councils___2011__))
select max(county_councils___2011__) from table_203802_2 where english_party_name = "communist party of norway"
What team did a manager leave on 12 Dec 2009
create table table_22297198_3 (team varchar, date_of_vacancy varchar, PRIMARY KEY (team))
select team from table_22297198_3 where date_of_vacancy = "12 dec 2009"
Who got the mountains classification when Michael Albasini won the stage?
create table table_21804557_18 (mountains_classification varchar, metas_volantes_classification varchar, PRIMARY KEY (mountains_classification))
select mountains_classification from table_21804557_18 where metas_volantes_classification = "michael albasini"
What is the IHSA music class for the mascot that is the lancers?
create table table_27653955_1 (ihsa_music_class varchar, mascot varchar, PRIMARY KEY (ihsa_music_class))
select ihsa_music_class from table_27653955_1 where mascot = "lancers"
What is the title of the episode watched by 3.2 million viewers?
create table table_26448179_4 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title))
select title from table_26448179_4 where us_viewers__millions_ = "3.2"
List all information in the item table.
create table item (id varchar, PRIMARY KEY (id))
select * from item
How many car makers are there in each continents? List the continent name and the count.
create table countries (continent varchar, countryid varchar, PRIMARY KEY (continent)); create table continents (continent varchar, contid varchar, PRIMARY KEY (continent)); create table car_makers (country varchar, PRIMARY KEY (country))
select t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent join car_makers as t3 on t2.countryid = t3.country group by t1.continent
Where is the first class team of date of birth 20 november 1969?
create table table_11950720_4 (first_class_team varchar, date_of_birth varchar, PRIMARY KEY (first_class_team))
select first_class_team from table_11950720_4 where date_of_birth = "20 november 1969"
Who was the winning driver for the goodwood circuit?
create table table_1140117_5 (winning_driver varchar, circuit varchar, PRIMARY KEY (winning_driver))
select winning_driver from table_1140117_5 where circuit = "goodwood"
what is the filter when the wavelength is 222mm (k-band)?
create table table_2583036_1 (filter varchar, wavelength varchar, PRIMARY KEY (filter))
select filter from table_2583036_1 where wavelength = "222mm (k-band)"
Name the rally base for rallye de france alsace
create table table_23385853_1 (rally_base varchar, rally_name varchar, PRIMARY KEY (rally_base))
select rally_base from table_23385853_1 where rally_name = "rallye de france alsace"
Who were the candidates in the district whose incumbent is Joe Waggonner?
create table table_1341843_19 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341843_19 where incumbent = "joe waggonner"
Who is the star of the program on Thursdays 22:00~22:54 2005-04-xx to 2005-06-xx?
create table table_18540104_1 (starring_actors varchar, time_frame varchar, PRIMARY KEY (starring_actors))
select starring_actors from table_18540104_1 where time_frame = "thursdays 22:00~22:54 2005-04-xx to 2005-06-xx"
How many schools with greyhounds as their nickname?
create table table_1969634_1 (institution varchar, nickname varchar, PRIMARY KEY (institution))
select count(institution) from table_1969634_1 where nickname = "greyhounds"
What was the AB team's position in table?
create table table_27782699_3 (position_in_table varchar, team varchar, PRIMARY KEY (position_in_table))
select position_in_table from table_27782699_3 where team = "ab"
What are the details of the shops that can be accessed by walk?
create table tourist_attractions (tourist_attraction_id varchar, how_to_get_there varchar, PRIMARY KEY (tourist_attraction_id)); create table shops (shop_details varchar, shop_id varchar, PRIMARY KEY (shop_details))
select t1.shop_details from shops as t1 join tourist_attractions as t2 on t1.shop_id = t2.tourist_attraction_id where t2.how_to_get_there = "walk"
what's the mole with winner being frédérique huydts
create table table_13036251_1 (the_mole varchar, winner varchar, PRIMARY KEY (the_mole))
select the_mole from table_13036251_1 where winner = "frédérique huydts"
Who was the democratic candidate when the republican was frank wolf?
create table table_17503169_1 (democratic varchar, republican varchar, PRIMARY KEY (democratic))
select democratic from table_17503169_1 where republican = "frank wolf"
What is the highest number of maidens when the bowling best was 1/13?
create table table_15893020_2 (maidens integer, best_bowling varchar, PRIMARY KEY (maidens))
select max(maidens) from table_15893020_2 where best_bowling = "1/13"
How many different reasons are there for the change in Connecticut (3)?
create table table_18563954_3 (reason_for_change varchar, state__class_ varchar, PRIMARY KEY (reason_for_change))
select count(reason_for_change) from table_18563954_3 where state__class_ = "connecticut (3)"
How many championships were won for arena football?
create table table_21564794_3 (championships_in_st_louis varchar, sport varchar, PRIMARY KEY (championships_in_st_louis))
select championships_in_st_louis from table_21564794_3 where sport = "arena football"
Find the name of the department that has no students minored in?
create table department (dname varchar, dno varchar, PRIMARY KEY (dname)); create table minor_in (dno varchar, PRIMARY KEY (dno)); create table department (dname varchar, PRIMARY KEY (dname))
select dname from department except select t1.dname from department as t1 join minor_in as t2 on t1.dno = t2.dno
What were the home team scores when carlton was the home team?
create table table_16388478_2 (home_team varchar, PRIMARY KEY (home_team))
select home_team as score from table_16388478_2 where home_team = "carlton"
Against what opponent did the Wildcats have a record of 5-4?
create table table_24464253_1 (opponent varchar, record varchar, PRIMARY KEY (opponent))
select opponent from table_24464253_1 where record = "5-4"
If Firefox is 30.45%, what is the other Mozilla amount?
create table table_1876262_10 (other_mozilla varchar, firefox varchar, PRIMARY KEY (other_mozilla))
select other_mozilla from table_1876262_10 where firefox = "30.45%"
Show names of technicians in ascending order of quality rank of the machine they are assigned.
create table repair_assignment (machine_id varchar, technician_id varchar, PRIMARY KEY (machine_id)); create table machine (machine_id varchar, quality_rank varchar, PRIMARY KEY (machine_id)); create table technician (name varchar, technician_id varchar, PRIMARY KEY (name))
select t3.name from repair_assignment as t1 join machine as t2 on t1.machine_id = t2.machine_id join technician as t3 on t1.technician_id = t3.technician_id order by t2.quality_rank
Name the least mister international
create table table_30007505_1 (mister_international integer, PRIMARY KEY (mister_international))
select min(mister_international) from table_30007505_1
Which city has the least number of customers whose type code is "Good Credit Rating"?
create table customers (town_city varchar, customer_type_code varchar, PRIMARY KEY (town_city))
select town_city from customers where customer_type_code = "good credit rating" group by town_city order by count(*) limit 1
What race is held in Germany in the month of May?
create table table_26166836_3 (road_race varchar, country varchar, month_held varchar, PRIMARY KEY (road_race))
select road_race from table_26166836_3 where country = "germany" and month_held = "may"
Name the real life years of operation for amtrak
create table table_243664_1 (real_life_years_of_operation varchar, currently¹_part_of varchar, PRIMARY KEY (real_life_years_of_operation))
select real_life_years_of_operation from table_243664_1 where currently¹_part_of = "amtrak"
What's the code name of the wireless LAN with Chief River Centrino?
create table table_199666_1 (codename varchar, centrino varchar, PRIMARY KEY (codename))
select codename from table_199666_1 where centrino = "chief river"
what is the c (nf/km) when the l (mh/km) is 0.6099?
create table table_261642_3 (c__nf_km_ varchar, l__mh_km_ varchar, PRIMARY KEY (c__nf_km_))
select c__nf_km_ from table_261642_3 where l__mh_km_ = "0.6099"
When nicole dubuc duane capizzi is the writer who is the director?
create table table_29475589_3 (director varchar, writer_s_ varchar, PRIMARY KEY (director))
select director from table_29475589_3 where writer_s_ = "nicole dubuc duane capizzi"
What was the game site against the Dallas Texans?
create table table_17765888_1 (game_site varchar, opponent varchar, PRIMARY KEY (game_site))
select game_site from table_17765888_1 where opponent = "dallas texans"
On July 31, 2008, what are the Democrat: Vivian Davis Figures percentages?
create table table_16751596_12 (democrat varchar, dates_administered varchar, PRIMARY KEY (democrat))
select democrat as :_vivian_davis_figures from table_16751596_12 where dates_administered = "july 31, 2008"
What's the transit connection in Columbia City, Seattle?
create table table_22771048_2 (transit_connections varchar, city_neighborhood varchar, PRIMARY KEY (transit_connections))
select transit_connections from table_22771048_2 where city_neighborhood = "columbia city, seattle"
Name the number of scm system for nant, visual studio
create table table_22903426_1 (scm_system varchar, windows_builders varchar, PRIMARY KEY (scm_system))
select count(scm_system) from table_22903426_1 where windows_builders = "nant, visual studio"
When bergen is 88, what is the alesund?
create table table_19439864_2 (ålesund integer, bergen varchar, PRIMARY KEY (ålesund))
select min(ålesund) from table_19439864_2 where bergen = 88
What date did the episode with 8.28 million u.s. viewers originally air?
create table table_27910411_1 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_27910411_1 where us_viewers__millions_ = "8.28"
What nurses are on call with block floor 1 and block code 1? Tell me their names.
create table on_call (nurse varchar, blockfloor varchar, blockcode varchar, PRIMARY KEY (nurse))
select nurse from on_call where blockfloor = 1 and blockcode = 1
What was the record when Canty (5) was the high assists?
create table table_17118657_7 (record varchar, high_assists varchar, PRIMARY KEY (record))
select record from table_17118657_7 where high_assists = "canty (5)"
Name the number air date for 14.20 us viewers
create table table_16617011_1 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date))
select count(original_air_date) from table_16617011_1 where us_viewers__millions_ = "14.20"
What are the notes for svishtov , bulgaria?
create table table_242785_1 (notes varchar, main_legionary_base varchar, PRIMARY KEY (notes))
select notes from table_242785_1 where main_legionary_base = "svishtov , bulgaria"
What was the result of the election where william f. goodling was the incumbent?
create table table_1341522_41 (status varchar, incumbent varchar, PRIMARY KEY (status))
select status from table_1341522_41 where incumbent = "william f. goodling"
Who is the television commentator when the radio commentator is Galyna Babiy?
create table table_1998037_9 (television_commentator varchar, radio_commentator varchar, PRIMARY KEY (television_commentator))
select television_commentator from table_1998037_9 where radio_commentator = "galyna babiy"