question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What document types have more than 2 corresponding documents?
create table documents (document_type_code varchar, PRIMARY KEY (document_type_code))
select document_type_code from documents group by document_type_code having count(*) > 2
Which station has park & ride lot parking?
create table table_2093995_1 (stations varchar, parking varchar, PRIMARY KEY (stations))
select stations from table_2093995_1 where parking = "park & ride lot"
What team set a 3:15:43 winning time?
create table table_2241841_1 (team varchar, race_time varchar, PRIMARY KEY (team))
select team from table_2241841_1 where race_time = "3:15:43"
How many Australians were in the UN commission on Korea?
create table table_10121127_1 (number_of_australians_involved varchar, un_operation_title varchar, PRIMARY KEY (number_of_australians_involved))
select count(number_of_australians_involved) from table_10121127_1 where un_operation_title = "un commission on korea"
Name the number of series episode for s piston
create table table_15187735_8 (series_ep varchar, segment_a varchar, PRIMARY KEY (series_ep))
select count(series_ep) from table_15187735_8 where segment_a = "s piston"
january 15-16 when august 21-22 is august 22, 1979?
create table table_25355501_2 (january_15_16 varchar, august_21_22 varchar, PRIMARY KEY (january_15_16))
select january_15_16 from table_25355501_2 where august_21_22 = "august 22, 1979"
How many people voted for others in the county where McCain got 65.5% of the votes?
create table table_20453681_1 (others varchar, mccain_percentage varchar, PRIMARY KEY (others))
select others from table_20453681_1 where mccain_percentage = "65.5%"
Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name.
create table club (clubid varchar, clubname varchar, PRIMARY KEY (clubid)); create table member_of_club (clubid varchar, stuid varchar, PRIMARY KEY (clubid)); create table student (fname varchar, lname varchar, stuid varchar, major varchar, PRIMARY KEY (fname))
select t3.fname, t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = "bootup baltimore" and t3.major = "600"
What are the building full names that contain the word "court"?
create table apartment_buildings (building_full_name varchar, PRIMARY KEY (building_full_name))
select building_full_name from apartment_buildings where building_full_name like "%court%"
What are the years of participation for central crossing school?
create table table_17429402_7 (years_of_participation varchar, school varchar, PRIMARY KEY (years_of_participation))
select years_of_participation from table_17429402_7 where school = "central crossing"
How many languages for the 2001 (74th) awards?
create table table_16254861_1 (language_s_ varchar, year__ceremony_ varchar, PRIMARY KEY (language_s_))
select count(language_s_) from table_16254861_1 where year__ceremony_ = "2001 (74th)"
What's the total number of songs originally performed by Anna Nalick?
create table table_12310814_1 (song_choice varchar, original_artist varchar, PRIMARY KEY (song_choice))
select count(song_choice) from table_12310814_1 where original_artist = "anna nalick"
How many roller coasters are there?
create table roller_coaster (id varchar, PRIMARY KEY (id))
select count(*) from roller_coaster
Find the names of users whose emails contain ‘superstar’ or ‘edu’.
create table user_profiles (name varchar, email varchar, PRIMARY KEY (name))
select name from user_profiles where email like '%superstar%' or email like '%edu%'
What DAR is available for n. 336 in Italian?
create table table_15887683_5 (dar varchar, n° varchar, language varchar, PRIMARY KEY (dar))
select dar from table_15887683_5 where n° = "336" and language = "italian"
Name the segment d for chicken
create table table_15187735_3 (segment_d varchar, segment_c varchar, PRIMARY KEY (segment_d))
select segment_d from table_15187735_3 where segment_c = "chicken"
If the net worth of fixed assets is 621, what is the current ratio?
create table table_19166421_1 (current_ratio varchar, net_worth_to_fixed_assets varchar, PRIMARY KEY (current_ratio))
select current_ratio from table_19166421_1 where net_worth_to_fixed_assets = 621
How many people on this list are named thomas abernethy?
create table table_1342218_24 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select count(candidates) from table_1342218_24 where incumbent = "thomas abernethy"
What month is the Paris 20k Road Race held?
create table table_26166836_3 (month_held varchar, location varchar, PRIMARY KEY (month_held))
select month_held from table_26166836_3 where location = "paris"
Who was the successor that was formally installed on March 30, 1870?
create table table_2417345_3 (successor varchar, date_of_successors_formal_installation varchar, PRIMARY KEY (successor))
select successor from table_2417345_3 where date_of_successors_formal_installation = "march 30, 1870"
What is every GICS sector for free float of 0.3180?
create table table_20667854_1 (gics_sector varchar, free_float varchar, PRIMARY KEY (gics_sector))
select gics_sector from table_20667854_1 where free_float = "0.3180"
What player attended california university?
create table table_26916717_1 (name varchar, team_school varchar, PRIMARY KEY (name))
select name from table_26916717_1 where team_school = "california"
what's the occupied territory with estimated deaths of 600,000
create table table_10335_1 (occupied_territory varchar, estimated_deaths varchar, PRIMARY KEY (occupied_territory))
select occupied_territory from table_10335_1 where estimated_deaths = "600,000"
What are the team colors from Tolono, Illinois?
create table table_29612224_1 (colors varchar, location varchar, PRIMARY KEY (colors))
select colors from table_29612224_1 where location = "tolono, illinois"
Name the chinese traditional for 美丽人生
create table table_1893815_1 (chinese__traditional_ varchar, chinese__simplified_ varchar, PRIMARY KEY (chinese__traditional_))
select chinese__traditional_ from table_1893815_1 where chinese__simplified_ = "美丽人生"
Show all party names and the number of members in each party.
create table party (party_name varchar, party_id varchar, PRIMARY KEY (party_name)); create table member (party_id varchar, PRIMARY KEY (party_id))
select t2.party_name, count(*) from member as t1 join party as t2 on t1.party_id = t2.party_id group by t1.party_id
Name the leader battle for plamen
create table table_25920798_2 (leader_battle varchar, eliminated varchar, PRIMARY KEY (leader_battle))
select leader_battle from table_25920798_2 where eliminated = "plamen"
What is the community with a wind power of 1042?
create table table_13566548_1 (autonomous_community varchar, wind_power varchar, PRIMARY KEY (autonomous_community))
select autonomous_community from table_13566548_1 where wind_power = 1042
What is the ramsan-810 transfer delay?
create table table_27615520_1 (latency__microseconds_ varchar, product_name varchar, PRIMARY KEY (latency__microseconds_))
select count(latency__microseconds_) from table_27615520_1 where product_name = "ramsan-810"
What were the results for mens 40 when the mens u20 was Southern Suns def Gold Coast Sharks?
create table table_16724844_1 (mens_40 varchar, mens_u20 varchar, PRIMARY KEY (mens_40))
select mens_40 from table_16724844_1 where mens_u20 = "southern suns def gold coast sharks"
What are the hosts of competitions whose theme is not "Aliens"?
create table farm_competition (hosts varchar, theme varchar, PRIMARY KEY (hosts))
select hosts from farm_competition where theme <> 'aliens'
When 21' 05.83 107.304mph is Wednesday August 25th what is Friday August 27th?
create table table_26986076_5 (fri_27_aug varchar, wed_25_aug varchar, PRIMARY KEY (fri_27_aug))
select fri_27_aug from table_26986076_5 where wed_25_aug = "21' 05.83 107.304mph"
How many millions viewers watched the episode that ran 23:25?
create table table_2101431_1 (viewers__in_millions_ varchar, run_time varchar, PRIMARY KEY (viewers__in_millions_))
select viewers__in_millions_ from table_2101431_1 where run_time = "23:25"
For what ceremony was "Fire Dancer" not nominated?
create table table_17155250_1 (year__ceremony_ varchar, original_title varchar, PRIMARY KEY (year__ceremony_))
select year__ceremony_ from table_17155250_1 where original_title = "fire dancer"
Name the week number for the beatles
create table table_19508635_1 (week__number varchar, theme varchar, PRIMARY KEY (week__number))
select week__number from table_19508635_1 where theme = "the beatles"
For location Caversham, what is the name of the captain?
create table table_18752986_1 (captain varchar, location varchar, PRIMARY KEY (captain))
select captain from table_18752986_1 where location = "caversham"
When Sagittarius is the wester name what is the sanskrit gloss?
create table table_186462_1 (sanskrit varchar, western_name varchar, PRIMARY KEY (sanskrit))
select sanskrit as gloss from table_186462_1 where western_name = "sagittarius"
What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?
create table table_12584173_1 (population__stanthorpe_ integer, population__rosenthal_ varchar, PRIMARY KEY (population__stanthorpe_))
select max(population__stanthorpe_) from table_12584173_1 where population__rosenthal_ = 1548
What is the top speed of a 5-speed manual transmission produced in 2006-2009?
create table table_1857216_1 (top_speed varchar, production varchar, transmission varchar, PRIMARY KEY (top_speed))
select top_speed from table_1857216_1 where production = "2006-2009" and transmission = "5-speed manual"
When ملح هذا البحر is the arabic title what is the english title?
create table table_26555737_1 (english_title varchar, arabic_title varchar, PRIMARY KEY (english_title))
select english_title from table_26555737_1 where arabic_title = "ملح هذا البحر"
Find the names of all instructors whose name includes the substring “dar”.
create table instructor (name varchar, PRIMARY KEY (name))
select name from instructor where name like '%dar%'
What number of voters did Queens have when Staten Island had 295 voters?
create table table_1108394_34 (queens varchar, richmond_ varchar, staten_is varchar, PRIMARY KEY (queens))
select queens from table_1108394_34 where richmond_[staten_is] = "295"
How many cinema do we have?
create table cinema (id varchar, PRIMARY KEY (id))
select count(*) from cinema
who the reader of title department x?
create table table_20174050_23 (reader varchar, title varchar, PRIMARY KEY (reader))
select reader from table_20174050_23 where title = "department x"
What is the lowest overall number of hurricanes?
create table table_2930244_3 (number_of_hurricanes integer, PRIMARY KEY (number_of_hurricanes))
select min(number_of_hurricanes) from table_2930244_3
What vehicle has an epa highway fuel economy of 109 mpg-e?
create table table_20549371_3 (vehicle varchar, epa_rated_highway_fuel_economy varchar, PRIMARY KEY (vehicle))
select vehicle from table_20549371_3 where epa_rated_highway_fuel_economy = "109 mpg-e"
WHAT IS THE NAME OF THE MENS DOUBLES PLAYER WHEN THE WOMENS DOUBLES PLAYER IS HELEN REINO KAI-RIIN SALUSTE?
create table table_14903627_1 (mens_doubles varchar, womens_doubles varchar, PRIMARY KEY (mens_doubles))
select mens_doubles from table_14903627_1 where womens_doubles = "helen reino kai-riin saluste"
What was the vote when the air date is 4 october 1997?
create table table_25016824_2 (vote varchar, air_date varchar, PRIMARY KEY (vote))
select vote from table_25016824_2 where air_date = "4 october 1997"
What types of stations are located in Cebu?
create table table_28794440_1 (station_type varchar, location varchar, PRIMARY KEY (station_type))
select station_type from table_28794440_1 where location = "cebu"
How many countries has a gdp (nominal) of $29.9 billion?
create table table_11780179_1 (gdp_per_capita__nominal_ varchar, gdp__nominal_ varchar, PRIMARY KEY (gdp_per_capita__nominal_))
select count(gdp_per_capita__nominal_) from table_11780179_1 where gdp__nominal_ = "$29.9 billion"
Please show the categories of the music festivals with count more than 1.
create table music_festival (category varchar, PRIMARY KEY (category))
select category from music_festival group by category having count(*) > 1
What was the original air date for episode number 6?
create table table_1481865_1 (original_air_date varchar, number_of_episode varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_1481865_1 where number_of_episode = 6
If the grand average is 12.76-202, who is the player?
create table table_27533947_1 (players varchar, grand_average varchar, PRIMARY KEY (players))
select players from table_27533947_1 where grand_average = "12.76-202"
Which artist does the album "Balls to the Wall" belong to?
create table album (artistid varchar, title varchar, PRIMARY KEY (artistid)); create table artist (name varchar, artistid varchar, PRIMARY KEY (name))
select t2.name from album as t1 join artist as t2 on t1.artistid = t2.artistid where t1.title = "balls to the wall"
Name the game site for l 26–42
create table table_26401898_2 (game_site varchar, final_score varchar, PRIMARY KEY (game_site))
select game_site from table_26401898_2 where final_score = "l 26–42"
What is the minimum of t20 matches?
create table table_1176371_1 (t20_matches integer, PRIMARY KEY (t20_matches))
select min(t20_matches) from table_1176371_1
What amount of senior high school where junior high school is 114cm?
create table table_13555999_1 (senior_high_school__15_18_yrs_ varchar, junior_high_school__12_15_yrs_ varchar, PRIMARY KEY (senior_high_school__15_18_yrs_))
select senior_high_school__15_18_yrs_ from table_13555999_1 where junior_high_school__12_15_yrs_ = "114cm"
What was the Lok Sabha in Karakat (Vidhan Sabha Constituency)?
create table table_29785324_5 (lok_sabha varchar, vidhan_sabha_constituency varchar, PRIMARY KEY (lok_sabha))
select lok_sabha from table_29785324_5 where vidhan_sabha_constituency = "karakat (vidhan sabha constituency)"
what is the total number of population where census designated place is westmont?
create table table_22916979_2 (population__2000_census_ varchar, census_designated_place varchar, PRIMARY KEY (population__2000_census_))
select count(population__2000_census_) from table_22916979_2 where census_designated_place = "westmont"
How much was the prize money for rwe-sporthalle, mülheim ?
create table table_18828487_1 (prize_fund varchar, venue varchar, PRIMARY KEY (prize_fund))
select prize_fund from table_18828487_1 where venue = "rwe-sporthalle, mülheim"
Name the social democratic party for labour
create table table_152358_3 (social_democratic_party varchar, control varchar, PRIMARY KEY (social_democratic_party))
select social_democratic_party from table_152358_3 where control = "labour"
What was the results when the incumbent was ernest istook?
create table table_1341423_36 (results varchar, incumbent varchar, PRIMARY KEY (results))
select results from table_1341423_36 where incumbent = "ernest istook"
List the name of the company that produced more than one phone model.
create table phone (company_name varchar, PRIMARY KEY (company_name))
select company_name from phone group by company_name having count(*) > 1
Name the minimum number of reservoir for gnis query link where numbers lake gnis query link being 60
create table table_18760137_2 (_number_s_reservoir_and_gnis_query_link integer, _number_s_lake_and_gnis_query_link varchar, PRIMARY KEY (_number_s_reservoir_and_gnis_query_link))
select min(_number_s_reservoir_and_gnis_query_link) from table_18760137_2 where _number_s_lake_and_gnis_query_link = 60
When Netherlands is the country what is the report?
create table table_21191496_1 (report varchar, country varchar, PRIMARY KEY (report))
select report from table_21191496_1 where country = "netherlands"
Which episode was directed by steven depaul
create table table_11665016_2 (title varchar, directed_by varchar, PRIMARY KEY (title))
select title from table_11665016_2 where directed_by = "steven depaul"
How many different kinds of reports are there for races that Juan Manuel Fangio won?
create table table_1140111_5 (report varchar, winning_driver varchar, PRIMARY KEY (report))
select count(report) from table_1140111_5 where winning_driver = "juan manuel fangio"
What was the title when there were 14.39 million viewers?
create table table_15717093_1 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title))
select title from table_15717093_1 where us_viewers__millions_ = "14.39"
What is the title of the episode directed by Mark Tinker?
create table table_11058032_1 (title varchar, directed_by varchar, PRIMARY KEY (title))
select title from table_11058032_1 where directed_by = "mark tinker"
when the vacator was Henry Latimer (f), what were the causes for modification?
create table table_224840_3 (reason_for_change varchar, vacator varchar, PRIMARY KEY (reason_for_change))
select reason_for_change from table_224840_3 where vacator = "henry latimer (f)"
Name the sepal lengh when sepal width is 2.9 and petal width 1.3
create table table_10477224_1 (sepal_length varchar, sepal_width varchar, petal_width varchar, PRIMARY KEY (sepal_length))
select sepal_length from table_10477224_1 where sepal_width = "2.9" and petal_width = "1.3"
What was the UK broadcast date for the episode which visited USA?
create table table_15211468_1 (uk_broadcast_date varchar, countries_visited varchar, PRIMARY KEY (uk_broadcast_date))
select uk_broadcast_date from table_15211468_1 where countries_visited = "usa"
Name the title for total viewers on fx+ being 483,000
create table table_26493520_3 (title varchar, total_viewers_on_fx varchar, PRIMARY KEY (title))
select title from table_26493520_3 where total_viewers_on_fx = "483,000"
who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto
create table table_13857700_1 (mens_doubles varchar, mixed_doubles varchar, PRIMARY KEY (mens_doubles))
select mens_doubles from table_13857700_1 where mixed_doubles = "jimm aalto nina sarnesto"
which company has a person that can wear clothing in 33-23-36
create table table_27515452_3 (agency varchar, sizes varchar, PRIMARY KEY (agency))
select agency from table_27515452_3 where sizes = "33-23-36"
What is the last name and office of the professor from the history department?
create table department (dept_code varchar, dept_name varchar, PRIMARY KEY (dept_code)); create table employee (emp_lname varchar, emp_num varchar, PRIMARY KEY (emp_lname)); create table professor (prof_office varchar, emp_num varchar, dept_code varchar, PRIMARY KEY (prof_office))
select t1.emp_lname, t2.prof_office from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = 'history'
What is the model of the engine d5244 t?
create table table_1147701_5 (model_name varchar, engine_code varchar, PRIMARY KEY (model_name))
select model_name from table_1147701_5 where engine_code = "d5244 t"
How long were Ray Bradbury and his wife married?
create table table_24143253_4 (length_of_marriage varchar, name varchar, PRIMARY KEY (length_of_marriage))
select length_of_marriage from table_24143253_4 where name = "ray bradbury"
What is the accrediation for united tribes technical college?
create table table_2076522_2 (accreditation varchar, school varchar, PRIMARY KEY (accreditation))
select accreditation from table_2076522_2 where school = "united tribes technical college"
How many regions had an hdi of 0.896?
create table table_25042332_33 (combined_gross_enrollment_ratio__2009_ varchar, hdi varchar, PRIMARY KEY (combined_gross_enrollment_ratio__2009_))
select count(combined_gross_enrollment_ratio__2009_) from table_25042332_33 where hdi = "0.896"
When November is 153 what is the March number?
create table table_25235489_2 (march_27_29 varchar, november_3 varchar, PRIMARY KEY (march_27_29))
select march_27_29 from table_25235489_2 where november_3 = "153"
Who directed the film titled 'Steam of Life'?
create table table_22020724_1 (director varchar, film_title_used_in_nomination varchar, PRIMARY KEY (director))
select director from table_22020724_1 where film_title_used_in_nomination = "steam of life"
Which organisation type hires most research staff?
create table research_staff (employer_organisation_id varchar, PRIMARY KEY (employer_organisation_id)); create table organisations (organisation_type varchar, organisation_id varchar, PRIMARY KEY (organisation_type))
select t1.organisation_type from organisations as t1 join research_staff as t2 on t1.organisation_id = t2.employer_organisation_id group by t1.organisation_type order by count(*) desc limit 1
Who was the senior US senator in the state whose governor was D. Patrick?
create table table_21531764_2 (senior_us_senator varchar, governor varchar, PRIMARY KEY (senior_us_senator))
select senior_us_senator from table_21531764_2 where governor = "d. patrick"
How many house mascots are associated with yellow house colours?
create table table_1942683_1 (house_mascot varchar, house_colour varchar, PRIMARY KEY (house_mascot))
select count(house_mascot) from table_1942683_1 where house_colour = "yellow"
Which representative has a birthday of January 31, 1866?
create table table_10284385_1 (representative varchar, date_of_birth varchar, PRIMARY KEY (representative))
select representative from table_10284385_1 where date_of_birth = "january 31, 1866"
What are all values for 24 mountains when direction is Northeast?
create table table_23406517_2 (direction varchar, PRIMARY KEY (direction))
select 24 as _mountains from table_23406517_2 where direction = "northeast"
When thomas löfkvist is the general classification who is the winner?
create table table_18733814_2 (winner varchar, general_classification varchar, PRIMARY KEY (winner))
select winner from table_18733814_2 where general_classification = "thomas löfkvist"
Who was the train operator when the train departed at 11.02 in 1922?
create table table_18365784_3 (operator varchar, departure varchar, PRIMARY KEY (operator))
select operator from table_18365784_3 where departure = "11.02"
What is the ISIN that has an amount issued of 223,000,000?
create table table_21692771_1 (isin varchar, amount_issued_ varchar, € varchar, PRIMARY KEY (isin))
select isin from table_21692771_1 where amount_issued_[€] = "223,000,000"
Who was the opponent in the game in which Hakim Warrick (14) did the most high points?
create table table_22669044_10 (team varchar, high_points varchar, PRIMARY KEY (team))
select team from table_22669044_10 where high_points = "hakim warrick (14)"
Who replaced the manager on Team Cfr Cluj?
create table table_17115950_2 (replaced_by varchar, team varchar, PRIMARY KEY (replaced_by))
select replaced_by from table_17115950_2 where team = "cfr cluj"
How many celebrities had an 18October2007 Original air Date?
create table table_11642945_1 (celebrity varchar, original_air_date varchar, PRIMARY KEY (celebrity))
select count(celebrity) from table_11642945_1 where original_air_date = "18october2007"
When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications?
create table table_2279413_1 (conversion_from_patent_application varchar, maximum_term varchar, pct_route_available varchar, PRIMARY KEY (conversion_from_patent_application))
select conversion_from_patent_application from table_2279413_1 where maximum_term = "10 years" and pct_route_available = "yes"
What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=
create table table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ varchar, beam_height__mm_ varchar, PRIMARY KEY (moment_of_inertia_in_torsion__j___cm_4__))
select count(moment_of_inertia_in_torsion__j___cm_4__) from table_2071644_1 where beam_height__mm_ = 120
High assists belonging to Carmelo Anthony (11) have a record of what?
create table table_17355408_7 (record varchar, high_assists varchar, PRIMARY KEY (record))
select record from table_17355408_7 where high_assists = "carmelo anthony (11)"
What is every rider on Tuesday August 25 at 20' 32.11 110.241mph?
create table table_23465864_5 (rider varchar, tues_25_aug varchar, PRIMARY KEY (rider))
select rider from table_23465864_5 where tues_25_aug = "20' 32.11 110.241mph"
who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster?
create table table_20174050_23 (reader varchar, format varchar, author varchar, PRIMARY KEY (reader))
select reader from table_20174050_23 where format = "download/cd" and author = "lidster, joseph joseph lidster"
How much power was used when the callsign was DZYT?
create table table_12547903_3 (power__kw_ varchar, callsign varchar, PRIMARY KEY (power__kw_))
select power__kw_ from table_12547903_3 where callsign = "dzyt"
How many dates originally aired episodes located in Philadelphia, pennsylvania?
create table table_24798489_2 (original_airdate varchar, location varchar, PRIMARY KEY (original_airdate))
select count(original_airdate) from table_24798489_2 where location = "philadelphia, pennsylvania"