question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
For the model/engine of 1.8 Duratec HE, what is the torque?
create table table_1212189_1 (torque__nm__rpm varchar, model_engine varchar, PRIMARY KEY (torque__nm__rpm))
select torque__nm__rpm from table_1212189_1 where model_engine = "1.8 duratec he"
Name the devices per channel for 2560
create table table_174151_5 (devices_per_channel varchar, raw_bandwidth__mbit_s_ varchar, PRIMARY KEY (devices_per_channel))
select devices_per_channel from table_174151_5 where raw_bandwidth__mbit_s_ = 2560
What is the total number of January (°C) temperatures when the July (°C) temperatures were 22/13?
create table table_21980_1 (january__ varchar, july__°c_ varchar, PRIMARY KEY (january__))
select count(january__) as °c_ from table_21980_1 where july__°c_ = "22/13"
where was the abbas family and the pickering family located
create table table_19897294_9 (location_s_ varchar, family_families varchar, PRIMARY KEY (location_s_))
select location_s_ from table_19897294_9 where family_families = "the abbas family and the pickering family"
Which team picked from South Carolina college?
create table table_14649522_1 (nfl_team varchar, college varchar, PRIMARY KEY (nfl_team))
select nfl_team from table_14649522_1 where college = "south carolina"
What is every missile type with a code and location of M-20 Harbor Drive?
create table table_22282917_26 (missile_type varchar, code_ varchar, _location varchar, PRIMARY KEY (missile_type))
select missile_type from table_22282917_26 where code_ & _location = "m-20 harbor drive"
Find the distinct number of president votes.
create table voting_record (president_vote varchar, PRIMARY KEY (president_vote))
select count(distinct president_vote) from voting_record
Find the male friend of Alice whose job is a doctor?
create table personfriend (friend varchar, name varchar, PRIMARY KEY (friend)); create table person (name varchar, job varchar, gender varchar, PRIMARY KEY (name))
select t2.friend from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = 'alice' and t1.gender = 'male' and t1.job = 'doctor'
If the founding university is in Charlotte, NC, what is the nickname?
create table table_2538117_7 (nickname varchar, founding_university varchar, PRIMARY KEY (nickname))
select nickname from table_2538117_7 where founding_university = "charlotte, nc"
Name the dominant religion for village for бачко добро поље
create table table_2562572_20 (dominant_religion__2002_ varchar, type varchar, cyrillic_name_other_names varchar, PRIMARY KEY (dominant_religion__2002_))
select dominant_religion__2002_ from table_2562572_20 where type = "village" and cyrillic_name_other_names = "бачко добро поље"
Name the high assists for chauncey billups , carmelo anthony (18)
create table table_17355408_4 (high_assists varchar, high_points varchar, PRIMARY KEY (high_assists))
select high_assists from table_17355408_4 where high_points = "chauncey billups , carmelo anthony (18)"
List all characteristics of product named "sesame" with type code "Grade".
create table characteristics (characteristic_name varchar, characteristic_id varchar, characteristic_type_code varchar, PRIMARY KEY (characteristic_name)); create table products (product_id varchar, product_name varchar, PRIMARY KEY (product_id)); create table product_characteristics (product_id varchar, characteristic_id varchar, PRIMARY KEY (product_id))
select t3.characteristic_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t1.product_name = "sesame" and t3.characteristic_type_code = "grade"
What was the ER average for the player that conceded 368 runs?
create table table_15700367_6 (er varchar, runs_conceded varchar, PRIMARY KEY (er))
select er from table_15700367_6 where runs_conceded = 368
What is the highest 2001 population when the ethnic group is white: british?
create table table_282413_3 (ethnic_group varchar, PRIMARY KEY (ethnic_group))
select max(2001 as _population) from table_282413_3 where ethnic_group = "white: british"
What is the date founded/founder when the emblem was Hercules?
create table table_242785_3 (date_founded__founder varchar, emblem varchar, PRIMARY KEY (date_founded__founder))
select date_founded__founder from table_242785_3 where emblem = "hercules"
What is the highest number of Brisbane viewers?
create table table_24291077_4 (brisbane integer, PRIMARY KEY (brisbane))
select max(brisbane) from table_24291077_4
How many parties does incumbent stephen pace represent?
create table table_1342249_11 (party varchar, incumbent varchar, PRIMARY KEY (party))
select count(party) from table_1342249_11 where incumbent = "stephen pace"
What is the dominant religion in степановићево during 2002?
create table table_2562572_9 (dominant_religion__2002_ varchar, cyrillic_name_other_names varchar, PRIMARY KEY (dominant_religion__2002_))
select dominant_religion__2002_ from table_2562572_9 where cyrillic_name_other_names = "степановићево"
What are the name and description for role code "MG"?
create table roles (role_name varchar, role_description varchar, role_code varchar, PRIMARY KEY (role_name))
select role_name, role_description from roles where role_code = "mg"
What are the descriptions of all the project outcomes?
create table research_outcomes (outcome_description varchar, outcome_code varchar, PRIMARY KEY (outcome_description)); create table project_outcomes (outcome_code varchar, PRIMARY KEY (outcome_code))
select t1.outcome_description from research_outcomes as t1 join project_outcomes as t2 on t1.outcome_code = t2.outcome_code
What are the papers published under the institution "Indiana University"?
create table inst (instid varchar, name varchar, PRIMARY KEY (instid)); create table authorship (paperid varchar, instid varchar, PRIMARY KEY (paperid)); create table papers (title varchar, paperid varchar, PRIMARY KEY (title))
select distinct t1.title from papers as t1 join authorship as t2 on t1.paperid = t2.paperid join inst as t3 on t2.instid = t3.instid where t3.name = "indiana university"
What is the location and population of the institution called Bluefield College?
create table table_262534_2 (location__population_ varchar, institution varchar, PRIMARY KEY (location__population_))
select location__population_ from table_262534_2 where institution = "bluefield college"
If the original air date is February 4, 2003, what is the episode title?
create table table_228973_9 (title varchar, original_air_date varchar, PRIMARY KEY (title))
select title from table_228973_9 where original_air_date = "february 4, 2003"
Name the ply (uk, nz, au) for fingering
create table table_20297668_1 (ply__uk varchar, _nz varchar, _au_ varchar, yarn_type__us_ varchar, PRIMARY KEY (ply__uk))
select ply__uk, _nz, _au_ from table_20297668_1 where yarn_type__us_ = "fingering"
Find the name and address of the department that has the highest number of students.
create table student (dept_code varchar, PRIMARY KEY (dept_code)); create table department (dept_name varchar, dept_address varchar, dept_code varchar, PRIMARY KEY (dept_name))
select t2.dept_name, t2.dept_address from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code order by count(*) desc limit 1
What's LSU's overall record/
create table table_22993636_2 (overall_record varchar, team varchar, PRIMARY KEY (overall_record))
select overall_record from table_22993636_2 where team = "lsu"
Which viewers have the language of troff (typesetter runoff) , groff (gnu runoff)?
create table table_1574968_1 (viewer varchar, language varchar, PRIMARY KEY (viewer))
select viewer from table_1574968_1 where language = "troff (typesetter runoff) , groff (gnu runoff)"
Name the most 2012/13 for university of cambridge
create table table_25057928_1 (institute varchar, PRIMARY KEY (institute))
select max(2012 as _13) from table_25057928_1 where institute = "university of cambridge"
Which team names have 44.5 for tumbling?
create table table_22014431_3 (team_name varchar, tumbling varchar, PRIMARY KEY (team_name))
select team_name from table_22014431_3 where tumbling = "44.5"
What is the sector when the population change 2002-2012 (%) is 79.6?
create table table_12496904_1 (sector varchar, population_change_2002_2012___percentage_ varchar, PRIMARY KEY (sector))
select sector from table_12496904_1 where population_change_2002_2012___percentage_ = "79.6"
How many years did notre dame participate?
create table table_1571238_2 (years_participated integer, team varchar, PRIMARY KEY (years_participated))
select max(years_participated) from table_1571238_2 where team = "notre dame"
List the names and birth dates of people in ascending alphabetical order of name.
create table people (name varchar, birth_date varchar, PRIMARY KEY (name))
select name, birth_date from people order by name
what is the total number of record where streak is l2 and leading scorer is roy : 23
create table table_11964047_5 (record varchar, streak varchar, leading_scorer varchar, PRIMARY KEY (record))
select count(record) from table_11964047_5 where streak = "l2" and leading_scorer = "roy : 23"
What was the number of music directors where the suresh wadkar co singer of bhayanak?
create table table_11827596_4 (music_director varchar, co_singer varchar, film_name varchar, PRIMARY KEY (music_director))
select count(music_director) from table_11827596_4 where co_singer = "suresh wadkar" and film_name = "bhayanak"
How many dirty electric grid rocky mountains (denver) vehicles have an epa rated combined fuel economy of 102 mpg-e (33kw-hrs/100mi)?
create table table_23840623_4 (dirty_electric_grid_rocky_mountains__denver_ varchar, epa_rated_combined_fuel_economy varchar, PRIMARY KEY (dirty_electric_grid_rocky_mountains__denver_))
select count(dirty_electric_grid_rocky_mountains__denver_) from table_23840623_4 where epa_rated_combined_fuel_economy = "102 mpg-e (33kw-hrs/100mi)"
What's the smallest number for cores of any of the processor models?
create table table_24099916_1 (cores integer, PRIMARY KEY (cores))
select min(cores) from table_24099916_1
Who is the director of the fimm Biola Tak Berdawai?
create table table_13719788_1 (director varchar, original_title varchar, PRIMARY KEY (director))
select director from table_13719788_1 where original_title = "biola tak berdawai"
What is draft detail of the document with id 7?
create table document_drafts (draft_details varchar, document_id varchar, PRIMARY KEY (draft_details))
select draft_details from document_drafts where document_id = 7
List all directors from episodes with viewership of 1.945 million.
create table table_22835602_1 (directed_by varchar, viewers__in_millions_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_22835602_1 where viewers__in_millions_ = "1.945"
What is the number of the sail with an overall length of 13.68?
create table table_25595107_2 (sail_number varchar, loa__metres_ varchar, PRIMARY KEY (sail_number))
select sail_number from table_25595107_2 where loa__metres_ = "13.68"
Who's the captain of the team whose head coach is Alistair Edwards?
create table table_1301373_1 (captain varchar, head_coach varchar, PRIMARY KEY (captain))
select captain from table_1301373_1 where head_coach = "alistair edwards"
What was the cause of death in the marriage that lasted 28 years?
create table table_24143253_4 (cause_of_death varchar, length_of_marriage varchar, PRIMARY KEY (cause_of_death))
select cause_of_death from table_24143253_4 where length_of_marriage = "28 years"
Name the date of appointment for petrik sander
create table table_17327264_3 (date_of_appointment varchar, replaced_by varchar, PRIMARY KEY (date_of_appointment))
select date_of_appointment from table_17327264_3 where replaced_by = "petrik sander"
How many annual interchanges in the millions occurred in 2011-12 when the number of annual entry/exits was 36.609 million?
create table table_18118221_1 (annual_interchanges__millions__2011_12 varchar, annual_entry_exit__millions__2011_12 varchar, PRIMARY KEY (annual_interchanges__millions__2011_12))
select annual_interchanges__millions__2011_12 from table_18118221_1 where annual_entry_exit__millions__2011_12 = "36.609"
Show the names of singers that have more than one song.
create table song (singer_id varchar, PRIMARY KEY (singer_id)); create table singer (name varchar, singer_id varchar, PRIMARY KEY (name))
select t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id group by t1.name having count(*) > 1
Who sang for the movie Amar Deep?
create table table_2528382_5 (singer varchar, movie_album varchar, PRIMARY KEY (singer))
select singer from table_2528382_5 where movie_album = "amar deep"
Name the number of details for emlyn road
create table table_211615_2 (details varchar, station varchar, PRIMARY KEY (details))
select count(details) from table_211615_2 where station = "emlyn road"
What is the location of the school named Brisbane Girls' Grammar School?
create table table_11318462_29 (location varchar, school varchar, PRIMARY KEY (location))
select location from table_11318462_29 where school = "brisbane girls' grammar school"
Is icewind dale available for windows
create table table_1322914_1 (windows varchar, title varchar, PRIMARY KEY (windows))
select windows from table_1322914_1 where title = "icewind dale"
When Yale is listed as the regular season winner, what tournament venue is given?
create table table_28365816_2 (tournament_venue__city_ varchar, regular_season_winner varchar, PRIMARY KEY (tournament_venue__city_))
select tournament_venue__city_ from table_28365816_2 where regular_season_winner = "yale"
Which organizations were founded in 1972, but became WOSM members until 1977?
create table table_104858_1 (name_of_member_organization varchar, year_member_organization_was_founded varchar, year_current_scouting_organization_joined_wosm varchar, PRIMARY KEY (name_of_member_organization))
select name_of_member_organization from table_104858_1 where year_member_organization_was_founded = "1972" and year_current_scouting_organization_joined_wosm = "1977"
How many viewers watched the episode with a story by david simon & mari kornhauser?
create table table_26914076_3 (us_viewers__millions_ varchar, story_by varchar, PRIMARY KEY (us_viewers__millions_))
select us_viewers__millions_ from table_26914076_3 where story_by = "david simon & mari kornhauser"
How many items in inventory does store 1 have?
create table inventory (store_id varchar, PRIMARY KEY (store_id))
select count(*) from inventory where store_id = 1
Name the champion for london hunt and country club ( london , on )
create table table_1628792_1 (champion varchar, tournament_location varchar, PRIMARY KEY (champion))
select champion from table_1628792_1 where tournament_location = "london hunt and country club ( london , on )"
Who made the challenge in the Australian Grand Prix?
create table table_25531112_2 (challenge varchar, event varchar, PRIMARY KEY (challenge))
select challenge from table_25531112_2 where event = "australian grand prix"
Name the total number of immunity for cycle number of 13
create table table_16976547_2 (immunity varchar, cycle_no varchar, PRIMARY KEY (immunity))
select count(immunity) from table_16976547_2 where cycle_no = "13"
How many 3rd ru does Canada have?
create table table_17522854_6 (country varchar, PRIMARY KEY (country))
select count(3 as rd_ru) from table_17522854_6 where country = "canada"
Who wrote the episode that was set in winter 1541/february 13, 1542?
create table table_10413597_5 (written_by varchar, setting varchar, PRIMARY KEY (written_by))
select written_by from table_10413597_5 where setting = "winter 1541/february 13, 1542"
What country made the Flieger-Doppelpistole 1919?
create table table_29474407_11 (country_of_origin varchar, name__designation varchar, PRIMARY KEY (country_of_origin))
select country_of_origin from table_29474407_11 where name__designation = "flieger-doppelpistole 1919"
For a processor with part number cy80632007221ab and TDP of 3.6 W, What are the available GPU frequencies?
create table table_16729930_18 (gpu_frequency varchar, tdp varchar, part_number_s_ varchar, PRIMARY KEY (gpu_frequency))
select gpu_frequency from table_16729930_18 where tdp = "3.6 w" and part_number_s_ = "cy80632007221ab"
How many texture (gt/s) the card has if the tdp (watts) GPU only is 18?
create table table_26860595_2 (texture___gt__s_ varchar, tdp__watts__gpu_only varchar, PRIMARY KEY (texture___gt__s_))
select count(texture___gt__s_) from table_26860595_2 where tdp__watts__gpu_only = "18"
what's the province where member is frederick merriman category:articles with hcards
create table table_1193568_1 (province varchar, member varchar, PRIMARY KEY (province))
select province from table_1193568_1 where member = "frederick merriman category:articles with hcards"
What was the largest number of aggravated assaults when there were 3811 robberies?
create table table_25271777_1 (aggravated_assault integer, robbery varchar, PRIMARY KEY (aggravated_assault))
select max(aggravated_assault) from table_25271777_1 where robbery = 3811
Name the high points for 30-23
create table table_23286158_8 (high_points varchar, record varchar, PRIMARY KEY (high_points))
select high_points from table_23286158_8 where record = "30-23"
What is the best finish for the player whose earnings was $421050?
create table table_29504351_2 (best_finish varchar, earnings__$_ varchar, PRIMARY KEY (best_finish))
select best_finish from table_29504351_2 where earnings__$_ = 421050
What is the description of the product named "Chocolate"?
create table products (product_description varchar, product_name varchar, PRIMARY KEY (product_description))
select product_description from products where product_name = "chocolate"
Who were all the candidates when incumbent was Tim Valentine?
create table table_1341577_34 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341577_34 where incumbent = "tim valentine"
List the types of competition and the number of competitions of each type.
create table competition (competition_type varchar, PRIMARY KEY (competition_type))
select competition_type, count(*) from competition group by competition_type
Who's the principal of Edgewood High School?/
create table table_1984697_53 (principal varchar, school varchar, PRIMARY KEY (principal))
select principal from table_1984697_53 where school = "edgewood high school"
For the engine family MaxxForce 11, what is the years produced?
create table table_26352332_4 (years_produced varchar, engine_family varchar, PRIMARY KEY (years_produced))
select years_produced from table_26352332_4 where engine_family = "maxxforce 11"
When the assets are 2,550, what is the Market Value?
create table table_1682026_2 (market_value__billion_$_ varchar, assets__billion_$_ varchar, PRIMARY KEY (market_value__billion_$_))
select market_value__billion_$_ from table_1682026_2 where assets__billion_$_ = "2,550"
Who was the aggressive rider when the sprint classification was andré greipel and mountains classification was timothy roe?
create table table_25580292_13 (aggressive_rider varchar, sprint_classification varchar, mountains_classification varchar, PRIMARY KEY (aggressive_rider))
select aggressive_rider from table_25580292_13 where sprint_classification = "andré greipel" and mountains_classification = "timothy roe"
What is the status of channel 44.1?
create table table_12271718_1 (status varchar, channel varchar, PRIMARY KEY (status))
select status from table_12271718_1 where channel = "44.1"
What is the product category description and unit of measurement of category "Herbs"?
create table ref_product_categories (product_category_description varchar, unit_of_measure varchar, product_category_code varchar, PRIMARY KEY (product_category_description))
select product_category_description, unit_of_measure from ref_product_categories where product_category_code = "herbs"
When Interpol is in 6th, who is in 7th?
create table table_17111812_1 (seventh varchar, sixth varchar, PRIMARY KEY (seventh))
select count(seventh) from table_17111812_1 where sixth = "interpol"
What was the 'calling at' station of the train that departed on 18.16?
create table table_18365784_3 (calling_at varchar, departure varchar, PRIMARY KEY (calling_at))
select calling_at from table_18365784_3 where departure = "18.16"
Show the name of storms which don't have affected region in record.
create table affected_region (name varchar, storm_id varchar, PRIMARY KEY (name)); create table storm (name varchar, storm_id varchar, PRIMARY KEY (name))
select name from storm where not storm_id in (select storm_id from affected_region)
Which stadium has a payout of $3 million?
create table table_16046689_29 (stadium varchar, payout___us$__ varchar, PRIMARY KEY (stadium))
select stadium from table_16046689_29 where payout___us$__ = "$3 million"
Which channel has the host Art Rooijakkers?
create table table_178242_1 (channel varchar, host_s_ varchar, PRIMARY KEY (channel))
select channel from table_178242_1 where host_s_ = "art rooijakkers"
what is the total number of years for rockets where school/club team/country is baylor
create table table_11734041_20 (years_for_rockets varchar, school_club_team_country varchar, PRIMARY KEY (years_for_rockets))
select count(years_for_rockets) from table_11734041_20 where school_club_team_country = "baylor"
What is the rear sight in the Cole model no. 735?
create table table_12834315_1 (rear_sight varchar, colt_model_no varchar, PRIMARY KEY (rear_sight))
select rear_sight from table_12834315_1 where colt_model_no = "735"
What is the French translation for the English word "orange"?
create table table_2077192_2 (french varchar, english varchar, PRIMARY KEY (french))
select french from table_2077192_2 where english = "orange"
What it the international designation for the kosmos 2379 satellite?
create table table_18161217_2 (cospar_id varchar, satellite varchar, PRIMARY KEY (cospar_id))
select cospar_id from table_18161217_2 where satellite = "kosmos 2379"
What year was Teresa Wright nominated best supporting actress?
create table table_18638067_1 (year__ceremony_ varchar, actor_actress varchar, category varchar, PRIMARY KEY (year__ceremony_))
select year__ceremony_ from table_18638067_1 where actor_actress = "teresa wright" and category = "best supporting actress"
Name the event for hans ruep
create table table_18646111_13 (event varchar, athlete varchar, PRIMARY KEY (event))
select event from table_18646111_13 where athlete = "hans ruep"
What are the comments when the vendor and type is alcatel-lucent routers?
create table table_1206114_2 (comments varchar, vendor_and_type varchar, PRIMARY KEY (comments))
select comments from table_1206114_2 where vendor_and_type = "alcatel-lucent routers"
What is the title of the episode written by denis leary, peter tolan and evan reilly?
create table table_10610087_3 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_10610087_3 where written_by = "denis leary, peter tolan and evan reilly"
Which team drafted the player from the HC Lada Togliatti (Russia)?
create table table_2840500_5 (nhl_team varchar, college_junior_club_team varchar, PRIMARY KEY (nhl_team))
select nhl_team from table_2840500_5 where college_junior_club_team = "hc lada togliatti (russia)"
What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4?
create table table_22170495_6 (position_in_e4s_ratings_b varchar, original_airing_on_channel_4 varchar, PRIMARY KEY (position_in_e4s_ratings_b))
select position_in_e4s_ratings_b from table_22170495_6 where original_airing_on_channel_4 = "june 30, 2010"
What is the amount of renewable electricity without hydrogen power when the percentage of renewable energy is 83.4?
create table table_25244412_1 (renewable_electricity_w_o_hydro__gw•h_ varchar, _percentage_renewable varchar, PRIMARY KEY (renewable_electricity_w_o_hydro__gw•h_))
select renewable_electricity_w_o_hydro__gw•h_ from table_25244412_1 where _percentage_renewable = "83.4"
Name the number of locations for geneva college
create table table_262476_1 (location varchar, institution varchar, PRIMARY KEY (location))
select count(location) from table_262476_1 where institution = "geneva college"
What is them two (the two) when we two is ngalbelpa?
create table table_1015914_24 (them_two__the_two_ varchar, we_two varchar, PRIMARY KEY (them_two__the_two_))
select them_two__the_two_ from table_1015914_24 where we_two = "ngalbelpa"
How many different templates do all document use?
create table documents (template_id varchar, PRIMARY KEY (template_id))
select count(distinct template_id) from documents
what is the minimumfor 5wi?
create table table_28846752_5 (id varchar, PRIMARY KEY (id))
select min(5 as wi) from table_28846752_5
What is air date of the episode directed by John P. Kousakis?
create table table_28611413_2 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_28611413_2 where directed_by = "john p. kousakis"
What instruments does the the song "Le Pop" use?
create table instruments (songid varchar, PRIMARY KEY (songid)); create table songs (songid varchar, PRIMARY KEY (songid))
select instrument from instruments as t1 join songs as t2 on t1.songid = t2.songid where title = "le pop"
What is the total number of CFL teams in the college Wilfrid Laurier
create table table_15817998_5 (cfl_team varchar, college varchar, PRIMARY KEY (cfl_team))
select count(cfl_team) from table_15817998_5 where college = "wilfrid laurier"
Name the constructor for b. bira
create table table_28190534_1 (constructor varchar, driver varchar, PRIMARY KEY (constructor))
select constructor from table_28190534_1 where driver = "b. bira"
When was the date successor seated when the vacator was charles e. chamberlain (r)?
create table table_1134091_4 (date_successor_seated varchar, vacator varchar, PRIMARY KEY (date_successor_seated))
select date_successor_seated from table_1134091_4 where vacator = "charles e. chamberlain (r)"
Who is the friday presenter for each show, when the monday presenter is Emma Willis Jamie East?
create table table_11748792_2 (friday varchar, monday varchar, PRIMARY KEY (friday))
select friday from table_11748792_2 where monday = "emma willis jamie east"