question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
How many Patent outcomes are generated from all the projects?
create table project_outcomes (outcome_code varchar, PRIMARY KEY (outcome_code))
select count(*) from project_outcomes where outcome_code = 'patent'
Which distinct source system code includes the substring 'en'?
create table cmi_cross_references (source_system_code varchar, PRIMARY KEY (source_system_code))
select distinct source_system_code from cmi_cross_references where source_system_code like '%en%'
If Powershell (alias) is cpi, copy, cp, what are all corresponding descriptions.
create table table_14465871_1 (description varchar, powershell__alias_ varchar, PRIMARY KEY (description))
select description from table_14465871_1 where powershell__alias_ = "cpi, copy, cp"
how many height m ( ft ) with notes being via wccv; formerly w236aj
create table table_13998897_1 (height_m___ft__ varchar, notes varchar, PRIMARY KEY (height_m___ft__))
select count(height_m___ft__) from table_13998897_1 where notes = "via wccv; formerly w236aj"
Which parliament is sylvia lim swee lian?
create table table_1889233_2 (parliament varchar, name varchar, PRIMARY KEY (parliament))
select parliament from table_1889233_2 where name = "sylvia lim swee lian"
what is mon 23 aug when fri 27 aug is 18' 59.25 119.226mph?
create table table_26986076_2 (mon_23_aug varchar, fri_27_aug varchar, PRIMARY KEY (mon_23_aug))
select mon_23_aug from table_26986076_2 where fri_27_aug = "18' 59.25 119.226mph"
How many distinct FDA approval statuses are there for the medicines?
create table medicine (fda_approved varchar, PRIMARY KEY (fda_approved))
select count(distinct fda_approved) from medicine
What is the CHI (Carvill Hurricane Index) when the NHC advisory number is equal to 49b?
create table table_15416002_1 (chi varchar, nhc_advisory_number varchar, PRIMARY KEY (chi))
select chi from table_15416002_1 where nhc_advisory_number = "49b"
What is the maximum number of 1st places for the country with exactly 1 third place?
create table table_2876467_3 (first_place integer, third_place varchar, PRIMARY KEY (first_place))
select max(first_place) from table_2876467_3 where third_place = 1
When 64 is the entries what is the winning boat?
create table table_24673710_1 (winning_boat varchar, entries varchar, PRIMARY KEY (winning_boat))
select winning_boat from table_24673710_1 where entries = 64
Find the title of course that is provided by both Statistics and Psychology departments.
create table course (title varchar, dept_name varchar, PRIMARY KEY (title))
select title from course where dept_name = 'statistics' intersect select title from course where dept_name = 'psychology'
When 1546 is inns of court and chancery what is the finsbury division?
create table table_16677738_1 (finsbury_division varchar, inns_of_court_and_chancery varchar, PRIMARY KEY (finsbury_division))
select finsbury_division from table_16677738_1 where inns_of_court_and_chancery = 1546
When green is the map colour what is the future stock?
create table table_17839_1 (future_stock varchar, map_colour varchar, PRIMARY KEY (future_stock))
select future_stock from table_17839_1 where map_colour = "green"
What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 227.5 (19)?
create table table_14948647_1 (bhofen_number2__rk_ varchar, ga_pa__rk_ varchar, PRIMARY KEY (bhofen_number2__rk_))
select bhofen_number2__rk_ from table_14948647_1 where ga_pa__rk_ = "227.5 (19)"
Who was the semi-final television commentator when the spokesperson was Colin Berry and the final television commentator was Pete Murray?
create table table_17766232_7 (semi_final_television_commentator varchar, spokesperson varchar, final_television_commentator varchar, PRIMARY KEY (semi_final_television_commentator))
select semi_final_television_commentator from table_17766232_7 where spokesperson = "colin berry" and final_television_commentator = "pete murray"
How many episodes were written by david j. north & janet tamaro?
create table table_27969432_3 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date))
select count(original_air_date) from table_27969432_3 where written_by = "david j. north & janet tamaro"
How many car models were produced by the maker with full name American Motor Company?
create table car_makers (id varchar, fullname varchar, PRIMARY KEY (id)); create table model_list (maker varchar, PRIMARY KEY (maker))
select count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker where t1.fullname = 'american motor company'
Who was the loan club for the Westlake game?
create table table_12608427_8 (loan_club varchar, name varchar, PRIMARY KEY (loan_club))
select loan_club from table_12608427_8 where name = "westlake"
What pregame analyst(s) had rob stone and monica gonzalez as sideline reporters and were on tsn2?
create table table_17516922_1 (pregame_analysts varchar, sideline_reporters varchar, network varchar, PRIMARY KEY (pregame_analysts))
select pregame_analysts from table_17516922_1 where sideline_reporters = "rob stone and monica gonzalez" and network = "tsn2"
Name the old bulgarian names for yuni
create table table_15275060_1 (old_bulgarian_names varchar, yuni varchar, transliteration varchar, PRIMARY KEY (old_bulgarian_names))
select old_bulgarian_names from table_15275060_1 where bulgarian_name(transliteration) = yuni
Name the total number of index weighting % at 17 january 2013 for bouygues
create table table_168274_1 (index_weighting___percentage__at_17_january_2013 varchar, company varchar, PRIMARY KEY (index_weighting___percentage__at_17_january_2013))
select count(index_weighting___percentage__at_17_january_2013) from table_168274_1 where company = "bouygues"
What word is listed under part 2 for part 4 *ridanaz?
create table table_1745843_2 (part_2 varchar, part_4 varchar, PRIMARY KEY (part_2))
select part_2 from table_1745843_2 where part_4 = "*ridanaz"
What group was in office when the term ended in January 3, 1993?
create table table_197446_1 (office varchar, term_ended varchar, PRIMARY KEY (office))
select office from table_197446_1 where term_ended = "january 3, 1993"
What are the changes from 2009 to 2010 in Tunisia?
create table table_14752049_2 (change__2009_to_2010_ varchar, country varchar, PRIMARY KEY (change__2009_to_2010_))
select change__2009_to_2010_ from table_14752049_2 where country = "tunisia"
Who directed the episode that was viewed by 2.50 million people in the U.S.?
create table table_11820086_1 (directed_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_11820086_1 where us_viewers__millions_ = "2.50"
How many company commanders were commissioned or elected on November 12, 1861?
create table table_29023680_2 (company varchar, date_of_election_commission varchar, PRIMARY KEY (company))
select count(company) as commander from table_29023680_2 where date_of_election_commission = "november 12, 1861"
Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.
create table dogs (name varchar, owner_id varchar, PRIMARY KEY (name)); create table owners (first_name varchar, owner_id varchar, state varchar, PRIMARY KEY (first_name))
select t1.first_name, t2.name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t1.state = 'virginia'
who is beavercreek's representative
create table table_29486189_4 (representative varchar, residence varchar, PRIMARY KEY (representative))
select representative from table_29486189_4 where residence = "beavercreek"
Which vocal type has the band mate with first name "Solveig" played the most?
create table vocals (bandmate varchar, PRIMARY KEY (bandmate)); create table band (id varchar, PRIMARY KEY (id))
select type from vocals as t1 join band as t2 on t1.bandmate = t2.id where firstname = "solveig" group by type order by count(*) desc limit 1
How many times did li ju win the womens singles and wang liqin win the mens singles?
create table table_28138035_6 (womens_doubles varchar, womens_singles varchar, mens_singles varchar, PRIMARY KEY (womens_doubles))
select count(womens_doubles) from table_28138035_6 where womens_singles = "li ju" and mens_singles = "wang liqin"
What is the lowest value for innings?
create table table_2985664_8 (innings integer, PRIMARY KEY (innings))
select min(innings) from table_2985664_8
What is the hometown of the player who attended American Heritage School?
create table table_11677691_11 (hometown varchar, school varchar, PRIMARY KEY (hometown))
select hometown from table_11677691_11 where school = "american heritage school"
What is the name of series episode 11-02's segment c?
create table table_15187735_11 (segment_c varchar, series_ep varchar, PRIMARY KEY (segment_c))
select segment_c from table_15187735_11 where series_ep = "11-02"
If the equation is all equal, what is the 3rd throw?
create table table_17265535_6 (equation varchar, PRIMARY KEY (equation))
select 3 as rd_throw from table_17265535_6 where equation = "all equal"
What are Doug Davis' maximum pitching stats?
create table table_19839391_3 (stats integer, pitcher varchar, PRIMARY KEY (stats))
select max(stats) from table_19839391_3 where pitcher = "doug davis"
What is the country that has the most perpetrators?
create table perpetrator (country varchar, PRIMARY KEY (country))
select country, count(*) from perpetrator group by country order by count(*) desc limit 1
Name the year location for haruna fukuoka
create table table_28138035_4 (year_location varchar, womens_singles varchar, PRIMARY KEY (year_location))
select year_location from table_28138035_4 where womens_singles = "haruna fukuoka"
What are the dimensions of the coin issued in 1992 with kim il-sung on the obverse?
create table table_298883_5 (dimensions varchar, obverse varchar, date_of_issue varchar, PRIMARY KEY (dimensions))
select dimensions from table_298883_5 where obverse = "kim il-sung" and date_of_issue = "1992"
What is the least amount of Miss Airs any country has had?
create table table_30008638_1 (miss_air integer, PRIMARY KEY (miss_air))
select min(miss_air) from table_30008638_1
What's the l2 cache of the model with TDP of 5.5-10 w?
create table table_24099916_1 (l2_cache varchar, tdp varchar, PRIMARY KEY (l2_cache))
select l2_cache from table_24099916_1 where tdp = "5.5-10 w"
How many distinct characteristic names does the product "cumin" have?
create table characteristics (characteristic_name varchar, characteristic_id 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 count(distinct 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"
Who wrote the episode directed by Ken Whittingham?
create table table_23097214_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by))
select written_by from table_23097214_1 where directed_by = "ken whittingham"
What is the Burmese term associated with a cardinal direction of west?
create table table_14850099_18 (burmese varchar, cardinal_direction varchar, PRIMARY KEY (burmese))
select burmese from table_14850099_18 where cardinal_direction = "west"
How many games are played for all students?
create table sportsinfo (gamesplayed integer, PRIMARY KEY (gamesplayed))
select sum(gamesplayed) from sportsinfo
How many million u.s. viewers saw the episode that was directed by roger young and written by debra j. fisher?
create table table_28037619_2 (us_viewers__million_ varchar, directed_by varchar, written_by varchar, PRIMARY KEY (us_viewers__million_))
select us_viewers__million_ from table_28037619_2 where directed_by = "roger young" and written_by = "debra j. fisher"
What was the team record when the team was Cleveland?
create table table_17288861_5 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_17288861_5 where team = "cleveland"
How many party events do we have?
create table party_events (id varchar, PRIMARY KEY (id))
select count(*) from party_events
What was the game edition when they played on the clay (i) surface and the outcome was a winner?
create table table_18183850_12 (edition varchar, surface varchar, outcome varchar, PRIMARY KEY (edition))
select edition from table_18183850_12 where surface = "clay (i)" and outcome = "winner"
What was the smallest population figure for Mareeba?
create table table_12555835_1 (population__mareeba_ integer, PRIMARY KEY (population__mareeba_))
select min(population__mareeba_) from table_12555835_1
What was the US national average electric mix rating for the vehicle that was rated 280 g/mi (174 g/km) in the Midwest?
create table table_16105186_2 (us_national_average_electric_mix varchar, midwest__des_moines_ varchar, PRIMARY KEY (us_national_average_electric_mix))
select us_national_average_electric_mix from table_16105186_2 where midwest__des_moines_ = "280 g/mi (174 g/km)"
Name the name of bowl for 2006 season
create table table_2517159_1 (name_of_bowl varchar, last_appearance varchar, PRIMARY KEY (name_of_bowl))
select count(name_of_bowl) from table_2517159_1 where last_appearance = "2006 season"
what's the character name with voice actor (englbeingh 1998 / pioneer) being paul dobson
create table table_1410384_1 (character_name varchar, voice_actor__english_1998___pioneer_ varchar, PRIMARY KEY (character_name))
select character_name from table_1410384_1 where voice_actor__english_1998___pioneer_ = "paul dobson"
who is the the incumbent with opponent being peter king (r) 56.0% david mejias (d) 44.0%
create table table_13833770_3 (incumbent varchar, opponent varchar, PRIMARY KEY (incumbent))
select incumbent from table_13833770_3 where opponent = "peter king (r) 56.0% david mejias (d) 44.0%"
What were the results in the election where Albert Wynn was the incumbent?
create table table_1341423_20 (results varchar, incumbent varchar, PRIMARY KEY (results))
select results from table_1341423_20 where incumbent = "albert wynn"
What is the public debt % of GDP in 2013 Q1 with a 4.7% GDP of EU in 2012?
create table table_1598533_8 (public_debt__percentage_of_gdp__2013_q1_ varchar, gdp__percentage_of_eu__2012_ varchar, PRIMARY KEY (public_debt__percentage_of_gdp__2013_q1_))
select public_debt__percentage_of_gdp__2013_q1_ from table_1598533_8 where gdp__percentage_of_eu__2012_ = "4.7%"
Who has the high assists when 50-26 is the record?
create table table_23284271_10 (high_assists varchar, record varchar, PRIMARY KEY (high_assists))
select high_assists from table_23284271_10 where record = "50-26"
how many time is fri 27 aug 19' 38.87 115.219mph?
create table table_26986076_2 (sat_29_aug varchar, fri_27_aug varchar, PRIMARY KEY (sat_29_aug))
select count(sat_29_aug) from table_26986076_2 where fri_27_aug = "19' 38.87 115.219mph"
Which makers designed more than 3 car models? List full name and the id.
create table model_list (maker varchar, PRIMARY KEY (maker)); create table car_makers (fullname varchar, id varchar, PRIMARY KEY (fullname))
select t1.fullname, t1.id from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) > 3
What is the protein identity with a length of 5304bp/377aa?
create table table_16849531_2 (protein_identity varchar, length__bp_aa_ varchar, PRIMARY KEY (protein_identity))
select protein_identity from table_16849531_2 where length__bp_aa_ = "5304bp/377aa"
What are the alternative name/s of those satellites whose nssdc id number is 1970-054a?
create table table_191323_2 (alt_name varchar, nssdc_id_no varchar, PRIMARY KEY (alt_name))
select alt_name from table_191323_2 where nssdc_id_no = "1970-054a"
How many sockets are listed that have a brand name of "Core i3-2xx7m"?
create table table_24538587_11 (socket varchar, brand_name__list_ varchar, PRIMARY KEY (socket))
select count(socket) from table_24538587_11 where brand_name__list_ = "core i3-2xx7m"
Please mention those appointment dates those are replaced by alfredo aglietti
create table table_27114708_2 (date_of_appointment varchar, replaced_by varchar, PRIMARY KEY (date_of_appointment))
select date_of_appointment from table_27114708_2 where replaced_by = "alfredo aglietti"
Where was the game played when the record was 20-6-6?
create table table_23308178_6 (location varchar, record varchar, PRIMARY KEY (location))
select location from table_23308178_6 where record = "20-6-6"
Show different teams of technicians and the number of technicians in each team.
create table technician (team varchar, PRIMARY KEY (team))
select team, count(*) from technician group by team
What is the muslim percentage of the 49634 population of england and wales 000?
create table table_1532779_1 (muslim___percentage_of_total_population_ varchar, population_of_england_and_wales_000 varchar, PRIMARY KEY (muslim___percentage_of_total_population_))
select muslim___percentage_of_total_population_ from table_1532779_1 where population_of_england_and_wales_000 = 49634
In the North Central region, what are the regional page #'s?
create table table_287659_2 (regional_page__number varchar, region_name varchar, PRIMARY KEY (regional_page__number))
select regional_page__number from table_287659_2 where region_name = "north central"
Where is Norco HIgh School?
create table table_11677691_6 (hometown varchar, school varchar, PRIMARY KEY (hometown))
select hometown from table_11677691_6 where school = "norco high school"
What period were conscituency contested is aljunied grc?
create table table_1889233_2 (period_in_office varchar, constituency_contested varchar, PRIMARY KEY (period_in_office))
select period_in_office from table_1889233_2 where constituency_contested = "aljunied grc"
How many episodes were directed by Michael McCullers?
create table table_25341765_1 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select count(original_air_date) from table_25341765_1 where directed_by = "michael mccullers"
Name the total number of industry for maxis
create table table_19112_3 (industry varchar, company varchar, PRIMARY KEY (industry))
select count(industry) from table_19112_3 where company = "maxis"
Find the detail of products whose detail contains the word "Latte" or the word "Americano"
create table products (product_details varchar, PRIMARY KEY (product_details))
select product_details from products where product_details like "%latte%" or product_details like "%americano%"
What is the program where the focus is general management?
create table table_12591022_2 (program varchar, focus varchar, PRIMARY KEY (program))
select program from table_12591022_2 where focus = "general management"
How many 1st leg have team 1 ofk belgrade?
create table table_19294812_2 (team_1 varchar, PRIMARY KEY (team_1))
select count(1 as st_leg) from table_19294812_2 where team_1 = "ofk belgrade"
Show names of people whose nationality is not "Russia".
create table people (name varchar, nationality varchar, PRIMARY KEY (name))
select name from people where nationality <> "russia"
How many GICS sectors have a free float of 0.2391?
create table table_20667854_1 (gics_sector varchar, free_float varchar, PRIMARY KEY (gics_sector))
select count(gics_sector) from table_20667854_1 where free_float = "0.2391"
What team was the opponent at Mile High Stadium?
create table table_13259009_2 (opponent varchar, game_site varchar, PRIMARY KEY (opponent))
select opponent from table_13259009_2 where game_site = "mile high stadium"
When the standard torque (lb/ft) is 11.53 how much does more is the modified hp?
create table table_19704392_1 (modified_hp varchar, standard_torque__lb_ft_ varchar, PRIMARY KEY (modified_hp))
select modified_hp from table_19704392_1 where standard_torque__lb_ft_ = "11.53"
Name the candidates for john boyle
create table table_2668378_5 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_2668378_5 where incumbent = "john boyle"
What is the most common birth place of people?
create table people (birth_place varchar, PRIMARY KEY (birth_place))
select birth_place from people group by birth_place order by count(*) desc limit 1
what is the name of the team which aggregate score is l 1–2
create table table_29261823_10 (team varchar, aggregate_score varchar, PRIMARY KEY (team))
select team from table_29261823_10 where aggregate_score = "l 1–2"
Name the candidates for felix walker
create table table_2668329_18 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_2668329_18 where incumbent = "felix walker"
What are the names and type codes of products?
create table products (product_name varchar, product_type_code varchar, PRIMARY KEY (product_name))
select product_name, product_type_code from products
What is the id and detail of the vehicle used in lessons for most of the times?
create table lessons (vehicle_id varchar, PRIMARY KEY (vehicle_id)); create table vehicles (vehicle_id varchar, vehicle_details varchar, PRIMARY KEY (vehicle_id))
select t1.vehicle_id, t1.vehicle_details from vehicles as t1 join lessons as t2 on t1.vehicle_id = t2.vehicle_id group by t1.vehicle_id order by count(*) desc limit 1
In language where Wednesday is برھ وار budh'var, what is Saturday?
create table table_1277350_3 (saturday_shani__saturn_ varchar, wednesday_budha__mercury_ varchar, PRIMARY KEY (saturday_shani__saturn_))
select saturday_shani__saturn_ from table_1277350_3 where wednesday_budha__mercury_ = "برھ وار budh'var"
What is the default desktop environment when the code base is ubuntu 8.04 and edition is fluxbox ce?
create table table_27329061_2 (default_desktop_environment varchar, code_base varchar, edition varchar, PRIMARY KEY (default_desktop_environment))
select default_desktop_environment from table_27329061_2 where code_base = "ubuntu 8.04" and edition = "fluxbox ce"
Who ran in the race for the seat of incumbent Carl W. Rich?
create table table_1341865_37 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341865_37 where incumbent = "carl w. rich"
What is he archive for the episode with a run time of 24:05?
create table table_2102714_1 (archive varchar, run_time varchar, PRIMARY KEY (archive))
select archive from table_2102714_1 where run_time = "24:05"
How many students are there?
create table student (id varchar, PRIMARY KEY (id))
select count(*) from student
What is the first name of the staff who did not give any lesson?
create table lessons (staff_id varchar, PRIMARY KEY (staff_id)); create table staff (first_name varchar, PRIMARY KEY (first_name)); create table staff (first_name varchar, staff_id varchar, PRIMARY KEY (first_name))
select first_name from staff except select t2.first_name from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id
Name the candidates for selah r. hobbie
create table table_2668243_17 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_2668243_17 where incumbent = "selah r. hobbie"
Who directed the episode directed by colin teague?
create table table_25737761_3 (writer varchar, director varchar, PRIMARY KEY (writer))
select writer from table_25737761_3 where director = "colin teague"
Name the number of celebrity for athlete
create table table_14345690_4 (celebrity varchar, famous_for varchar, PRIMARY KEY (celebrity))
select count(celebrity) from table_14345690_4 where famous_for = "athlete"
What is the english (bcp) phrase "for thine is the kingdom, the power" in modern german with standard wording?
create table table_181240_1 (modern_german__standard_wording_ varchar, english___bcp__ varchar, PRIMARY KEY (modern_german__standard_wording_))
select modern_german__standard_wording_ from table_181240_1 where english___bcp__ = "for thine is the kingdom, the power"
Which current venues location is Mason, Ohio?
create table table_14903081_1 (current_venue varchar, location varchar, PRIMARY KEY (current_venue))
select current_venue from table_14903081_1 where location = "mason, ohio"
Name the listen owners for repairone
create table table_2187178_1 (listed_owner_s_ varchar, primary_sponsor_s_ varchar, PRIMARY KEY (listed_owner_s_))
select listed_owner_s_ from table_2187178_1 where primary_sponsor_s_ = "repairone"
What is the location code with the most documents?
create table document_locations (location_code varchar, PRIMARY KEY (location_code))
select location_code from document_locations group by location_code order by count(*) desc limit 1
What date did the DVD for season six come out in region 2?
create table table_1067134_1 (region_2 varchar, dvd_name varchar, PRIMARY KEY (region_2))
select region_2 from table_1067134_1 where dvd_name = "season six"
what's the doubles w-l with years played value of 1 (1968)
create table table_10023387_1 (doubles_w_l varchar, years_played varchar, PRIMARY KEY (doubles_w_l))
select doubles_w_l from table_10023387_1 where years_played = "1 (1968)"
Name the james e. holmes for joe baez
create table table_25330991_3 (james_e_holmes varchar, rockingham_county varchar, PRIMARY KEY (james_e_holmes))
select james_e_holmes from table_25330991_3 where rockingham_county = "joe baez"
What was the name of the album released by Heavy Winged?
create table table_27932399_1 (release_title varchar, artist varchar, PRIMARY KEY (release_title))
select release_title from table_27932399_1 where artist = "heavy winged"