question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What are the average profits of companies?
create table companies (profits_billion integer, PRIMARY KEY (profits_billion))
select avg(profits_billion) from companies
Who had the most rebounds in the game against the team with a 5-2 record against the Hawks?
create table table_23248910_5 (high_rebounds varchar, record varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_23248910_5 where record = "5-2"
How many validations are listed for the iin range 36?
create table table_15905399_1 (validation varchar, iin_ranges varchar, PRIMARY KEY (validation))
select count(validation) from table_15905399_1 where iin_ranges = "36"
What are the ids, names and genders of the architects who built two bridges or one mill?
create table mill (architect_id varchar, PRIMARY KEY (architect_id)); create table architect (id varchar, name varchar, gender varchar, PRIMARY KEY (id)); create table bridge (architect_id varchar, PRIMARY KEY (architect_id))
select t1.id, t1.name, t1.gender from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2 union select t1.id, t1.name, t1.gender from architect as t1 join mill as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 1
What are the conditions for the athens circuit?
create table table_24463470_1 (conditions varchar, circuit varchar, PRIMARY KEY (conditions))
select conditions from table_24463470_1 where circuit = "athens"
Name the mens singles for lee eun-sil moon hyun-jung
create table table_28138035_4 (mens_singles varchar, womens_doubles varchar, PRIMARY KEY (mens_singles))
select mens_singles from table_28138035_4 where womens_doubles = "lee eun-sil moon hyun-jung"
What is the title of episode No. 65?
create table table_28195898_1 (title varchar, № varchar, PRIMARY KEY (title))
select title from table_28195898_1 where № = 65
Who did Nabil Kassel face in the Round of 32?
create table table_17427004_7 (round_of_32 varchar, athlete varchar, PRIMARY KEY (round_of_32))
select round_of_32 from table_17427004_7 where athlete = "nabil kassel"
Name the median income for age band being under 20
create table table_14946657_3 (median_income varchar, age_band varchar, PRIMARY KEY (median_income))
select median_income from table_14946657_3 where age_band = "under 20"
When did this wind farm started service with a capacity of 135 MW?
create table table_24837750_1 (date_in_service varchar, installed_capacity__mw_ varchar, PRIMARY KEY (date_in_service))
select date_in_service from table_24837750_1 where installed_capacity__mw_ = "135"
Who had highest points during game against the Utah Jazz?
create table table_27902171_6 (high_points varchar, team varchar, PRIMARY KEY (high_points))
select high_points from table_27902171_6 where team = "utah jazz"
What is the location of the institution barton college
create table table_11658094_1 (location varchar, institution varchar, PRIMARY KEY (location))
select location from table_11658094_1 where institution = "barton college"
Which start station had the most trips starting from August? Give me the name and id of the station.
create table trip (start_station_name varchar, start_station_id varchar, start_date varchar, PRIMARY KEY (start_station_name))
select start_station_name, start_station_id from trip where start_date like "8/%" group by start_station_name order by count(*) desc limit 1
Where does the staff member with the first name Elsa live?
create table staff (address_id varchar, first_name varchar, PRIMARY KEY (address_id)); create table address (address varchar, address_id varchar, PRIMARY KEY (address))
select t2.address from staff as t1 join address as t2 on t1.address_id = t2.address_id where t1.first_name = 'elsa'
how many directors for the film мајки
create table table_14928423_1 (director_s_ varchar, original_title varchar, PRIMARY KEY (director_s_))
select count(director_s_) from table_14928423_1 where original_title = "мајки"
What is the NFL team for the player who's college was Norfolk State?
create table table_16376436_1 (nfl_team varchar, college varchar, PRIMARY KEY (nfl_team))
select nfl_team from table_16376436_1 where college = "norfolk state"
When the girls singles is lindaweni fanetri what is the mixed doubled?
create table table_14319023_2 (mixed_doubles varchar, girls_singles varchar, PRIMARY KEY (mixed_doubles))
select mixed_doubles from table_14319023_2 where girls_singles = "lindaweni fanetri"
What was Brian Moran's tally in the Survey USA poll where Creigh Deeds had 26%?
create table table_21535453_1 (brian_moran varchar, source varchar, creigh_deeds varchar, PRIMARY KEY (brian_moran))
select brian_moran from table_21535453_1 where source = "survey usa" and creigh_deeds = "26%"
What days is greenock morton vacant?
create table table_11207040_6 (date_of_vacancy varchar, team varchar, PRIMARY KEY (date_of_vacancy))
select date_of_vacancy from table_11207040_6 where team = "greenock morton"
What's the percentage of the immigrants in 2007 in the country with 14.1% of the immigrants in 2006?
create table table_23619212_1 (_percentage_of_all_immigrants_2007 varchar, _percentage_of_all_immigrants_2006 varchar, PRIMARY KEY (_percentage_of_all_immigrants_2007))
select _percentage_of_all_immigrants_2007 from table_23619212_1 where _percentage_of_all_immigrants_2006 = "14.1%"
What's the record in the game in which Brad Miller (7) did the high rebounds?
create table table_22669044_10 (record varchar, high_rebounds varchar, PRIMARY KEY (record))
select record from table_22669044_10 where high_rebounds = "brad miller (7)"
What was the manner of departure of Nicolae Manea?
create table table_17115950_2 (manner_of_departure varchar, outgoing_manager varchar, PRIMARY KEY (manner_of_departure))
select manner_of_departure from table_17115950_2 where outgoing_manager = "nicolae manea"
Who was asked 20 questions in the issue where the cover model is Linda Brava?
create table table_1566850_9 (cover_model varchar, PRIMARY KEY (cover_model))
select 20 as _questions from table_1566850_9 where cover_model = "linda brava"
What is the Atlantic Europe when age is 10,000 years?
create table table_22860_1 (atlantic_europe varchar, age__before_ varchar, PRIMARY KEY (atlantic_europe))
select atlantic_europe from table_22860_1 where age__before_ = "10,000 years"
What network garnered 2.74 million viewers for Supernatural?
create table table_2170969_2 (network varchar, viewers_in_millions varchar, PRIMARY KEY (network))
select network from table_2170969_2 where viewers_in_millions = "2.74"
What is the no party preference when other is 10.1%?
create table table_27003186_3 (no_party_preference varchar, other varchar, PRIMARY KEY (no_party_preference))
select no_party_preference from table_27003186_3 where other = "10.1%"
How many 2nd legs are there where home (1st leg) is Independiente?
create table table_14219514_1 (home__1st_leg_ varchar, PRIMARY KEY (home__1st_leg_))
select 2 as nd_leg from table_14219514_1 where home__1st_leg_ = "independiente"
Who was the TO winning team when the TU winning team was Joe Richardson?
create table table_13642023_2 (to_winning_team varchar, tu_winning_team varchar, PRIMARY KEY (to_winning_team))
select to_winning_team from table_13642023_2 where tu_winning_team = "joe richardson"
Who did the most assists when Matt Barnes (11) got the most rebounds?
create table table_17340355_10 (high_assists varchar, high_rebounds varchar, PRIMARY KEY (high_assists))
select high_assists from table_17340355_10 where high_rebounds = "matt barnes (11)"
What was the 18 to 49 rating when 9.50 million watched?
create table table_24689168_5 (rating__18_49_ varchar, viewers__millions_ varchar, PRIMARY KEY (rating__18_49_))
select rating__18_49_ from table_24689168_5 where viewers__millions_ = "9.50"
What are all the songs in albums under label "Universal Music Group"?
create table songs (title varchar, songid varchar, PRIMARY KEY (title)); create table albums (aid varchar, PRIMARY KEY (aid)); create table tracklists (albumid varchar, songid varchar, PRIMARY KEY (albumid))
select t3.title from albums as t1 join tracklists as t2 on t1.aid = t2.albumid join songs as t3 on t2.songid = t3.songid where t1.label = "universal music group"
Show origins of all flights with destination Honolulu.
create table flight (origin varchar, destination varchar, PRIMARY KEY (origin))
select origin from flight where destination = "honolulu"
Show all main industry for all companies.
create table company (main_industry varchar, PRIMARY KEY (main_industry))
select distinct main_industry from company
How many villages are there in the Magway region?
create table table_19457_1 (villages varchar, state_region varchar, PRIMARY KEY (villages))
select villages from table_19457_1 where state_region = "magway region"
Find the total number of scientists.
create table scientists (id varchar, PRIMARY KEY (id))
select count(*) from scientists
Who was the defensive award winner in February when the rookie award was given to Rhys Duch?
create table table_14132239_3 (defensive varchar, month varchar, rookie varchar, PRIMARY KEY (defensive))
select defensive from table_14132239_3 where month = "february" and rookie = "rhys duch"
How many table points are listed for the deficit is +194?
create table table_18505065_1 (table_points varchar, difference varchar, PRIMARY KEY (table_points))
select count(table_points) from table_18505065_1 where difference = "+194"
Who is every name for time(cet) of 09:58?
create table table_21536557_2 (name varchar, time__cet_ varchar, PRIMARY KEY (name))
select name from table_21536557_2 where time__cet_ = "09:58"
What was the record against Washington?
create table table_17121262_10 (record varchar, team varchar, PRIMARY KEY (record))
select count(record) from table_17121262_10 where team = "washington"
What is the new classification for the University of Arizona Western in the Collegiate Lacrosse League?
create table table_14976504_2 (new_classification varchar, institution varchar, PRIMARY KEY (new_classification))
select new_classification from table_14976504_2 where institution = "university of arizona"
What is the most used instrument?
create table instruments (instrument varchar, PRIMARY KEY (instrument))
select instrument from instruments group by instrument order by count(*) desc limit 1
What province had a turnout of 54.09%?
create table table_27274222_2 (province varchar, turnout___percentage_ varchar, PRIMARY KEY (province))
select province from table_27274222_2 where turnout___percentage_ = "54.09"
What is the team that the replaced by is miroslav đukić?
create table table_24231638_3 (team varchar, replaced_by varchar, PRIMARY KEY (team))
select team from table_24231638_3 where replaced_by = "miroslav đukić"
What are the names of players from the dr congo?
create table table_29743928_3 (name varchar, country varchar, PRIMARY KEY (name))
select name from table_29743928_3 where country = "dr congo"
How many elverum are tehre for et sted i scandinavia?
create table table_19439864_2 (elverum varchar, song varchar, PRIMARY KEY (elverum))
select count(elverum) from table_19439864_2 where song = "et sted i scandinavia"
Name the record for new york giants
create table table_15607589_2 (record varchar, opponent varchar, PRIMARY KEY (record))
select record from table_15607589_2 where opponent = "new york giants"
Which street is 12.2 miles long?
create table table_10568553_1 (street_names varchar, milepost varchar, PRIMARY KEY (street_names))
select street_names from table_10568553_1 where milepost = "12.2"
How many times was the opponent country India?
create table table_21907770_4 (country varchar, versus varchar, PRIMARY KEY (country))
select count(country) from table_21907770_4 where versus = "india"
What is the NFL team for the player who's college was North Carolina?
create table table_16376436_1 (nfl_team varchar, college varchar, PRIMARY KEY (nfl_team))
select nfl_team from table_16376436_1 where college = "north carolina"
What won the Best Female Artist if People's Male MC won the Best Female Lyricist?
create table table_22546460_4 (best_female_artist varchar, best_female_lyricist varchar, PRIMARY KEY (best_female_artist))
select best_female_artist from table_22546460_4 where best_female_lyricist = "people's male mc"
How many characteristics does the product named "sesame" have?
create table product_characteristics (product_id varchar, PRIMARY KEY (product_id)); create table products (product_id varchar, product_name varchar, PRIMARY KEY (product_id))
select count(*) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id where t1.product_name = "sesame"
what's the team with stadium being glebe park
create table table_14003020_5 (team varchar, stadium varchar, PRIMARY KEY (team))
select team from table_14003020_5 where stadium = "glebe park"
How many services are there?
create table services (id varchar, PRIMARY KEY (id))
select count(*) from services
Name the upper index kcal/nm3 for 62.47
create table table_1868929_1 (upper_index_kcal__nm_3 varchar, lower_index_mj__nm_3 varchar, PRIMARY KEY (upper_index_kcal__nm_3))
select upper_index_kcal__nm_3 from table_1868929_1 where lower_index_mj__nm_3 = "62.47"
How many contestants had a starting bmi of 33.1?
create table table_28654454_5 (finale_weight varchar, starting_bmi varchar, PRIMARY KEY (finale_weight))
select count(finale_weight) from table_28654454_5 where starting_bmi = "33.1"
What is the Irish name listed with 62% Irish speakers?
create table table_101196_1 (irish_name varchar, irish_speakers varchar, PRIMARY KEY (irish_name))
select irish_name from table_101196_1 where irish_speakers = "62%"
Show different builders of railways, along with the corresponding number of railways using each builder.
create table railway (builder varchar, PRIMARY KEY (builder))
select builder, count(*) from railway group by builder
Name the santee sisseton for wičháša
create table table_1499774_5 (santee_sisseton varchar, yankton_yanktonai varchar, PRIMARY KEY (santee_sisseton))
select santee_sisseton from table_1499774_5 where yankton_yanktonai = "wičháša"
What is the only city name with a population density of 200?
create table table_21284653_1 (name varchar, population_density varchar, PRIMARY KEY (name))
select name from table_21284653_1 where population_density = "200"
How many seats were won, when the seats contested was 48?
create table table_20728138_1 (seats_won varchar, seats_contested varchar, PRIMARY KEY (seats_won))
select seats_won from table_20728138_1 where seats_contested = 48
List all cartoon directed by "Ben Jones".
create table cartoon (title varchar, directed_by varchar, PRIMARY KEY (title))
select title from cartoon where directed_by = "ben jones"
What was the province if the electorate was Collingwood?
create table table_27592654_2 (province varchar, electorate varchar, PRIMARY KEY (province))
select province from table_27592654_2 where electorate = "collingwood"
When 139 is on March 27th to 29th what is August 21st to 22nd?
create table table_25286976_2 (august_21_22 varchar, march_27_29 varchar, PRIMARY KEY (august_21_22))
select august_21_22 from table_25286976_2 where march_27_29 = "139"
Name the total number for 18-49 share being 18-49 being 3.1
create table table_20971444_3 (share__18_49_ varchar, rating__18_49_ varchar, PRIMARY KEY (share__18_49_))
select count(share__18_49_) from table_20971444_3 where rating__18_49_ = "3.1"
How many papers are published in total?
create table papers (id varchar, PRIMARY KEY (id))
select count(*) from papers
Who won when Jamie Green had the best lap?
create table table_21321935_2 (winning_driver varchar, fastest_lap varchar, PRIMARY KEY (winning_driver))
select winning_driver from table_21321935_2 where fastest_lap = "jamie green"
Where is lootospark from?
create table table_27409644_1 (location varchar, ground varchar, PRIMARY KEY (location))
select location from table_27409644_1 where ground = "lootospark"
What is the part 4 when part 1 is "lesan"?
create table table_1745843_8 (part_4 varchar, part_1 varchar, PRIMARY KEY (part_4))
select part_4 from table_1745843_8 where part_1 = "lesan"
Who was the episode writer when the viewers reached 3.03 million in the US?
create table table_17861265_1 (written_by varchar, us_viewers__million_ varchar, PRIMARY KEY (written_by))
select written_by from table_17861265_1 where us_viewers__million_ = "3.03"
Show all different home cities.
create table driver (home_city varchar, PRIMARY KEY (home_city))
select distinct home_city from driver
How many rain figures are provided for sunlight hours in 1966?
create table table_12837_1 (rain varchar, sunlight_hours varchar, PRIMARY KEY (rain))
select count(rain) from table_12837_1 where sunlight_hours = 1966
Who replaced Michel Preud'homme?
create table table_27374004_3 (replaced_by varchar, outgoing_manager varchar, PRIMARY KEY (replaced_by))
select replaced_by from table_27374004_3 where outgoing_manager = "michel preud'homme"
How many powiats have mstsislaw as a capital?
create table table_1784514_1 (number_of_powiats varchar, capital varchar, PRIMARY KEY (number_of_powiats))
select number_of_powiats from table_1784514_1 where capital = "mstsislaw"
What is the highest amount of uefa champion leagues?
create table table_18254488_2 (uefa_champions_league integer, PRIMARY KEY (uefa_champions_league))
select max(uefa_champions_league) from table_18254488_2
What is the type when the settlement is subotište?
create table table_2562572_52 (type varchar, settlement varchar, PRIMARY KEY (type))
select type from table_2562572_52 where settlement = "subotište"
Which people had the best 10-year period when Capablanca had the best 15-year period?
create table table_1710426_2 (best_10_year_period varchar, best_15_year_period varchar, PRIMARY KEY (best_10_year_period))
select best_10_year_period from table_1710426_2 where best_15_year_period = "capablanca"
if the best run was 138, what is the amount of games lost?
create table table_27533947_1 (games_lost varchar, best_run varchar, PRIMARY KEY (games_lost))
select games_lost from table_27533947_1 where best_run = 138
What are the nationalities of the player picked from Thunder Bay Flyers (ushl)
create table table_1013129_2 (nationality varchar, college_junior_club_team varchar, PRIMARY KEY (nationality))
select nationality from table_1013129_2 where college_junior_club_team = "thunder bay flyers (ushl)"
List the first name and last name of customers have the amount of outstanding between 1000 and 3000.
create table customers (first_name varchar, last_name varchar, amount_outstanding integer, PRIMARY KEY (first_name))
select first_name, last_name from customers where amount_outstanding between 1000 and 3000
What candidates ran in the election that featured harry lane englebright?
create table table_1342370_5 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1342370_5 where incumbent = "harry lane englebright"
What theme name has the original artist of Dolly Parton?
create table table_15796100_1 (theme varchar, original_artist varchar, PRIMARY KEY (theme))
select theme from table_15796100_1 where original_artist = "dolly parton"
What is the original air date of the episode that was watched by 0.88 million U.S. viewers?
create table table_28680377_2 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_28680377_2 where us_viewers__million_ = "0.88"
Name the party for bensalem
create table table_1979619_3 (party varchar, residence varchar, PRIMARY KEY (party))
select party from table_1979619_3 where residence = "bensalem"
Name the team for avg start being 20.5
create table table_2463383_2 (team_s_ varchar, avg_start varchar, PRIMARY KEY (team_s_))
select team_s_ from table_2463383_2 where avg_start = "20.5"
Which club had 5 bonus points?
create table table_27293285_2 (club varchar, bonus_points varchar, PRIMARY KEY (club))
select club from table_27293285_2 where bonus_points = "5"
Name the most 1 credit for three of a kind
create table table_148535_2 (hand varchar, PRIMARY KEY (hand))
select max(1 as _credit) from table_148535_2 where hand = "three of a kind"
Which school's team has the nickname of the Wildcats?
create table table_16078390_2 (institution varchar, team_nickname varchar, PRIMARY KEY (institution))
select institution from table_16078390_2 where team_nickname = "wildcats"
For the location of quezon city , metro manila what is the athletic nickname?
create table table_22171978_1 (athletic_nickname varchar, location varchar, PRIMARY KEY (athletic_nickname))
select athletic_nickname from table_22171978_1 where location = "quezon city , metro manila"
Name the third district for christine young
create table table_15442974_1 (third_district varchar, fifth_district varchar, PRIMARY KEY (third_district))
select third_district from table_15442974_1 where fifth_district = "christine young"
List all directors when Brad Radnitz was the writer?
create table table_2342078_4 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by))
select directed_by from table_2342078_4 where written_by = "brad radnitz"
What finales took place in the Tuesday 9:30 p.m. timeslot?
create table table_175980_2 (finale varchar, timeslot varchar, PRIMARY KEY (finale))
select finale from table_175980_2 where timeslot = "tuesday 9:30 p.m."
Name the duration for vladimir vasyutin , alexander volkov
create table table_245801_1 (duration__days_ varchar, crew varchar, PRIMARY KEY (duration__days_))
select count(duration__days_) from table_245801_1 where crew = "vladimir vasyutin , alexander volkov"
What is friday day six when thursday day five is پچھمبے pachhambey?
create table table_1277350_7 (friday_day_six varchar, thursday_day_five varchar, PRIMARY KEY (friday_day_six))
select friday_day_six from table_1277350_7 where thursday_day_five = "پچھمبے pachhambey"
What is the weight with a cross section area of 25.3?
create table table_2071644_2 (weight__kg_m_ varchar, cross_section_area__cm_2__ varchar, PRIMARY KEY (weight__kg_m_))
select weight__kg_m_ from table_2071644_2 where cross_section_area__cm_2__ = "25.3"
What is the highest Jews and others 1?
create table table_25947046_1 (jews_and_others_1 integer, PRIMARY KEY (jews_and_others_1))
select max(jews_and_others_1) from table_25947046_1
How many appointment dates were recorded when Jürgen Kohler was the replaced by?
create table table_17085981_2 (date_of_appointment varchar, replaced_by varchar, PRIMARY KEY (date_of_appointment))
select count(date_of_appointment) from table_17085981_2 where replaced_by = "jürgen kohler"
How many customers do we have?
create table customers (id varchar, PRIMARY KEY (id))
select count(*) from customers
What is every equivalent for the example of asy28?
create table table_30011_2 (equivalent varchar, example varchar, PRIMARY KEY (equivalent))
select equivalent from table_30011_2 where example = "asy28"
What is the final win percentage of the Sault Ste. Marie Greyhounds?
create table table_17751942_4 (final_win__percentage varchar, team varchar, PRIMARY KEY (final_win__percentage))
select final_win__percentage from table_17751942_4 where team = "sault ste. marie greyhounds"
What index was created by the United Nations (UNDP) and reached 2nd place in the LA Ranking?
create table table_19948664_1 (index__year_ varchar, author___editor___source varchar, ranking_la__2_ varchar, PRIMARY KEY (index__year_))
select index__year_ from table_19948664_1 where author___editor___source = "united nations (undp)" and ranking_la__2_ = "2nd"