question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
How many different descriptions are there for the flag that means decimal digit 2?
|
create table table_29997112_3 (description varchar, meaning varchar, PRIMARY KEY (description))
|
select count(description) from table_29997112_3 where meaning = "decimal digit 2"
|
Who replaced the manager of Akhisar B.G.S.?
|
create table table_27091128_3 (replaced_by varchar, team varchar, PRIMARY KEY (replaced_by))
|
select replaced_by from table_27091128_3 where team = "akhisar b.g.s."
|
Which city does the student whose last name is "Kim" live in?
|
create table student (city_code varchar, lname varchar, PRIMARY KEY (city_code))
|
select city_code from student where lname = "kim"
|
How many cars does Gregg Mixon own?
|
create table table_2182170_1 (car_s_ varchar, listed_owner_s_ varchar, PRIMARY KEY (car_s_))
|
select count(car_s_) from table_2182170_1 where listed_owner_s_ = "gregg mixon"
|
Name the english for j'avais entendu
|
create table table_1841901_1 (english varchar, french varchar, PRIMARY KEY (english))
|
select english from table_1841901_1 where french = "j'avais entendu"
|
How many different meanings does the verb with part 4 gegeven have?
|
create table table_1745843_7 (verb_meaning varchar, part_4 varchar, PRIMARY KEY (verb_meaning))
|
select count(verb_meaning) from table_1745843_7 where part_4 = "gegeven"
|
Andy Roddick is the opponent in the final on what surface?
|
create table table_26202788_7 (surface varchar, opponent_in_the_final varchar, PRIMARY KEY (surface))
|
select surface from table_26202788_7 where opponent_in_the_final = "andy roddick"
|
The 1.6 Duratec model/engine has how many torque formulas?
|
create table table_1212189_1 (torque__nm__rpm varchar, model_engine varchar, PRIMARY KEY (torque__nm__rpm))
|
select count(torque__nm__rpm) from table_1212189_1 where model_engine = "1.6 duratec"
|
Show the denomination shared by more than one school.
|
create table school (denomination varchar, PRIMARY KEY (denomination))
|
select denomination from school group by denomination having count(*) > 1
|
What is the latest year established that had 5 powiats?
|
create table table_1784514_1 (year_established integer, number_of_powiats varchar, PRIMARY KEY (year_established))
|
select max(year_established) from table_1784514_1 where number_of_powiats = "5 powiats"
|
What are the forms of the conjucated vos(*) where él / ella / usted is muela
|
create table table_1977630_2 (vos__ varchar, _ varchar, él___ella___usted varchar, PRIMARY KEY (vos__))
|
select vos__ * _ from table_1977630_2 where él___ella___usted = "muela"
|
What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx?
|
create table table_24538587_11 (i_o_bus varchar, brand_name__list_ varchar, socket varchar, codename__main_article_ varchar, PRIMARY KEY (i_o_bus))
|
select i_o_bus from table_24538587_11 where socket = "lga 1155" and codename__main_article_ = "sandy bridge (desktop)" and brand_name__list_ = "core i3-21xx"
|
What was the profit before tax when the turnover was 431.06?
|
create table table_2856898_1 (profit_before_tax__£m_ varchar, turnover__£m_ varchar, PRIMARY KEY (profit_before_tax__£m_))
|
select profit_before_tax__£m_ from table_2856898_1 where turnover__£m_ = "431.06"
|
what's the date of completion where success is yes
|
create table table_12078626_1 (date_of_completion varchar, success varchar, PRIMARY KEY (date_of_completion))
|
select date_of_completion from table_12078626_1 where success = "yes"
|
Name the common name for furcifer pardalis
|
create table table_175442_1 (common_name varchar, scientific_name varchar, PRIMARY KEY (common_name))
|
select common_name from table_175442_1 where scientific_name = "furcifer pardalis"
|
How much was the cost of in-county tuition per credit hour at the Gloucester College by the fall of 2009?
|
create table table_22308881_2 (in_county_tuition_per_credit_hour__fall_2009_ varchar, college varchar, PRIMARY KEY (in_county_tuition_per_credit_hour__fall_2009_))
|
select in_county_tuition_per_credit_hour__fall_2009_ from table_22308881_2 where college = "gloucester"
|
How many schools are located in South Brisbane?
|
create table table_11318462_29 (school varchar, location varchar, PRIMARY KEY (school))
|
select count(school) from table_11318462_29 where location = "south brisbane"
|
Name the state class for isaac d. barnard (j)
|
create table table_225198_3 (state__class_ varchar, vacator varchar, PRIMARY KEY (state__class_))
|
select state__class_ from table_225198_3 where vacator = "isaac d. barnard (j)"
|
How many winners were there when the mountains classification was not awarded?
|
create table table_25551880_2 (winner varchar, mountains_classification varchar, PRIMARY KEY (winner))
|
select count(winner) from table_25551880_2 where mountains_classification = "not awarded"
|
What was the number for Vehlefanz where Bärenklau is 1.288?
|
create table table_11680175_1 (vehlefanz varchar, bärenklau varchar, PRIMARY KEY (vehlefanz))
|
select vehlefanz from table_11680175_1 where bärenklau = "1.288"
|
What is the number of the model with three parallel printer ports?
|
create table table_1300080_1 (model_number varchar, printer_ports varchar, PRIMARY KEY (model_number))
|
select model_number from table_1300080_1 where printer_ports = "three parallel"
|
What is the lowest points scored by the Wildcats when the record was 5-1?
|
create table table_20850527_1 (wildcats_points integer, record varchar, PRIMARY KEY (wildcats_points))
|
select min(wildcats_points) from table_20850527_1 where record = "5-1"
|
Find the number of different states which banks are located at.
|
create table bank (state varchar, PRIMARY KEY (state))
|
select count(distinct state) from bank
|
How many points does Swedish America's Cup Challenge have for rr1?
|
create table table_21515673_2 (rr1_pts varchar, team_name varchar, PRIMARY KEY (rr1_pts))
|
select count(rr1_pts) from table_21515673_2 where team_name = "swedish america's cup challenge"
|
What was the QB rating for Neil lomax?
|
create table table_20906175_3 (qb_rating varchar, name varchar, PRIMARY KEY (qb_rating))
|
select qb_rating from table_20906175_3 where name = "neil lomax"
|
How many song titles belong to the artist Ratt?
|
create table table_21500850_1 (song_title varchar, artist varchar, PRIMARY KEY (song_title))
|
select count(song_title) from table_21500850_1 where artist = "ratt"
|
What's the subject of 20 questions in those issues where Jillian Grace is the centerfold model?
|
create table table_1566852_6 (centerfold_model varchar, PRIMARY KEY (centerfold_model))
|
select 20 as _questions from table_1566852_6 where centerfold_model = "jillian grace"
|
tipuani municipality when tacacoma municipality is 6?
|
create table table_2509202_2 (tipuani_municipality varchar, tacacoma_municipality varchar, PRIMARY KEY (tipuani_municipality))
|
select tipuani_municipality from table_2509202_2 where tacacoma_municipality = "6"
|
In game site AOL Arena, who are all the opponents?
|
create table table_25380472_2 (opponent varchar, game_site varchar, PRIMARY KEY (opponent))
|
select opponent from table_25380472_2 where game_site = "aol arena"
|
What is the total number of dates of successor formal installation when the vacator was Joshua Clayton ( F )?
|
create table table_224839_3 (date_of_successors_formal_installation varchar, vacator varchar, PRIMARY KEY (date_of_successors_formal_installation))
|
select count(date_of_successors_formal_installation) from table_224839_3 where vacator = "joshua clayton ( f )"
|
Where is the train going to when departing at 20.35?
|
create table table_18332845_2 (going_to varchar, departure varchar, PRIMARY KEY (going_to))
|
select going_to from table_18332845_2 where departure = "20.35"
|
What is the callsign that has a station type of relay and a channel number of TV-2?
|
create table table_24673888_1 (callsign varchar, station_type varchar, ch__number varchar, PRIMARY KEY (callsign))
|
select callsign from table_24673888_1 where station_type = "relay" and ch__number = "tv-2"
|
Name who wrote the episode that had 7.56 million viewers
|
create table table_16951593_1 (written_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (written_by))
|
select written_by from table_16951593_1 where us_viewers__millions_ = "7.56"
|
Which professionals have done at least two treatments? List the professional's id, role, and first name.
|
create table professionals (professional_id varchar, role_code varchar, first_name varchar, PRIMARY KEY (professional_id)); create table treatments (professional_id varchar, PRIMARY KEY (professional_id))
|
select t1.professional_id, t1.role_code, t1.first_name from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) >= 2
|
What is the Mon 30 May time for the rider whose Fri 3 June time was 17' 13.46 131.431mph?
|
create table table_29218221_1 (mon_30_may varchar, fri_3_june varchar, PRIMARY KEY (mon_30_may))
|
select mon_30_may from table_29218221_1 where fri_3_june = "17' 13.46 131.431mph"
|
Name the percentage change yoy for presbyterian college
|
create table table_27956_3 (percentage_change_yoy varchar, institution varchar, PRIMARY KEY (percentage_change_yoy))
|
select percentage_change_yoy from table_27956_3 where institution = "presbyterian college"
|
Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way.
|
create table tourist_attractions (how_to_get_there varchar, PRIMARY KEY (how_to_get_there))
|
select how_to_get_there, count(*) from tourist_attractions group by how_to_get_there
|
Who performed all the high rebounds when craig smith (4) was the lead for high assists?
|
create table table_17058226_5 (high_rebounds varchar, high_assists varchar, PRIMARY KEY (high_rebounds))
|
select high_rebounds from table_17058226_5 where high_assists = "craig smith (4)"
|
What countries have a margin of victory at 6 strokes?
|
create table table_1529260_2 (country varchar, margin_of_victory varchar, PRIMARY KEY (country))
|
select country from table_1529260_2 where margin_of_victory = "6 strokes"
|
Find the number of users who did not write any review.
|
create table review (u_id varchar, PRIMARY KEY (u_id)); create table useracct (u_id varchar, PRIMARY KEY (u_id))
|
select count(*) from useracct where not u_id in (select u_id from review)
|
Show the description of transaction type with code "PUR".
|
create table ref_transaction_types (transaction_type_description varchar, transaction_type_code varchar, PRIMARY KEY (transaction_type_description))
|
select transaction_type_description from ref_transaction_types where transaction_type_code = "pur"
|
Where are there 25 episodes in Catfights and Brawls?
|
create table table_191591_5 (region_2 varchar, number_of_episodes varchar, dvd_title varchar, PRIMARY KEY (region_2))
|
select region_2 from table_191591_5 where number_of_episodes = "25" and dvd_title = "catfights and brawls"
|
What's the power output for channel tv-29?
|
create table table_2523809_1 (power__kw_ varchar, channel varchar, PRIMARY KEY (power__kw_))
|
select power__kw_ from table_2523809_1 where channel = "tv-29"
|
What yacht did Andrew Saies sail on?
|
create table table_25561560_3 (yacht varchar, skipper varchar, PRIMARY KEY (yacht))
|
select yacht from table_25561560_3 where skipper = "andrew saies"
|
what's the stadium with record being 1–1
|
create table table_14102379_4 (stadium varchar, record varchar, PRIMARY KEY (stadium))
|
select stadium from table_14102379_4 where record = "1–1"
|
How many U.S. viewers watched the episode directed by Frank Waldeck?
|
create table table_21634403_2 (us_viewers__millions_ varchar, directed_by varchar, PRIMARY KEY (us_viewers__millions_))
|
select us_viewers__millions_ from table_21634403_2 where directed_by = "frank waldeck"
|
What was the population density in km2 for 2011 in the division where area in km2 was 684.37 in 2011?
|
create table table_24027047_1 (population_density___km²_2011_ varchar, area__km²__2011 varchar, PRIMARY KEY (population_density___km²_2011_))
|
select population_density___km²_2011_ from table_24027047_1 where area__km²__2011 * * = "684.37"
|
When Julian Illingworth was the under-19, who was the under-15?
|
create table table_26368963_1 (under_15 varchar, under_19 varchar, PRIMARY KEY (under_15))
|
select under_15 from table_26368963_1 where under_19 = "julian illingworth"
|
How many viewers were there for the premier with 34
|
create table table_10942714_1 (hk_viewers varchar, premiere varchar, PRIMARY KEY (hk_viewers))
|
select hk_viewers from table_10942714_1 where premiere = 34
|
List all different genre types.
|
create table genres (name varchar, PRIMARY KEY (name))
|
select distinct name from genres
|
How many caps figures for the Doncaster Rovers?
|
create table table_28286776_52 (cap_s_ varchar, club_s_ varchar, PRIMARY KEY (cap_s_))
|
select count(cap_s_) from table_28286776_52 where club_s_ = "doncaster rovers"
|
What is the venue for batting partners Mahela Jayawardene and Prasanna Jayawardene
|
create table table_1670921_1 (venue varchar, batting_partners varchar, PRIMARY KEY (venue))
|
select venue from table_1670921_1 where batting_partners = "mahela jayawardene and prasanna jayawardene"
|
What was the finale for 潮爆大狀
|
create table table_10942714_1 (finale varchar, chinese_title varchar, PRIMARY KEY (finale))
|
select finale from table_10942714_1 where chinese_title = "潮爆大狀"
|
What is the pole position of paul ricard?
|
create table table_1140078_2 (pole_position varchar, location varchar, PRIMARY KEY (pole_position))
|
select pole_position from table_1140078_2 where location = "paul ricard"
|
Find the busiest source airport that runs most number of routes in China.
|
create table routes (src_apid varchar, PRIMARY KEY (src_apid)); create table airports (name varchar, apid varchar, country varchar, PRIMARY KEY (name))
|
select t1.name from airports as t1 join routes as t2 on t1.apid = t2.src_apid where t1.country = 'china' group by t1.name order by count(*) desc limit 1
|
How many women doubles teams competed in the same year as when Jamie van Hooijdonk competed in men singles?
|
create table table_12232843_1 (womens_doubles varchar, mens_singles varchar, PRIMARY KEY (womens_doubles))
|
select count(womens_doubles) from table_12232843_1 where mens_singles = "jamie van hooijdonk"
|
Show the most common headquarter for companies.
|
create table company (headquarters varchar, PRIMARY KEY (headquarters))
|
select headquarters from company group by headquarters order by count(*) desc limit 1
|
Who is the primary sponsor for crew cheif Rick Ren's team?
|
create table table_19908313_2 (primary_sponsor_s_ varchar, crew_chief varchar, PRIMARY KEY (primary_sponsor_s_))
|
select primary_sponsor_s_ from table_19908313_2 where crew_chief = "rick ren"
|
What is the id of the project with least number of documents?
|
create table documents (project_id varchar, PRIMARY KEY (project_id))
|
select project_id from documents group by project_id order by count(*) limit 1
|
what's the torque with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb
|
create table table_1373768_1 (torque varchar, fuel_mileage__latest_epa_mpg___us__ varchar, PRIMARY KEY (torque))
|
select torque from table_1373768_1 where fuel_mileage__latest_epa_mpg___us__ = "22 city, 30 hwy, 25 comb"
|
Which country has doosan infracore as then company name?
|
create table table_237199_1 (country varchar, company_name varchar, PRIMARY KEY (country))
|
select country from table_237199_1 where company_name = "doosan infracore"
|
how many times was the qualifying score 60.750?
|
create table table_13114949_3 (event varchar, qualifying_score varchar, PRIMARY KEY (event))
|
select count(event) from table_13114949_3 where qualifying_score = "60.750"
|
What is the highest overall number one(s)?
|
create table table_19542477_8 (number_one_s_ integer, PRIMARY KEY (number_one_s_))
|
select max(number_one_s_) from table_19542477_8
|
How many school teams are nicknamed "Bulldogs".
|
create table table_26351260_1 (location varchar, team_nickname varchar, PRIMARY KEY (location))
|
select location from table_26351260_1 where team_nickname = "bulldogs"
|
WHO WAS THE STAGE WINNER IN THE STAGE WHERE MICHAEL ALBASINI WON THE METAS VOLANTES CLASSIFICATION?
|
create table table_21804557_18 (stage__winner_ varchar, metas_volantes_classification varchar, PRIMARY KEY (stage__winner_))
|
select stage__winner_ from table_21804557_18 where metas_volantes_classification = "michael albasini"
|
How many years did the school have a mathetmatics score of 98.02?
|
create table table_2534578_1 (science varchar, mathematics varchar, PRIMARY KEY (science))
|
select count(science) from table_2534578_1 where mathematics = "98.02"
|
What high definition television options are available for Italia 1?
|
create table table_15887683_1 (hdtv varchar, television_service varchar, PRIMARY KEY (hdtv))
|
select hdtv from table_15887683_1 where television_service = "italia 1"
|
What is the reverse when the £1 fraction is 1/480?
|
create table table_1682865_1 (reverse varchar, £1_fraction varchar, PRIMARY KEY (reverse))
|
select reverse from table_1682865_1 where £1_fraction = "1/480"
|
what is the 2001 % for the status widowed or surviving partner?
|
create table table_273617_6 (status varchar, PRIMARY KEY (status))
|
select 2001 as __percentage from table_273617_6 where status = "widowed or surviving partner"
|
What is the status of the county that has a 17.3% poverty rate?
|
create table table_22815568_2 (status varchar, poverty_rate varchar, PRIMARY KEY (status))
|
select status from table_22815568_2 where poverty_rate = "17.3%"
|
What i/o buses are associated with the brand name Core i3-21xxt?
|
create table table_24538587_11 (i_o_bus varchar, brand_name__list_ varchar, PRIMARY KEY (i_o_bus))
|
select i_o_bus from table_24538587_11 where brand_name__list_ = "core i3-21xxt"
|
Name the uyghur for 瓦恰
|
create table table_2008069_2 (uyghur___k̢ona_yezik̢__ varchar, chinese varchar, PRIMARY KEY (uyghur___k̢ona_yezik̢__))
|
select uyghur___k̢ona_yezik̢__ from table_2008069_2 where chinese = "瓦恰"
|
What is the female rank in Karnataka?
|
create table table_14785903_1 (females_rank varchar, states varchar, PRIMARY KEY (females_rank))
|
select females_rank from table_14785903_1 where states = "karnataka"
|
What is the y = 2011 when the expression is month = floor ((d + e + 114) / 31)?
|
create table table_214479_8 (y_ varchar, _2011 varchar, expression varchar, month varchar, d varchar, e varchar, PRIMARY KEY (y_))
|
select y_ = _2011 from table_214479_8 where expression = month = floor((d + e + 114) / 31)
|
Who won best actress?
|
create table table_25926120_3 (awardee_s_ varchar, name_of_award varchar, PRIMARY KEY (awardee_s_))
|
select awardee_s_ from table_25926120_3 where name_of_award = "best actress"
|
How many countries have a republic as their form of government?
|
create table country (governmentform varchar, PRIMARY KEY (governmentform))
|
select count(*) from country where governmentform = "republic"
|
find the code of the country where has the greatest number of players.
|
create table players (country_code varchar, PRIMARY KEY (country_code))
|
select country_code from players group by country_code order by count(*) desc limit 1
|
Name the license for 2009-05-25 v 7.61
|
create table table_19495707_1 (license varchar, latest_release_date_and_version varchar, PRIMARY KEY (license))
|
select license from table_19495707_1 where latest_release_date_and_version = "2009-05-25 v 7.61"
|
How many events have each participants attended? List the participant id, type and the number.
|
create table participants (participant_id varchar, participant_type_code varchar, PRIMARY KEY (participant_id)); create table participants_in_events (participant_id varchar, PRIMARY KEY (participant_id))
|
select t1.participant_id, t1.participant_type_code, count(*) from participants as t1 join participants_in_events as t2 on t1.participant_id = t2.participant_id group by t1.participant_id
|
What was the categoria when E.E.U.U was the country?
|
create table table_27501971_2 (categoría varchar, country varchar, PRIMARY KEY (categoría))
|
select categoría from table_27501971_2 where country = "e.e.u.u"
|
What is the fee (if applicable) for Norway?
|
create table table_25965003_3 (fee__if_applicable_ varchar, countries_and_territories varchar, PRIMARY KEY (fee__if_applicable_))
|
select fee__if_applicable_ from table_25965003_3 where countries_and_territories = "norway"
|
How many viewers were there in Sydney for the episode when there were 334000 in Melbourne?
|
create table table_24291077_4 (sydney varchar, melbourne varchar, PRIMARY KEY (sydney))
|
select sydney from table_24291077_4 where melbourne = 334000
|
What is the quarterfinal week for Austin Anderson?
|
create table table_27529608_21 (qtr_final__week_ integer, name_name_of_act varchar, PRIMARY KEY (qtr_final__week_))
|
select min(qtr_final__week_) from table_27529608_21 where name_name_of_act = "austin anderson"
|
Find the name of instructors who are advising more than one student.
|
create table advisor (i_id varchar, PRIMARY KEY (i_id)); create table instructor (name varchar, id varchar, PRIMARY KEY (name))
|
select t1.name from instructor as t1 join advisor as t2 on t1.id = t2.i_id group by t2.i_id having count(*) > 1
|
List the most common type of competition.
|
create table competition (competition_type varchar, PRIMARY KEY (competition_type))
|
select competition_type from competition group by competition_type order by count(*) desc limit 1
|
How many points did the Wildcats get when Baylor was an opponent?
|
create table table_24561550_1 (wildcats_points varchar, opponent varchar, PRIMARY KEY (wildcats_points))
|
select wildcats_points from table_24561550_1 where opponent = "baylor"
|
How many original air dates have U.S. Views (millions) of 19.49?
|
create table table_17758010_2 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date))
|
select count(original_air_date) from table_17758010_2 where us_viewers__millions_ = "19.49"
|
How many documents have expenses?
|
create table documents_with_expenses (id varchar, PRIMARY KEY (id))
|
select count(*) from documents_with_expenses
|
What was the language for the movie "Late Bloomers"?
|
create table table_22034853_1 (language_s_ varchar, film_title_used_in_nomination varchar, PRIMARY KEY (language_s_))
|
select language_s_ from table_22034853_1 where film_title_used_in_nomination = "late bloomers"
|
What is the Portuguese name of the film who's English title is, Belle Toujours?
|
create table table_22118197_1 (portuguese_title varchar, english_title varchar, PRIMARY KEY (portuguese_title))
|
select portuguese_title from table_22118197_1 where english_title = "belle toujours"
|
What is the total number of regions where the average family size is 2.8?
|
create table table_16048129_5 (_percentage_of_total_deportees varchar, average_family_size varchar, PRIMARY KEY (_percentage_of_total_deportees))
|
select count(_percentage_of_total_deportees) from table_16048129_5 where average_family_size = "2.8"
|
What is the reviewer id of Daniel Lewis?
|
create table reviewer (rid varchar, name varchar, PRIMARY KEY (rid))
|
select rid from reviewer where name = "daniel lewis"
|
How many penalties are there when Eric Vigeanel is the rider?
|
create table table_18666752_3 (total_penalties varchar, rider varchar, PRIMARY KEY (total_penalties))
|
select count(total_penalties) from table_18666752_3 where rider = "eric vigeanel"
|
Show other account details for account with name 338.
|
create table accounts (other_account_details varchar, account_name varchar, PRIMARY KEY (other_account_details))
|
select other_account_details from accounts where account_name = "338"
|
how many equivalent daily inflation rate with currency name being republika srpska dinar
|
create table table_13681_2 (equivalent_daily_inflation_rate varchar, currency_name varchar, PRIMARY KEY (equivalent_daily_inflation_rate))
|
select count(equivalent_daily_inflation_rate) from table_13681_2 where currency_name = "republika srpska dinar"
|
If hardware colours is 8 what would the char cells be?
|
create table table_1701371_2 (char_cells varchar, hardware_colours varchar, PRIMARY KEY (char_cells))
|
select char_cells from table_1701371_2 where hardware_colours = 8
|
List the state names and the number of customers living in each state.
|
create table customer_addresses (address_id varchar, PRIMARY KEY (address_id)); create table addresses (state_province_county varchar, address_id varchar, PRIMARY KEY (state_province_county))
|
select t2.state_province_county, count(*) from customer_addresses as t1 join addresses as t2 on t1.address_id = t2.address_id group by t2.state_province_county
|
Name the ground for essendon
|
create table table_16388047_1 (ground varchar, home_team varchar, PRIMARY KEY (ground))
|
select ground from table_16388047_1 where home_team = "essendon"
|
Find the name of dorms which have both TV Lounge and Study Room as amenities.
|
create table dorm (dorm_name varchar, dormid varchar, PRIMARY KEY (dorm_name)); create table has_amenity (dormid varchar, amenid varchar, PRIMARY KEY (dormid)); create table dorm_amenity (amenid varchar, amenity_name varchar, PRIMARY KEY (amenid))
|
select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'tv lounge' intersect select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'study room'
|
Name the number of reporters for heywood hale broun
|
create table table_22514845_5 (reporters varchar, s_analyst varchar, PRIMARY KEY (reporters))
|
select count(reporters) from table_22514845_5 where s_analyst = "heywood hale broun"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.