question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Show the statement id and the statement detail for the statement with most number of accounts.
|
create table accounts (statement_id varchar, PRIMARY KEY (statement_id)); create table statements (statement_details varchar, statement_id varchar, PRIMARY KEY (statement_details))
|
select t1.statement_id, t2.statement_details from accounts as t1 join statements as t2 on t1.statement_id = t2.statement_id group by t1.statement_id order by count(*) desc limit 1
|
What was segment D when segment B was jeans?
|
create table table_15187735_1 (segment_d varchar, segment_b varchar, PRIMARY KEY (segment_d))
|
select segment_d from table_15187735_1 where segment_b = "jeans"
|
Show institution names along with the number of proteins for each institution.
|
create table institution (institution varchar, institution_id varchar, PRIMARY KEY (institution)); create table protein (institution_id varchar, PRIMARY KEY (institution_id))
|
select t1.institution, count(*) from institution as t1 join protein as t2 on t1.institution_id = t2.institution_id group by t1.institution_id
|
List every album's title.
|
create table albums (title varchar, PRIMARY KEY (title))
|
select title from albums
|
what's the vineyard surface (2010) with grand cru being bienvenues-bâtard-montrachet
|
create table table_13981938_1 (vineyard_surface__2010_ varchar, grand_cru varchar, PRIMARY KEY (vineyard_surface__2010_))
|
select vineyard_surface__2010_ from table_13981938_1 where grand_cru = "bienvenues-bâtard-montrachet"
|
Name the total number of seats for general surgery
|
create table table_19304764_2 (permitted_seats varchar, discipline varchar, PRIMARY KEY (permitted_seats))
|
select count(permitted_seats) from table_19304764_2 where discipline = "general surgery"
|
What are the last names of the author of the paper titled "Binders Unbound"?
|
create table authorship (authid varchar, paperid varchar, PRIMARY KEY (authid)); create table authors (lname varchar, authid varchar, PRIMARY KEY (lname)); create table papers (paperid varchar, title varchar, PRIMARY KEY (paperid))
|
select t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t3.title = "binders unbound"
|
Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.
|
create table member (name varchar, college_id varchar, PRIMARY KEY (name)); create table college (college_location varchar, college_id varchar, PRIMARY KEY (college_location))
|
select t2.name, t1.college_location from college as t1 join member as t2 on t1.college_id = t2.college_id order by t2.name
|
who won basketball when ashland won track & field and cross country
|
create table table_16423070_4 (basketball varchar, cross_country varchar, track_ varchar, _field varchar, PRIMARY KEY (basketball))
|
select basketball from table_16423070_4 where track_ & _field = "ashland" and cross_country = "ashland"
|
Which venue did Luke Blackwell serve as captain?
|
create table table_13514348_7 (venue varchar, captain varchar, PRIMARY KEY (venue))
|
select venue from table_13514348_7 where captain = "luke blackwell"
|
Name the forward assist for a2 barrel profile
|
create table table_12834315_4 (forward_assist varchar, barrel_profile varchar, PRIMARY KEY (forward_assist))
|
select forward_assist from table_12834315_4 where barrel_profile = "a2"
|
Find the name of the products that are not using the most frequently-used max page size.
|
create table product (product varchar, max_page_size varchar, PRIMARY KEY (product))
|
select product from product where product <> (select max_page_size from product group by max_page_size order by count(*) desc limit 1)
|
What was the title used in nomination in the original Bābǎi Zhuàngshì (八百壯士)?
|
create table table_17350255_1 (film_title_used_in_nomination varchar, original_title varchar, PRIMARY KEY (film_title_used_in_nomination))
|
select film_title_used_in_nomination from table_17350255_1 where original_title = "bābǎi zhuàngshì (八百壯士)"
|
What is the central word for "robbers"?
|
create table table_26614365_1 (central varchar, english varchar, PRIMARY KEY (central))
|
select central from table_26614365_1 where english = "robbers"
|
Name the l3 cache for core i7-2xxxqe, i7-26xxqm, i7-27xxqm
|
create table table_24538587_13 (l3_cache varchar, brand_name__list_ varchar, PRIMARY KEY (l3_cache))
|
select l3_cache from table_24538587_13 where brand_name__list_ = "core i7-2xxxqe, i7-26xxqm, i7-27xxqm"
|
What is the fare to Kalamazoo during the time frame when Saginaw's was $481.39?
|
create table table_1637981_7 (kalamazoo__azo_ varchar, saginaw__mbs_ varchar, PRIMARY KEY (kalamazoo__azo_))
|
select kalamazoo__azo_ from table_1637981_7 where saginaw__mbs_ = "$481.39"
|
What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'
|
create table timed_status_of_things (thing_id varchar, status_of_thing_code varchar, date_and_date varchar, PRIMARY KEY (thing_id)); create table things (thing_id varchar, type_of_thing_code varchar, PRIMARY KEY (thing_id))
|
select distinct t2.thing_id, t2.type_of_thing_code from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = 'close' or t1.date_and_date < '2017-06-19 02:59:21'
|
How many different users wrote some reviews?
|
create table review (u_id varchar, PRIMARY KEY (u_id))
|
select count(distinct u_id) from review
|
When is the date of vacancy of Davy Fitzgerald being a replacement?
|
create table table_11190568_7 (date_of_vacancy varchar, replaced_by varchar, PRIMARY KEY (date_of_vacancy))
|
select date_of_vacancy from table_11190568_7 where replaced_by = "davy fitzgerald"
|
What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id.
|
create table cmi_cross_references (source_system_code varchar, cmi_cross_ref_id varchar, PRIMARY KEY (source_system_code)); create table benefits_overpayments (council_tax_id varchar, cmi_cross_ref_id varchar, PRIMARY KEY (council_tax_id))
|
select t1.source_system_code, t2.council_tax_id from cmi_cross_references as t1 join benefits_overpayments as t2 on t1.cmi_cross_ref_id = t2.cmi_cross_ref_id order by t2.council_tax_id
|
What is the name of the episode that was directed by Dennis Smith?
|
create table table_2828803_1 (title varchar, directed_by varchar, PRIMARY KEY (title))
|
select title from table_2828803_1 where directed_by = "dennis smith"
|
What is the channel number that has a branding of PTV 4 Laoag?
|
create table table_24673888_1 (ch__number varchar, branding varchar, PRIMARY KEY (ch__number))
|
select ch__number from table_24673888_1 where branding = "ptv 4 laoag"
|
Name the english translation of giefdu mier socka bond
|
create table table_13003460_1 (english_translation varchar, the_icelandic_of_the_glossary varchar, PRIMARY KEY (english_translation))
|
select english_translation from table_13003460_1 where the_icelandic_of_the_glossary = "giefdu mier socka bond"
|
Who directed the episode that aired on July 29, 2011?
|
create table table_18424435_5 (directed_by varchar, us_air_date varchar, PRIMARY KEY (directed_by))
|
select directed_by from table_18424435_5 where us_air_date = "july 29, 2011"
|
Where did the games that had Wake Forest as Acc Team take place?
|
create table table_29535057_4 (location varchar, acc_team varchar, PRIMARY KEY (location))
|
select location from table_29535057_4 where acc_team = "wake forest"
|
Which department has a small of 11370?
|
create table table_21249915_1 (department varchar, small__100ha_ varchar, PRIMARY KEY (department))
|
select department from table_21249915_1 where small__100ha_ = 11370
|
Who opposed Marty Meehan in each election?
|
create table table_1341522_24 (opponent varchar, incumbent varchar, PRIMARY KEY (opponent))
|
select opponent from table_1341522_24 where incumbent = "marty meehan"
|
How many players lost to eventual winner in the season when ASC Jeanne d'Arc lost to eventual runner up?
|
create table table_12444503_1 (lost_to_eventual_winner varchar, lost_to_eventual_runner_up varchar, PRIMARY KEY (lost_to_eventual_winner))
|
select count(lost_to_eventual_winner) from table_12444503_1 where lost_to_eventual_runner_up = "asc jeanne d'arc"
|
How many schools do not participate in the basketball match?
|
create table university (school_id varchar, PRIMARY KEY (school_id)); create table basketball_match (school_id varchar, PRIMARY KEY (school_id))
|
select count(*) from university where not school_id in (select school_id from basketball_match)
|
If the overall viewers were 1.83 millions, what was the overall market share?
|
create table table_2639433_4 (market_share__overall_ varchar, viewers__in_millions_overall_ varchar, PRIMARY KEY (market_share__overall_))
|
select market_share__overall_ from table_2639433_4 where viewers__in_millions_overall_ = "1.83"
|
What was the inroductory phase for the episode with neil shubin as a guest?
|
create table table_14835674_1 (introductory_phrase varchar, guest varchar, PRIMARY KEY (introductory_phrase))
|
select introductory_phrase from table_14835674_1 where guest = "neil shubin"
|
Show the ID of the high schooler named Kyle.
|
create table highschooler (id varchar, name varchar, PRIMARY KEY (id))
|
select id from highschooler where name = "kyle"
|
What is the boiler provider for Bhel, India's TG Set provider?
|
create table table_28672269_1 (boiler_provider varchar, tg_set_provider varchar, PRIMARY KEY (boiler_provider))
|
select boiler_provider from table_28672269_1 where tg_set_provider = "bhel, india"
|
How many vap values are associated with 140469 valid votes?
|
create table table_2683116_1 (vap varchar, valid_votes varchar, PRIMARY KEY (vap))
|
select count(vap) from table_2683116_1 where valid_votes = 140469
|
If the episode title is Pressures, what are the names of the cast?
|
create table table_2570269_2 (cast varchar, episode_title varchar, PRIMARY KEY (cast))
|
select cast from table_2570269_2 where episode_title = "pressures"
|
Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.
|
create table treatments (professional_id varchar, PRIMARY KEY (professional_id)); create table professionals (professional_id varchar, last_name varchar, cell_number varchar, PRIMARY KEY (professional_id)); create table professionals (professional_id varchar, last_name varchar, cell_number varchar, state varchar, PRIMARY KEY (professional_id))
|
select professional_id, last_name, cell_number from professionals where state = 'indiana' union select t1.professional_id, t1.last_name, t1.cell_number from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) > 2
|
List the name and count of each product in all orders.
|
create table orders (order_id varchar, PRIMARY KEY (order_id)); create table products (product_name varchar, product_id varchar, PRIMARY KEY (product_name)); create table order_items (order_id varchar, product_id varchar, PRIMARY KEY (order_id))
|
select t3.product_name, count(*) from orders as t1 join order_items as t2 join products as t3 on t1.order_id = t2.order_id and t2.product_id = t3.product_id group by t3.product_id
|
Name the fourth district for joan runnels
|
create table table_15442974_1 (fourth_district varchar, second_district varchar, PRIMARY KEY (fourth_district))
|
select fourth_district from table_15442974_1 where second_district = "joan runnels"
|
When did the term end that began December 4, 1978?
|
create table table_224672_2 (term_ended varchar, term_began varchar, PRIMARY KEY (term_ended))
|
select term_ended from table_224672_2 where term_began = "december 4, 1978"
|
Find the number of routes with destination airports in Italy.
|
create table routes (dst_apid varchar, PRIMARY KEY (dst_apid)); create table airports (apid varchar, country varchar, PRIMARY KEY (apid))
|
select count(*) from routes as t1 join airports as t2 on t1.dst_apid = t2.apid where t2.country = 'italy'
|
What is the status of joe gibbs racing?
|
create table table_12001616_4 (status varchar, entrant varchar, PRIMARY KEY (status))
|
select status from table_12001616_4 where entrant = "joe gibbs racing"
|
What is the most common hometown of gymnasts?
|
create table gymnast (gymnast_id varchar, PRIMARY KEY (gymnast_id)); create table people (hometown varchar, people_id varchar, PRIMARY KEY (hometown))
|
select t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id group by t2.hometown order by count(*) desc limit 1
|
How many countries are there in total?
|
create table country (id varchar, PRIMARY KEY (id))
|
select count(*) from country
|
What was the fastest lap time in the Escort Radar Warning 200?
|
create table table_10706961_2 (fastest_lap varchar, name varchar, PRIMARY KEY (fastest_lap))
|
select fastest_lap from table_10706961_2 where name = "escort radar warning 200"
|
Who was the EP winning team when the CP winning team was Dave Clark and the GM winning team was Stuart Northrup?
|
create table table_29225103_2 (ep_winning_team varchar, cp_winning_team varchar, gm_winning_team varchar, PRIMARY KEY (ep_winning_team))
|
select ep_winning_team from table_29225103_2 where cp_winning_team = "dave clark" and gm_winning_team = "stuart northrup"
|
What is the market value in billions when the assets totaled 1,380.88?
|
create table table_1682026_7 (market_value__billion_$_ varchar, assets__billion_$_ varchar, PRIMARY KEY (market_value__billion_$_))
|
select market_value__billion_$_ from table_1682026_7 where assets__billion_$_ = "1,380.88"
|
What is the content of the rai 1 television service?
|
create table table_15887683_1 (content varchar, television_service varchar, PRIMARY KEY (content))
|
select content from table_15887683_1 where television_service = "rai 1"
|
Name the number of horizontal when framerate hz is 25
|
create table table_15928363_1 (horizontal varchar, framerate___hz__ varchar, PRIMARY KEY (horizontal))
|
select count(horizontal) from table_15928363_1 where framerate___hz__ = "25"
|
What is the fewest number of occ championships for the team that last won an outright occ championship in 2006?
|
create table table_17429402_7 (occ_championships integer, last_outright_occ_championship varchar, PRIMARY KEY (occ_championships))
|
select min(occ_championships) from table_17429402_7 where last_outright_occ_championship = "2006"
|
What is every specialization with the website Jstu.edu.bd
|
create table table_2112260_1 (specialization varchar, website varchar, PRIMARY KEY (specialization))
|
select specialization from table_2112260_1 where website = "jstu.edu.bd"
|
Which actor from Serbia was nominated for best actor in a supporting role?
|
create table table_10236830_4 (actors_name varchar, nomination varchar, country varchar, PRIMARY KEY (actors_name))
|
select actors_name from table_10236830_4 where nomination = "best actor in a supporting role" and country = "serbia"
|
What is the percentage of total area in the ecozone that the percentage of land area is 2.2?
|
create table table_15555661_2 (percentage_of_total_area varchar, percentage_of_land_area varchar, PRIMARY KEY (percentage_of_total_area))
|
select percentage_of_total_area from table_15555661_2 where percentage_of_land_area = "2.2"
|
What was the theme when original artist Rosana's song was performed?
|
create table table_27616663_1 (theme varchar, original_artist varchar, PRIMARY KEY (theme))
|
select theme from table_27616663_1 where original_artist = "rosana"
|
Name the best supporting actress for sun honglei for mongol
|
create table table_15301258_1 (best_supporting_actress varchar, best_supporting_actor varchar, PRIMARY KEY (best_supporting_actress))
|
select best_supporting_actress from table_15301258_1 where best_supporting_actor = "sun honglei for mongol"
|
What city is Tiffin University located in?
|
create table table_29483673_1 (location___city varchar, institution varchar, PRIMARY KEY (location___city))
|
select location___city from table_29483673_1 where institution = "tiffin university"
|
How many staff live in state Georgia?
|
create table addresses (state_province_county varchar, PRIMARY KEY (state_province_county))
|
select count(*) from addresses where state_province_county = "georgia"
|
What shareholder has 2.55 percent of votes?
|
create table table_206419_3 (shareholder varchar, percent_of_votes varchar, PRIMARY KEY (shareholder))
|
select shareholder from table_206419_3 where percent_of_votes = "2.55"
|
What is the signal power for JOAB-DTV?
|
create table table_2638104_1 (signal_power varchar, callsign varchar, PRIMARY KEY (signal_power))
|
select signal_power from table_2638104_1 where callsign = "joab-dtv"
|
What park is Boardwalk Bullet located in?
|
create table table_2665085_1 (park varchar, name varchar, PRIMARY KEY (park))
|
select park from table_2665085_1 where name = "boardwalk bullet"
|
What channel tv (dt) plays the KPIX station?
|
create table table_1553485_1 (channel_tv___dt__ varchar, station varchar, PRIMARY KEY (channel_tv___dt__))
|
select channel_tv___dt__ from table_1553485_1 where station = "kpix"
|
Who was the Best Male Artist where Bankie Travolta won the Best Male MC?
|
create table table_22546460_4 (best_male_artist varchar, best_male_mc varchar, PRIMARY KEY (best_male_artist))
|
select best_male_artist from table_22546460_4 where best_male_mc = "bankie travolta"
|
What is the cross section area (cm 2) for the moment of intertia in torsion (j) (cm 4) 2.54?
|
create table table_2071644_1 (cross_section_area__cm_2__ varchar, moment_of_inertia_in_torsion__j___cm_4__ varchar, PRIMARY KEY (cross_section_area__cm_2__))
|
select cross_section_area__cm_2__ from table_2071644_1 where moment_of_inertia_in_torsion__j___cm_4__ = "2.54"
|
How many types of valves were used on this engine that was built on 1902-05?
|
create table table_25695027_1 (valves varchar, years_built varchar, PRIMARY KEY (valves))
|
select count(valves) from table_25695027_1 where years_built = "1902-05"
|
What was the result of the election featuring incumbent norman sisisky?
|
create table table_1341423_46 (results varchar, incumbent varchar, PRIMARY KEY (results))
|
select results from table_1341423_46 where incumbent = "norman sisisky"
|
Who had the most assists agains New Orleans?
|
create table table_27755603_7 (high_assists varchar, team varchar, PRIMARY KEY (high_assists))
|
select high_assists from table_27755603_7 where team = "new orleans"
|
What was the final record for the game in which Dirk Nowitzki (19) had the high points?
|
create table table_17288869_7 (record varchar, high_points varchar, PRIMARY KEY (record))
|
select record from table_17288869_7 where high_points = "dirk nowitzki (19)"
|
Name the departure for spalding
|
create table table_17200372_2 (departure varchar, going_to varchar, PRIMARY KEY (departure))
|
select departure from table_17200372_2 where going_to = "spalding"
|
What was the losing hand where the winning hand was 7h 7s?
|
create table table_12454156_1 (losing_hand varchar, winning_hand varchar, PRIMARY KEY (losing_hand))
|
select losing_hand from table_12454156_1 where winning_hand = "7h 7s"
|
What album was the song My Chariot on?
|
create table table_23667534_1 (album_s_ varchar, song_s__title varchar, PRIMARY KEY (album_s_))
|
select album_s_ from table_23667534_1 where song_s__title = "my chariot"
|
What is shown for fri 26 aug when mon 22 aug is —— no time?
|
create table table_30058355_2 (fri_26_aug varchar, mon_22_aug varchar, PRIMARY KEY (fri_26_aug))
|
select fri_26_aug from table_30058355_2 where mon_22_aug = "—— no time"
|
What is the coinage metal for a KM number of S75?
|
create table table_26336060_19 (coinage_metal varchar, km_number varchar, PRIMARY KEY (coinage_metal))
|
select coinage_metal from table_26336060_19 where km_number = "s75"
|
What are all locations of train stations?
|
create table station (location varchar, PRIMARY KEY (location))
|
select distinct location from station
|
How many tonnes of cargo did the airport have with the IATA Code IND?
|
create table table_18047346_5 (tonnes varchar, iata_code varchar, PRIMARY KEY (tonnes))
|
select tonnes from table_18047346_5 where iata_code = "ind"
|
Name the men's singles of marina yakusheva elena shimko
|
create table table_12104319_1 (mens_singles varchar, womens_doubles varchar, PRIMARY KEY (mens_singles))
|
select mens_singles from table_12104319_1 where womens_doubles = "marina yakusheva elena shimko"
|
What is the station type for the branding ABS-CBN TV-32 Tagaytay?
|
create table table_2610582_2 (station_type varchar, branding varchar, PRIMARY KEY (station_type))
|
select station_type from table_2610582_2 where branding = "abs-cbn tv-32 tagaytay"
|
Name the hdi 2012 for dominica
|
create table table_26313243_1 (hdi_2012 varchar, country varchar, PRIMARY KEY (hdi_2012))
|
select hdi_2012 from table_26313243_1 where country = "dominica"
|
What was the 2008 election status when glenn nye was the running democrat?
|
create table table_17503169_1 (democratic varchar, PRIMARY KEY (democratic))
|
select 2008 as _status from table_17503169_1 where democratic = "glenn nye"
|
Who was the mountain classification winner in the stage won by Alessandro Ballan?
|
create table table_22917458_15 (mountains_classification_klasyfikacja_górska varchar, winner varchar, PRIMARY KEY (mountains_classification_klasyfikacja_górska))
|
select mountains_classification_klasyfikacja_górska from table_22917458_15 where winner = "alessandro ballan"
|
What is the route/via when the train name is Parasuram Express?
|
create table table_29202276_2 (route_via varchar, train_name varchar, PRIMARY KEY (route_via))
|
select route_via from table_29202276_2 where train_name = "parasuram express"
|
What is the number of the city district of stadtteil where foreigners are 5.162?
|
create table table_10992_3 (city_district__stadtteil_ varchar, foreign_nationals varchar, PRIMARY KEY (city_district__stadtteil_))
|
select count(city_district__stadtteil_) from table_10992_3 where foreign_nationals = "5.162"
|
In what draft round in 2012 did a player from Rio Hondo get drafted?
|
create table table_20589703_2 (draft_round varchar, college varchar, draft_year varchar, PRIMARY KEY (draft_round))
|
select draft_round from table_20589703_2 where college = "rio hondo" and draft_year = 2012
|
What is the height of the player who attended Hartford?
|
create table table_11734041_2 (height_in_ft varchar, school_club_team_country varchar, PRIMARY KEY (height_in_ft))
|
select height_in_ft from table_11734041_2 where school_club_team_country = "hartford"
|
which vessel area was called for on november 30, 1970
|
create table table_291768_1 (shipyard varchar, commissioned varchar, PRIMARY KEY (shipyard))
|
select shipyard from table_291768_1 where commissioned = "november 30, 1970"
|
When mega pass* (senior/disabled) is the type of fare what is the day pass?
|
create table table_20803241_1 (day_pass varchar, type_of_fare varchar, PRIMARY KEY (day_pass))
|
select day_pass from table_20803241_1 where type_of_fare = "mega pass* (senior/disabled)"
|
Name the poll source for july 12, 2008
|
create table table_16751596_2 (poll_source varchar, dates_administered varchar, PRIMARY KEY (poll_source))
|
select poll_source from table_16751596_2 where dates_administered = "july 12, 2008"
|
Name the oberliga hessen for sv sandhausen and fsv salmrohr
|
create table table_14242137_4 (oberliga_hessen varchar, oberliga_baden_württemberg varchar, oberliga_südwest varchar, PRIMARY KEY (oberliga_hessen))
|
select oberliga_hessen from table_14242137_4 where oberliga_baden_württemberg = "sv sandhausen" and oberliga_südwest = "fsv salmrohr"
|
What is the station type of calbayog
|
create table table_12547903_2 (station_type varchar, location__transmitter_site_ varchar, PRIMARY KEY (station_type))
|
select station_type from table_12547903_2 where location__transmitter_site_ = "calbayog"
|
list names of all departments ordered by their names.
|
create table department (dept_name varchar, PRIMARY KEY (dept_name))
|
select dept_name from department order by dept_name
|
Who were the candidates when Sid Simpson was the incumbent?
|
create table table_1342249_13 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
|
select candidates from table_1342249_13 where incumbent = "sid simpson"
|
Name the total apps for eddie carr
|
create table table_19730892_1 (total_apps integer, name varchar, PRIMARY KEY (total_apps))
|
select max(total_apps) from table_19730892_1 where name = "eddie carr"
|
What explosion had an altitude of 539 km?
|
create table table_148578_1 (explosion varchar, altitude__km_ varchar, PRIMARY KEY (explosion))
|
select explosion from table_148578_1 where altitude__km_ = "539"
|
how many airports are there in each country?
|
create table airport (country varchar, PRIMARY KEY (country))
|
select count(*), country from airport group by country
|
At what city or town is milepost 71.1?
|
create table table_2572788_1 (town_city varchar, milepost varchar, PRIMARY KEY (town_city))
|
select town_city from table_2572788_1 where milepost = "71.1"
|
Who was the director when the writer was John Sullivan?
|
create table table_17641206_4 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by))
|
select directed_by from table_17641206_4 where written_by = "john sullivan"
|
Show all allergy types and the number of allergies in each type.
|
create table allergy_type (allergytype varchar, PRIMARY KEY (allergytype))
|
select allergytype, count(*) from allergy_type group by allergytype
|
What's the website of the school in Macon, Illinois?
|
create table table_29612224_1 (school_website varchar, location varchar, PRIMARY KEY (school_website))
|
select school_website from table_29612224_1 where location = "macon, illinois"
|
which episode was Transmitted on wednesday if the episode of "438 magic: the gathering mini masters tournament" was transmitted on thursday?
|
create table table_18173916_8 (wednesday varchar, thursday varchar, PRIMARY KEY (wednesday))
|
select wednesday from table_18173916_8 where thursday = "438 magic: the gathering mini masters tournament"
|
Show each location and the number of cinemas there.
|
create table cinema (location varchar, PRIMARY KEY (location))
|
select location, count(*) from cinema group by location
|
List the names of people that are not entrepreneurs.
|
create table entrepreneur (name varchar, people_id varchar, PRIMARY KEY (name)); create table people (name varchar, people_id varchar, PRIMARY KEY (name))
|
select name from people where not people_id in (select people_id from entrepreneur)
|
which affiliation does edwin e. willis affiliate with
|
create table table_1341930_18 (party varchar, incumbent varchar, PRIMARY KEY (party))
|
select party from table_1341930_18 where incumbent = "edwin e. willis"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.