question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Who are all providers with destination of Liverpool? | create table table_3005999_1 (provider varchar, destination varchar, PRIMARY KEY (provider)) | select provider from table_3005999_1 where destination = "liverpool" |
What value can you find under the column "august 21-22" and the row of June 11, 1983? | create table table_22651355_3 (august_21_22 varchar, june_10_11 varchar, PRIMARY KEY (august_21_22)) | select august_21_22 from table_22651355_3 where june_10_11 = "june 11, 1983" |
list the first and last names, and the addresses of all employees in the ascending order of their birth date. | create table employee (fname varchar, lname varchar, address varchar, bdate varchar, PRIMARY KEY (fname)) | select fname, lname, address from employee order by bdate |
On how many different dates was the episode written by Charlie Day aired for the first time? | create table table_29273115_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select count(original_air_date) from table_29273115_1 where written_by = "charlie day" |
List every album ordered by album title in ascending order. | create table albums (title varchar, PRIMARY KEY (title)) | select title from albums order by title |
What year did jaroslav vojtek category:articles with hcards Direct? | create table table_22032599_1 (year__ceremony_ varchar, director varchar, PRIMARY KEY (year__ceremony_)) | select year__ceremony_ from table_22032599_1 where director = "jaroslav vojtek category:articles with hcards" |
What was the outcome in the 2010 Europe/Africa Group IIB edition? | create table table_27877656_8 (outcome varchar, edition varchar, PRIMARY KEY (outcome)) | select outcome from table_27877656_8 where edition = "2010 europe/africa group iib" |
Show the property type descriptions of properties belonging to that code. | create table properties (property_type_code varchar, PRIMARY KEY (property_type_code)); create table ref_property_types (property_type_description varchar, property_type_code varchar, PRIMARY KEY (property_type_description)) | select t2.property_type_description from properties as t1 join ref_property_types as t2 on t1.property_type_code = t2.property_type_code group by t1.property_type_code |
Show publishers that have more than one publication. | create table publication (publisher varchar, PRIMARY KEY (publisher)) | select publisher from publication group by publisher having count(*) > 1 |
Find the name of route that has the highest number of deliveries. | create table delivery_routes (route_name varchar, route_id varchar, PRIMARY KEY (route_name)); create table delivery_route_locations (route_id varchar, PRIMARY KEY (route_id)) | select t1.route_name from delivery_routes as t1 join delivery_route_locations as t2 on t1.route_id = t2.route_id group by t1.route_id order by count(*) desc limit 1 |
What is the 2012 election results for locations whose representative is Barbara Lee? | create table table_19283806_4 (representative varchar, PRIMARY KEY (representative)) | select 2012 as _election_results from table_19283806_4 where representative = "barbara lee" |
Find the titles of the papers that contain the word "ML". | create table papers (title varchar, PRIMARY KEY (title)) | select title from papers where title like "%ml%" |
When t3 is the best finish what is the lowest amount of tournaments played? | create table table_24330912_1 (tournaments_played integer, best_finish varchar, PRIMARY KEY (tournaments_played)) | select min(tournaments_played) from table_24330912_1 where best_finish = "t3" |
Name the number of troops for troops per $1 billion being 2.45 | create table table_30108346_1 (number_of_troops varchar, troops_per_$1_billion___usd___gdp varchar, PRIMARY KEY (number_of_troops)) | select count(number_of_troops) from table_30108346_1 where troops_per_$1_billion___usd___gdp = "2.45" |
Which song has Drunkard Groom listed as additional information? | create table table_2528382_1 (song varchar, additional_info varchar, PRIMARY KEY (song)) | select song from table_2528382_1 where additional_info = "drunkard groom" |
How many elections have resulted in retired democratic hold? | create table table_1341453_34 (party varchar, results varchar, PRIMARY KEY (party)) | select count(party) from table_1341453_34 where results = "retired democratic hold" |
How many continents are there? | create table continents (id varchar, PRIMARY KEY (id)) | select count(*) from continents |
Which team played them when andray blatche , javale mcgee (20) had the high points? | create table table_27721131_6 (team varchar, high_points varchar, PRIMARY KEY (team)) | select team from table_27721131_6 where high_points = "andray blatche , javale mcgee (20)" |
Which episodes originally aired on April 19, 2010? | create table table_22170495_7 (title varchar, original_airing varchar, PRIMARY KEY (title)) | select title from table_22170495_7 where original_airing = "april 19, 2010" |
How many editions have a most wins value of Franco Marvulli (4)? | create table table_1840433_2 (number_of_editions varchar, most_wins_by varchar, PRIMARY KEY (number_of_editions)) | select count(number_of_editions) from table_1840433_2 where most_wins_by = "franco marvulli (4)" |
For the race called by Marshall Cassidy, who was the host? | create table table_22583466_5 (s_host varchar, race_caller varchar, PRIMARY KEY (s_host)) | select s_host from table_22583466_5 where race_caller = "marshall cassidy" |
What was the vote swing for the general election of the 12th lok sabha? | create table table_149330_1 (votes_swing varchar, general_election varchar, PRIMARY KEY (votes_swing)) | select votes_swing from table_149330_1 where general_election = "12th lok sabha" |
Find the last names of students studying in room 111. | create table list (lastname varchar, classroom varchar, PRIMARY KEY (lastname)) | select lastname from list where classroom = 111 |
Find the department name of the instructor whose name contains 'Soisalon'. | create table instructor (dept_name varchar, name varchar, PRIMARY KEY (dept_name)) | select dept_name from instructor where name like '%soisalon%' |
What is the p1 diameter (mm) when .300 lapua magnum is the chambering? | create table table_26967904_2 (p1_diameter__mm_ varchar, chambering varchar, PRIMARY KEY (p1_diameter__mm_)) | select p1_diameter__mm_ from table_26967904_2 where chambering = ".300 lapua magnum" |
how many times is the co-singer suresh wadkar and the film name is tera dukh mera dukh? | create table table_11827596_2 (lyricist varchar, co_singer varchar, film_name varchar, PRIMARY KEY (lyricist)) | select count(lyricist) from table_11827596_2 where co_singer = "suresh wadkar" and film_name = "tera dukh mera dukh" |
What regions of the USSR have a percentage of deportees of 10.6? | create table table_16048129_5 (region_of_ussr varchar, _percentage_of_total_deportees varchar, PRIMARY KEY (region_of_ussr)) | select region_of_ussr from table_16048129_5 where _percentage_of_total_deportees = "10.6" |
How many game sites are there where the team record is 1–7? | create table table_25380472_2 (game_site varchar, team_record varchar, PRIMARY KEY (game_site)) | select count(game_site) from table_25380472_2 where team_record = "1–7" |
How many times does November 3rd occur when January 15, 1991 does? | create table table_25235489_2 (november_3 varchar, january_15_16 varchar, PRIMARY KEY (november_3)) | select count(november_3) from table_25235489_2 where january_15_16 = "january 15, 1991" |
What is the ethnic majority in the only town? | create table table_2562572_11 (largest_ethnic_group__2002_ varchar, type varchar, PRIMARY KEY (largest_ethnic_group__2002_)) | select largest_ethnic_group__2002_ from table_2562572_11 where type = "town" |
Who is the player name when eastern michigan is the college? | create table table_20871703_1 (player_name varchar, college varchar, PRIMARY KEY (player_name)) | select player_name from table_20871703_1 where college = "eastern michigan" |
Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games. | create table plays_games (stuid varchar, gameid varchar, PRIMARY KEY (stuid)); create table student (lname varchar, sex varchar, stuid varchar, PRIMARY KEY (lname)); create table video_games (gameid varchar, gname varchar, PRIMARY KEY (gameid)) | select lname, sex from student where stuid in (select t1.stuid from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid where t2.gname = "call of destiny" intersect select t1.stuid from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid where t2.gname = "works of widenius") |
What is the most recent final result for the years (won in bold) 1979? | create table table_1463332_2 (most_recent_final varchar, years__won_in_bold_ varchar, PRIMARY KEY (most_recent_final)) | select most_recent_final from table_1463332_2 where years__won_in_bold_ = "1979" |
What is the nickname of the team whose 2013/2014 enrollment is 436? | create table table_18304058_2 (nickname_s_ varchar, enrollment__2013_14_ varchar, PRIMARY KEY (nickname_s_)) | select nickname_s_ from table_18304058_2 where enrollment__2013_14_ = 436 |
what is the maximum bush# with others% being 1.57% | create table table_13608101_1 (bush_number integer, others_percentage varchar, PRIMARY KEY (bush_number)) | select max(bush_number) from table_13608101_1 where others_percentage = "1.57%" |
Who was the new Santos manager? | create table table_29414946_3 (replaced_by varchar, team varchar, PRIMARY KEY (replaced_by)) | select replaced_by from table_29414946_3 where team = "santos" |
How many people had high rebounds during the game with a record of 34-32? | create table table_23248940_10 (high_rebounds varchar, record varchar, PRIMARY KEY (high_rebounds)) | select count(high_rebounds) from table_23248940_10 where record = "34-32" |
Find the number of members of club "Pen and Paper Gaming". | 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 (stuid varchar, PRIMARY KEY (stuid)) | select count(*) 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 = "pen and paper gaming" |
Name what succeeded by for foam | create table table_1601027_2 (succeeded_by varchar, earpads varchar, PRIMARY KEY (succeeded_by)) | select succeeded_by from table_1601027_2 where earpads = "foam" |
How many endowments does Mosaic Stadium have? | create table table_12896884_1 (endowment varchar, football_stadium varchar, PRIMARY KEY (endowment)) | select count(endowment) from table_12896884_1 where football_stadium = "mosaic stadium" |
Who are all of the candidates in the election featuring james r. domengeaux? | create table table_1342256_18 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1342256_18 where incumbent = "james r. domengeaux" |
How many millions of U.S viewers watched the episode written by Liz Feldman? | create table table_29920800_1 (us_viewers__million_ varchar, written_by varchar, PRIMARY KEY (us_viewers__million_)) | select us_viewers__million_ from table_29920800_1 where written_by = "liz feldman" |
What is the broadcast date of the episode on 16mm t/r that ran 23:25? | create table table_2101431_1 (broadcast_date varchar, archive varchar, run_time varchar, PRIMARY KEY (broadcast_date)) | select broadcast_date from table_2101431_1 where archive = "16mm t/r" and run_time = "23:25" |
What was the total in Brooklyn when Manhattan was 3,139? | create table table_1108394_6 (brooklyn varchar, manhattan varchar, PRIMARY KEY (brooklyn)) | select brooklyn from table_1108394_6 where manhattan = "3,139" |
When oslo is 48, what is stavanger? | create table table_19439864_2 (stavanger integer, oslo varchar, PRIMARY KEY (stavanger)) | select min(stavanger) from table_19439864_2 where oslo = 48 |
How many parties do we have? | create table party (party_name varchar, PRIMARY KEY (party_name)) | select count(distinct party_name) from party |
What is the title of every song, and how many weeks was each song at #1 for Rihanna in 2012? | create table table_19542477_9 (song_s__—_weeks varchar, issue_years varchar, artist_s_ varchar, PRIMARY KEY (song_s__—_weeks)) | select song_s__—_weeks from table_19542477_9 where issue_years = 2012 and artist_s_ = "rihanna" |
What is shown for november 3 when august 21-22 is august 22, 1998? | create table table_25355501_2 (november_3 varchar, august_21_22 varchar, PRIMARY KEY (november_3)) | select november_3 from table_25355501_2 where august_21_22 = "august 22, 1998" |
What is the minimum population of the region in which Roskilde is the largest city? | create table table_16278602_1 (_2008_ varchar, population__january_1 integer, largest_city varchar, PRIMARY KEY (_2008_)) | select min(population__january_1), _2008_ from table_16278602_1 where largest_city = "roskilde" |
List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin. | create table professionals (email_address varchar, state varchar, PRIMARY KEY (email_address)) | select email_address from professionals where state = 'hawaii' or state = 'wisconsin' |
Show all the Store_Name of drama workshop groups. | create table drama_workshop_groups (store_name varchar, PRIMARY KEY (store_name)) | select store_name from drama_workshop_groups |
Who was the bowler when the batsmen was dwaraka ravi teja rp singh pragyan ojha? | create table table_22962745_35 (bowler varchar, batsmen varchar, PRIMARY KEY (bowler)) | select bowler from table_22962745_35 where batsmen = "dwaraka ravi teja rp singh pragyan ojha" |
What is the name of the city/municipality if the population is 1,388.88? | create table table_232458_1 (city___municipality varchar, pop_density__per_km²_ varchar, PRIMARY KEY (city___municipality)) | select city___municipality from table_232458_1 where pop_density__per_km²_ = "1,388.88" |
What is the Segment B when the Segment D is s Hammock? | create table table_15187735_6 (segment_b varchar, segment_d varchar, PRIMARY KEY (segment_b)) | select segment_b from table_15187735_6 where segment_d = "s hammock" |
How many locations were there when sydney was the home team? | create table table_16388478_2 (ground varchar, home_team varchar, PRIMARY KEY (ground)) | select count(ground) from table_16388478_2 where home_team = "sydney" |
How many original air dates for the episode written by David H. Goodman & Andrew Kreisberg? | create table table_24649082_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select count(original_air_date) from table_24649082_1 where written_by = "david h. goodman & andrew kreisberg" |
How many head coaches did Kent state golden flashes have? | create table table_28418916_3 (opponents_head_coach varchar, fbs_opponent varchar, PRIMARY KEY (opponents_head_coach)) | select count(opponents_head_coach) from table_28418916_3 where fbs_opponent = "kent state golden flashes" |
What is the venue of the game with Man of the Match Vaclav Zavoral? | create table table_17120964_8 (venue varchar, man_of_the_match varchar, PRIMARY KEY (venue)) | select venue from table_17120964_8 where man_of_the_match = "vaclav zavoral" |
What episode number had a cable ranking of 8? | create table table_24399615_4 (episode_no integer, cable_rank varchar, PRIMARY KEY (episode_no)) | select min(episode_no) from table_24399615_4 where cable_rank = "8" |
Who had the highest points during the game with a record of 2-7? | create table table_23274514_4 (high_points varchar, record varchar, PRIMARY KEY (high_points)) | select high_points from table_23274514_4 where record = "2-7" |
How many available hotels are there in total? | create table hotels (id varchar, PRIMARY KEY (id)) | select count(*) from hotels |
Name the population when the capital is tarnopol | create table table_14245_3 (population__1931__in_1 varchar, capital varchar, PRIMARY KEY (population__1931__in_1)) | select population__1931__in_1, 000 as s from table_14245_3 where capital = "tarnopol" |
who is the the incumbent with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5% | create table table_1342013_34 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent)) | select incumbent from table_1342013_34 where candidates = "john m. vorys (r) 61.5% jacob f. myers (d) 38.5%" |
How many distinct countries are the climbers from? | create table climber (country varchar, PRIMARY KEY (country)) | select count(distinct country) from climber |
What's the English name for the month with พ.ย. abbreviation? | create table table_180802_2 (english_name varchar, abbr varchar, PRIMARY KEY (english_name)) | select english_name from table_180802_2 where abbr = "พ.ย." |
What are the shot percentages for teams that played in switzerland? | create table table_1644876_2 (shot__percentage varchar, locale varchar, switzerland varchar, PRIMARY KEY (shot__percentage)) | select shot__percentage from table_1644876_2 where locale = "switzerland" |
How was times was the dance the jive and the week # was 10? | create table table_1276219_1 (phillips varchar, dance varchar, week__number varchar, PRIMARY KEY (phillips)) | select count(phillips) from table_1276219_1 where dance = "jive" and week__number = "10" |
Which team drafted a player from HC Slavia Praha (Czechoslovakia)? | create table table_2850912_10 (nhl_team varchar, college_junior_club_team varchar, PRIMARY KEY (nhl_team)) | select nhl_team from table_2850912_10 where college_junior_club_team = "hc slavia praha (czechoslovakia)" |
Who wrote all the shows with 18.73 u.s. viewers? | create table table_1130632_1 (written_by varchar, us_viewers__million_ varchar, PRIMARY KEY (written_by)) | select written_by from table_1130632_1 where us_viewers__million_ = "18.73" |
Name the number one singles for week 1 being 5 | create table table_27441210_20 (number_one_single_s_ varchar, weeks_at__number1 varchar, PRIMARY KEY (number_one_single_s_)) | select number_one_single_s_ from table_27441210_20 where weeks_at__number1 = 5 |
Find the names of females who are friends with Zach | create table personfriend (name varchar, friend varchar, PRIMARY KEY (name)); create table person (name varchar, gender varchar, PRIMARY KEY (name)) | select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'zach' and t1.gender = 'female' |
What was Staten Island when Brooklyn was 940? | create table table_1108394_6 (staten_island varchar, brooklyn varchar, PRIMARY KEY (staten_island)) | select staten_island from table_1108394_6 where brooklyn = "940" |
What is the description of the service type which offers both the photo product and the film product? | create table ref_service_types (service_type_description varchar, service_type_code varchar, PRIMARY KEY (service_type_description)); create table services (service_type_code varchar, product_name varchar, PRIMARY KEY (service_type_code)) | select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = 'photo' intersect select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = 'film' |
What is the name and id of the department with the most number of degrees ? | create table degree_programs (department_id varchar, PRIMARY KEY (department_id)); create table departments (department_name varchar, department_id varchar, PRIMARY KEY (department_name)) | select t2.department_name, t1.department_id from degree_programs as t1 join departments as t2 on t1.department_id = t2.department_id group by t1.department_id order by count(*) desc limit 1 |
WHAT ARE THE NAMES OF THE MENS DOUBLES WHEN THE WOMENS DOUBLES WAS PIRET HAMER HELEN REINO? | 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 = "piret hamer helen reino" |
If the winner is Michael Albasini, what is the mountains classification name? | create table table_22941863_19 (mountains_classification varchar, winner varchar, PRIMARY KEY (mountains_classification)) | select mountains_classification from table_22941863_19 where winner = "michael albasini" |
What is the Fri 3 June time for the rider with a Weds 1 June time of 18' 22.66 123.182mph? | create table table_29218221_2 (fri_3_june varchar, wed_1_june varchar, PRIMARY KEY (fri_3_june)) | select fri_3_june from table_29218221_2 where wed_1_june = "18' 22.66 123.182mph" |
What is the e/vap value for a turnout of exactly 85.7%? | create table table_2683116_1 (e varchar, vap varchar, turnout varchar, PRIMARY KEY (e)) | select e / vap from table_2683116_1 where turnout = "85.7%" |
How many original air dates totaled 26.06 million viewers? | create table table_18217753_1 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date)) | select count(original_air_date) from table_18217753_1 where us_viewers__millions_ = "26.06" |
How many have been replaced where the appointment date is 10 December 2007 and the manner of departure is quit? | create table table_11713303_2 (replaced_by varchar, date_of_appointment varchar, manner_of_departure varchar, PRIMARY KEY (replaced_by)) | select count(replaced_by) from table_11713303_2 where date_of_appointment = "10 december 2007" and manner_of_departure = "quit" |
Who was the arranger for the track written by Nizar Francis ? | create table table_14778650_1 (arranger varchar, writer varchar, PRIMARY KEY (arranger)) | select arranger from table_14778650_1 where writer = "nizar francis" |
Who is the top scorer where gf is 41? | create table table_1218784_1 (top_scorer varchar, gf varchar, PRIMARY KEY (top_scorer)) | select top_scorer from table_1218784_1 where gf = 41 |
What is the rnag for lyric fm 98.7? | create table table_18475946_2 (rnag__mhz_ varchar, lyric_fm__mhz_ varchar, PRIMARY KEY (rnag__mhz_)) | select rnag__mhz_ from table_18475946_2 where lyric_fm__mhz_ = "98.7" |
What wiaa classifications does vancouver itech prepratory have? | create table table_22058547_1 (wiaa_classification varchar, high_school varchar, PRIMARY KEY (wiaa_classification)) | select wiaa_classification from table_22058547_1 where high_school = "vancouver itech prepratory" |
What is every original game for the artist Lynyrd Skynyrd? | create table table_21500850_1 (original_game varchar, artist varchar, PRIMARY KEY (original_game)) | select original_game from table_21500850_1 where artist = "lynyrd skynyrd" |
what's the turing complete with numeral system being decimal | create table table_13636_1 (turing_complete varchar, numeral_system varchar, PRIMARY KEY (turing_complete)) | select turing_complete from table_13636_1 where numeral_system = "decimal" |
What is "the wørd" when guests were daniel ellsberg , william wegman , julie taymor? | create table table_25691838_12 (the_wørd varchar, guest varchar, PRIMARY KEY (the_wørd)) | select the_wørd from table_25691838_12 where guest = "daniel ellsberg , william wegman , julie taymor" |
How many people vacated to successor Dave E. Satterfield, Jr. (d)? | create table table_2159547_3 (vacator varchar, successor varchar, PRIMARY KEY (vacator)) | select count(vacator) from table_2159547_3 where successor = "dave e. satterfield, jr. (d)" |
Name where bethany college is | create table table_262476_1 (location varchar, institution varchar, PRIMARY KEY (location)) | select location from table_262476_1 where institution = "bethany college" |
When 3.29% was the average per candidate, what was the number of average votes per candidate? | create table table_28819393_1 (average_votes_per_candidate integer, average__percentage_of_vote_per_candidate varchar, PRIMARY KEY (average_votes_per_candidate)) | select min(average_votes_per_candidate) from table_28819393_1 where average__percentage_of_vote_per_candidate = "3.29" |
How many appointments are there? | create table appointment (id varchar, PRIMARY KEY (id)) | select count(*) from appointment |
What are the network protocols for the model that has been discontinued in favor of the EN1700? | create table table_1300080_1 (network_protocols varchar, notes varchar, PRIMARY KEY (network_protocols)) | select network_protocols from table_1300080_1 where notes = "discontinued in favor of the en1700" |
when did new zealand last compete? | create table table_14308895_2 (last_competed integer, country_territory varchar, PRIMARY KEY (last_competed)) | select max(last_competed) from table_14308895_2 where country_territory = "new zealand" |
To which organziation does the winnipeg jets belong to? | create table table_2850912_12 (college_junior_club_team varchar, nhl_team varchar, PRIMARY KEY (college_junior_club_team)) | select college_junior_club_team from table_2850912_12 where nhl_team = "winnipeg jets" |
What is the date of vacancy when the team is manchester city and replaced by is mark hughes? | create table table_10592536_8 (date_of_vacancy varchar, team varchar, replaced_by varchar, PRIMARY KEY (date_of_vacancy)) | select date_of_vacancy from table_10592536_8 where team = "manchester city" and replaced_by = "mark hughes" |
Who played in group 12 when Group 9 played psid jombang? | create table table_19523142_5 (group_12 varchar, group_9 varchar, PRIMARY KEY (group_12)) | select group_12 from table_19523142_5 where group_9 = "psid jombang" |
What was the team's record when they played minnesota? | create table table_27700530_9 (record varchar, team varchar, PRIMARY KEY (record)) | select record from table_27700530_9 where team = "minnesota" |
Show the apartment numbers of apartments with unit status availability of both 0 and 1. | create table view_unit_status (apt_id varchar, available_yn varchar, PRIMARY KEY (apt_id)); create table apartments (apt_number varchar, apt_id varchar, PRIMARY KEY (apt_number)) | select t1.apt_number from apartments as t1 join view_unit_status as t2 on t1.apt_id = t2.apt_id where t2.available_yn = 0 intersect select t1.apt_number from apartments as t1 join view_unit_status as t2 on t1.apt_id = t2.apt_id where t2.available_yn = 1 |
Which team had goal averages of 1.34? | create table table_17366952_1 (team varchar, goal_average_1 varchar, PRIMARY KEY (team)) | select team from table_17366952_1 where goal_average_1 = "1.34" |
What is the cyrillic name for Budisava? | create table table_2562572_9 (cyrillic_name_other_names varchar, settlement varchar, PRIMARY KEY (cyrillic_name_other_names)) | select cyrillic_name_other_names from table_2562572_9 where settlement = "budisava" |
Subsets and Splits