question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
what is the gdp ( bn ) where capital is capital?
|
create table table_12108_1 (gdp___bn__ varchar, PRIMARY KEY (gdp___bn__))
|
select gdp___bn__ from table_12108_1 where "capital" = "capital"
|
To which party does Frank T. Bow belong?
|
create table table_1341865_37 (party varchar, incumbent varchar, PRIMARY KEY (party))
|
select party from table_1341865_37 where incumbent = "frank t. bow"
|
What length of stay is permitted in the European Union?
|
create table table_25965003_3 (length_of_stay_permitted varchar, countries_and_territories varchar, PRIMARY KEY (length_of_stay_permitted))
|
select length_of_stay_permitted from table_25965003_3 where countries_and_territories = "european union"
|
What is the Old Galician for cantaste in Portuguese?
|
create table table_26614365_1 (old_galician__13th_15th_c_ varchar, portuguese varchar, PRIMARY KEY (old_galician__13th_15th_c_))
|
select old_galician__13th_15th_c_ from table_26614365_1 where portuguese = "cantaste"
|
what's the type with description being fires when the overflow state changes.
|
create table table_1507852_5 (type varchar, description varchar, PRIMARY KEY (type))
|
select type from table_1507852_5 where description = "fires when the overflow state changes."
|
Who was the High Assist when the High Rebounds was andre iguodala (8)?
|
create table table_17323042_11 (high_assists varchar, high_rebounds varchar, PRIMARY KEY (high_assists))
|
select high_assists from table_17323042_11 where high_rebounds = "andre iguodala (8)"
|
Who was the home team who played plymouth argyle?
|
create table table_24887326_8 (home_team varchar, away_team varchar, PRIMARY KEY (home_team))
|
select home_team from table_24887326_8 where away_team = "plymouth argyle"
|
What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.
|
create table organisation_types (organisation_type varchar, organisation_type_description varchar, PRIMARY KEY (organisation_type)); create table organisations (organisation_type varchar, PRIMARY KEY (organisation_type))
|
select organisation_details from organisations as t1 join organisation_types as t2 on t1.organisation_type = t2.organisation_type where t2.organisation_type_description = 'sponsor' order by organisation_details
|
Name the year for is my magic
|
create table table_21790203_1 (year__ceremony_ varchar, film_title_used_in_nomination varchar, PRIMARY KEY (year__ceremony_))
|
select year__ceremony_ from table_21790203_1 where film_title_used_in_nomination = "my magic"
|
What is Lisladeen poor law union?
|
create table table_30120566_1 (poor_law_union varchar, townland varchar, PRIMARY KEY (poor_law_union))
|
select poor_law_union from table_30120566_1 where townland = "lisladeen"
|
Find the types and details for all premises and order by the premise type.
|
create table premises (premises_type varchar, premise_details varchar, PRIMARY KEY (premises_type))
|
select premises_type, premise_details from premises order by premises_type
|
Name the least road wins
|
create table table_1585112_2 (road_wins integer, PRIMARY KEY (road_wins))
|
select min(road_wins) from table_1585112_2
|
Which major has the most students?
|
create table student (major varchar, major varchar, PRIMARY KEY (major))
|
select major from student group by major order by count(*) desc limit 1
|
The hanja 尙州 is for what capital?
|
create table table_160510_1 (capital varchar, hanja varchar, PRIMARY KEY (capital))
|
select capital from table_160510_1 where hanja = "尙州"
|
Name the opponent for black knights points 27
|
create table table_21091145_1 (opponent varchar, black_knights_points varchar, PRIMARY KEY (opponent))
|
select opponent from table_21091145_1 where black_knights_points = 27
|
Name the segment d for s cufflink
|
create table table_15187735_18 (segment_d varchar, segment_a varchar, PRIMARY KEY (segment_d))
|
select segment_d from table_15187735_18 where segment_a = "s cufflink"
|
When tiger-cats is the opponent what is the location?
|
create table table_24136365_2 (location varchar, opponent varchar, PRIMARY KEY (location))
|
select location from table_24136365_2 where opponent = "tiger-cats"
|
how many bubbles with category being input
|
create table table_1507852_5 (bubbles varchar, category varchar, PRIMARY KEY (bubbles))
|
select count(bubbles) from table_1507852_5 where category = "input"
|
what is the largest city where the population is 6620100?
|
create table table_17416221_1 (largest_city varchar, population__2013_ varchar, PRIMARY KEY (largest_city))
|
select largest_city from table_17416221_1 where population__2013_ = 6620100
|
What is the batting team with the batting partnets of thilina kandamby and rangana herath?
|
create table table_11303072_5 (batting_team varchar, batting_partners varchar, PRIMARY KEY (batting_team))
|
select batting_team from table_11303072_5 where batting_partners = "thilina kandamby and rangana herath"
|
How many car makers are there in france?
|
create table countries (countryid varchar, countryname varchar, PRIMARY KEY (countryid)); create table car_makers (country varchar, PRIMARY KEY (country))
|
select count(*) from car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'france'
|
WHAT PERCENTAGE OF GLOBAL TOTAL EMISSIONS DID INDIA PRODUCE?
|
create table table_11251601_2 (percentage_of_global_total varchar, country varchar, PRIMARY KEY (percentage_of_global_total))
|
select percentage_of_global_total from table_11251601_2 where country = "india"
|
What mechanical has lpm regulation?
|
create table table_1348246_3 (mechanical varchar, regulating varchar, PRIMARY KEY (mechanical))
|
select mechanical from table_1348246_3 where regulating = "lpm"
|
When pokémon ieru kana? bw is the romaji who is the vocalist?
|
create table table_2144389_9 (vocalist varchar, rōmaji varchar, PRIMARY KEY (vocalist))
|
select vocalist from table_2144389_9 where rōmaji = "pokémon ieru kana? bw"
|
What's the title of the episode seen by 3.8 million people in the US?
|
create table table_20046379_3 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title))
|
select title from table_20046379_3 where us_viewers__millions_ = "3.8"
|
What is the difficulty of the athens circuit?
|
create table table_24463470_1 (difficulty varchar, circuit varchar, PRIMARY KEY (difficulty))
|
select difficulty from table_24463470_1 where circuit = "athens"
|
When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there?
|
create table table_20803241_1 (type_of_fare varchar, cash_fare varchar, day_pass varchar, PRIMARY KEY (type_of_fare))
|
select count(type_of_fare) from table_20803241_1 where 31 - day_pass = "n/a" and cash_fare = "n/a"
|
Who had the highest rebounds in the game where the record was 27-54?
|
create table table_23186738_10 (high_rebounds varchar, record varchar, PRIMARY KEY (high_rebounds))
|
select high_rebounds from table_23186738_10 where record = "27-54"
|
What was the team record when the team played @ Utah?
|
create table table_21197135_1 (record varchar, opponent varchar, PRIMARY KEY (record))
|
select record from table_21197135_1 where opponent = "@ utah"
|
Who was the Best Male MC if Best Album won the Best Male Lyricist?
|
create table table_22546460_4 (best_male_mc varchar, best_male_lyricist varchar, PRIMARY KEY (best_male_mc))
|
select best_male_mc from table_22546460_4 where best_male_lyricist = "best album"
|
How many classes between senior and junior year for world history
|
create table table_13967239_2 (senior__4th_year_ varchar, junior__3rd_year_ varchar, PRIMARY KEY (senior__4th_year_))
|
select count(senior__4th_year_) from table_13967239_2 where junior__3rd_year_ = "world history"
|
What is the broadcast are for channel 1?
|
create table table_2638104_1 (broadcast_area varchar, channel varchar, PRIMARY KEY (broadcast_area))
|
select broadcast_area from table_2638104_1 where channel = 1
|
What is the other name for martonoš?
|
create table table_2562572_33 (cyrillic_name_other_names varchar, settlement varchar, PRIMARY KEY (cyrillic_name_other_names))
|
select cyrillic_name_other_names from table_2562572_33 where settlement = "martonoš"
|
what is june 10-11 when march 27-29 is 149?
|
create table table_25355392_2 (june_10_11 varchar, march_27_29 varchar, PRIMARY KEY (june_10_11))
|
select june_10_11 from table_25355392_2 where march_27_29 = "149"
|
What is the name of the corporation that incorporated on october 15, 1955?
|
create table table_28367242_1 (corporate_name varchar, incorporation_date__city_ varchar, PRIMARY KEY (corporate_name))
|
select corporate_name from table_28367242_1 where incorporation_date__city_ = "october 15, 1955"
|
Name the dar for mtv rocks
|
create table table_15887683_10 (dar varchar, television_service varchar, PRIMARY KEY (dar))
|
select dar from table_15887683_10 where television_service = "mtv rocks"
|
how many exposures where there when the total exposure time is 105,000s?
|
create table table_2583036_1 (exposures varchar, total_exposure_time varchar, PRIMARY KEY (exposures))
|
select exposures from table_2583036_1 where total_exposure_time = "105,000s"
|
Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL?
|
create table table_1473672_3 (college_junior_club_team varchar, nhl_team varchar, PRIMARY KEY (college_junior_club_team))
|
select college_junior_club_team from table_1473672_3 where nhl_team = "buffalo sabres"
|
Find the location and all games score of the school that has Clemson as its team name.
|
create table basketball_match (all_games varchar, school_id varchar, PRIMARY KEY (all_games)); create table university (location varchar, school_id varchar, PRIMARY KEY (location))
|
select t2.all_games, t1.location from university as t1 join basketball_match as t2 on t1.school_id = t2.school_id where team_name = 'clemson'
|
Show the id and details of the investor that has the largest number of transactions.
|
create table transactions (investor_id varchar, PRIMARY KEY (investor_id)); create table investors (investor_details varchar, investor_id varchar, PRIMARY KEY (investor_details))
|
select t2.investor_id, t1.investor_details from investors as t1 join transactions as t2 on t1.investor_id = t2.investor_id group by t2.investor_id order by count(*) desc limit 1
|
What is the home team score where the home team is Fremantle?
|
create table table_16388478_4 (home_team varchar, PRIMARY KEY (home_team))
|
select home_team as score from table_16388478_4 where home_team = "fremantle"
|
How many polls taken on different dates show an undecided percentage of 25%?
|
create table table_20683381_2 (date_of_opinion_poll varchar, undecided varchar, PRIMARY KEY (date_of_opinion_poll))
|
select count(date_of_opinion_poll) from table_20683381_2 where undecided = "25%"
|
Show the name, phone, and payment method code for all customers in descending order of customer number.
|
create table customers (customer_name varchar, customer_phone varchar, payment_method_code varchar, customer_number varchar, PRIMARY KEY (customer_name))
|
select customer_name, customer_phone, payment_method_code from customers order by customer_number desc
|
List the title of all cartoons in alphabetical order.
|
create table cartoon (title varchar, title varchar, PRIMARY KEY (title))
|
select title from cartoon order by title
|
Show the student IDs and numbers of friends corresponding to each.
|
create table friend (student_id varchar, PRIMARY KEY (student_id))
|
select student_id, count(*) from friend group by student_id
|
Who was the vacator when the date successor seated was august 21, 1973?
|
create table table_1134091_4 (vacator varchar, date_successor_seated varchar, PRIMARY KEY (vacator))
|
select vacator from table_1134091_4 where date_successor_seated = "august 21, 1973"
|
What is every value for sacks if interceptions is 19?
|
create table table_27487336_1 (sacks varchar, interceptions varchar, PRIMARY KEY (sacks))
|
select sacks from table_27487336_1 where interceptions = "19"
|
What is the name of the episode that had 9.89 million U.S. viewers?
|
create table table_24648983_1 (title varchar, us_viewers__million_ varchar, PRIMARY KEY (title))
|
select title from table_24648983_1 where us_viewers__million_ = "9.89"
|
What network showed the season with Australia as the destination?
|
create table table_20026849_1 (network varchar, destination varchar, PRIMARY KEY (network))
|
select network from table_20026849_1 where destination = "australia"
|
Show all allergy type with number of students affected.
|
create table has_allergy (allergy varchar, PRIMARY KEY (allergy)); create table allergy_type (allergytype varchar, allergy varchar, PRIMARY KEY (allergytype))
|
select t2.allergytype, count(*) from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy group by t2.allergytype
|
Find the name of amenity that is most common in all dorms.
|
create table dorm_amenity (amenity_name varchar, amenid varchar, PRIMARY KEY (amenity_name)); create table has_amenity (amenid varchar, PRIMARY KEY (amenid))
|
select t1.amenity_name from dorm_amenity as t1 join has_amenity as t2 on t1.amenid = t2.amenid group by t2.amenid order by count(*) desc limit 1
|
Who led the points classification when Roman Kreuziger led the young rider classification?
|
create table table_14395920_2 (points_classification varchar, young_rider_classification varchar, PRIMARY KEY (points_classification))
|
select points_classification from table_14395920_2 where young_rider_classification = "roman kreuziger"
|
How many opponents were there when the record was 6-0?
|
create table table_21197135_1 (opponent varchar, record varchar, PRIMARY KEY (opponent))
|
select count(opponent) from table_21197135_1 where record = "6-0"
|
What office is Jon Huntsman a candidate for?
|
create table table_20246201_9 (office varchar, candidate varchar, PRIMARY KEY (office))
|
select office from table_20246201_9 where candidate = "jon huntsman"
|
What was the number for Schwante where Bärenklau is 1.270?
|
create table table_11680175_1 (schwante varchar, bärenklau varchar, PRIMARY KEY (schwante))
|
select schwante from table_11680175_1 where bärenklau = "1.270"
|
List all the product names with the color description "white".
|
create table ref_colors (color_code varchar, color_description varchar, PRIMARY KEY (color_code)); create table products (product_name varchar, color_code varchar, PRIMARY KEY (product_name))
|
select t1.product_name from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code where t2.color_description = "white"
|
Show the number of document types.
|
create table ref_document_types (id varchar, PRIMARY KEY (id))
|
select count(*) from ref_document_types
|
How many different team captains does the club Sliven 2000 have?
|
create table table_23214833_1 (team_captain varchar, club varchar, PRIMARY KEY (team_captain))
|
select count(team_captain) from table_23214833_1 where club = "sliven 2000"
|
On which dates did the episodes directed by TR Babu Subramaniam air?
|
create table table_17355820_1 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
|
select original_air_date from table_17355820_1 where directed_by = "tr babu subramaniam"
|
When ratkovo is the settlement what is the cyrllic name other names?
|
create table table_2562572_25 (cyrillic_name_other_names varchar, settlement varchar, PRIMARY KEY (cyrillic_name_other_names))
|
select cyrillic_name_other_names from table_2562572_25 where settlement = "ratkovo"
|
How many segment A were in series episode 14-05
|
create table table_15187735_14 (segment_a varchar, series_ep varchar, PRIMARY KEY (segment_a))
|
select count(segment_a) from table_15187735_14 where series_ep = "14-05"
|
What years did the player from LaSalle play for the Rockets?
|
create table table_11734041_2 (years_for_rockets varchar, school_club_team_country varchar, PRIMARY KEY (years_for_rockets))
|
select years_for_rockets from table_11734041_2 where school_club_team_country = "lasalle"
|
how many verbs have the yo form as sienta?
|
create table table_1977630_2 (verbs varchar, yo varchar, PRIMARY KEY (verbs))
|
select count(verbs) from table_1977630_2 where yo = "sienta"
|
What are all the metropolis / municipality where mayor is helen c. De castro
|
create table table_255812_1 (city___municipality varchar, mayor varchar, PRIMARY KEY (city___municipality))
|
select city___municipality from table_255812_1 where mayor = "helen c. de castro"
|
What is the dysart of the principal?
|
create table table_11340432_1 (dysart varchar, information varchar, PRIMARY KEY (dysart))
|
select dysart from table_11340432_1 where information = "principal"
|
Name the studio analysts for espn with erin andrews and tom rinaldi
|
create table table_2724704_5 (studio_analyst_s_ varchar, network_s_ varchar, sideline_reporter_s_ varchar, PRIMARY KEY (studio_analyst_s_))
|
select studio_analyst_s_ from table_2724704_5 where network_s_ = "espn" and sideline_reporter_s_ = "erin andrews and tom rinaldi"
|
When the average away attendance is 1.889 in the Superettan, what's the average home attendance?
|
create table table_1816947_2 (average_attendance_home varchar, division___section varchar, average_attendance_away varchar, PRIMARY KEY (average_attendance_home))
|
select average_attendance_home from table_1816947_2 where division___section = "superettan" and average_attendance_away = "1.889"
|
What is the semifinal result for Dorrie Timmermans-Van Hall?
|
create table table_18602462_22 (semifinals varchar, athlete varchar, PRIMARY KEY (semifinals))
|
select semifinals from table_18602462_22 where athlete = "dorrie timmermans-van hall"
|
Name the party for tim lee hall
|
create table table_1341672_14 (party varchar, incumbent varchar, PRIMARY KEY (party))
|
select party from table_1341672_14 where incumbent = "tim lee hall"
|
How many customers have email that contains "gmail.com"?
|
create table customer (email varchar, PRIMARY KEY (email))
|
select count(*) from customer where email like "%gmail.com%"
|
In 2010, how many people lived in cities with a population density of 3,965.02?
|
create table table_2004733_2 (population__2010_ varchar, population_density__2010_ varchar, PRIMARY KEY (population__2010_))
|
select population__2010_ from table_2004733_2 where population_density__2010_ = "3,965.02"
|
What are the names of people in ascending alphabetical order?
|
create table people (name varchar, PRIMARY KEY (name))
|
select name from people order by name
|
What channel number is Gladiators on
|
create table table_13549921_18 (new_channel_s_ varchar, programme varchar, PRIMARY KEY (new_channel_s_))
|
select new_channel_s_ from table_13549921_18 where programme = "gladiators"
|
How many data was given the total electricity in GW-h if % renewable is 92.3%?
|
create table table_25244412_2 (total_electricity__gw varchar, _percentage_renewable varchar, PRIMARY KEY (total_electricity__gw))
|
select count(total_electricity__gw) as ·h_ from table_25244412_2 where _percentage_renewable = "92.3%"
|
What week # featured first solo as the theme?
|
create table table_21501564_1 (week__number varchar, theme varchar, PRIMARY KEY (week__number))
|
select week__number from table_21501564_1 where theme = "first solo"
|
What was the data on January 15-16 if March 27-29 is March 29, 2006?
|
create table table_25216791_3 (january_15_16 varchar, march_27_29 varchar, PRIMARY KEY (january_15_16))
|
select january_15_16 from table_25216791_3 where march_27_29 = "march 29, 2006"
|
what's the permanence of the body where constancy is interestedness
|
create table table_11609814_1 (permanence_of_the_body varchar, constancy varchar, PRIMARY KEY (permanence_of_the_body))
|
select permanence_of_the_body from table_11609814_1 where constancy = "interestedness"
|
What is the winning span for the name of bernard gallacher?
|
create table table_1953516_1 (winning_span varchar, name varchar, PRIMARY KEY (winning_span))
|
select winning_span from table_1953516_1 where name = "bernard gallacher"
|
How many lessons were in cancelled state?
|
create table lessons (lesson_status_code varchar, PRIMARY KEY (lesson_status_code))
|
select count(*) from lessons where lesson_status_code = "cancelled"
|
What is the number of meaning where full name is chidinma anulika?
|
create table table_11908801_1 (meaning varchar, full_name varchar, PRIMARY KEY (meaning))
|
select count(meaning) from table_11908801_1 where full_name = "chidinma anulika"
|
How many p.ret are there when kr avg is 11.3 ?
|
create table table_16912000_13 (p_ret varchar, kr_avg varchar, PRIMARY KEY (p_ret))
|
select count(p_ret) from table_16912000_13 where kr_avg = "11.3"
|
Which type of record has result/games of 9 games (57,144 avg.)
|
create table table_21436373_6 (type_of_record varchar, result_games varchar, PRIMARY KEY (type_of_record))
|
select type_of_record from table_21436373_6 where result_games = "9 games (57,144 avg.)"
|
Find the name of instructors who are advisors of the students from the Math department, and sort the results by students' total credit.
|
create table student (id varchar, dept_name varchar, tot_cred varchar, PRIMARY KEY (id)); create table advisor (i_id varchar, s_id varchar, PRIMARY KEY (i_id)); create table instructor (name varchar, id varchar, PRIMARY KEY (name))
|
select t2.name from advisor as t1 join instructor as t2 on t1.i_id = t2.id join student as t3 on t1.s_id = t3.id where t3.dept_name = 'math' order by t3.tot_cred
|
Which city and state hosted the adelaide street circuit?
|
create table table_26686908_2 (city___state varchar, circuit varchar, PRIMARY KEY (city___state))
|
select city___state from table_26686908_2 where circuit = "adelaide street circuit"
|
What member of the original Toronto cast played the character played by Constantine Maroulis in the first national tour cast?
|
create table table_19529639_3 (original_toronto_cast varchar, first_national_tour_cast varchar, PRIMARY KEY (original_toronto_cast))
|
select original_toronto_cast from table_19529639_3 where first_national_tour_cast = "constantine maroulis"
|
Who are all the Moto2 winners when the grand prix was Shell Advance Malaysian Grand Prix?
|
create table table_26781017_1 (moto2_winner varchar, grand_prix varchar, PRIMARY KEY (moto2_winner))
|
select moto2_winner from table_26781017_1 where grand_prix = "shell advance malaysian grand_prix"
|
What is the most Miss Fires any country has had?
|
create table table_30008638_1 (miss_fire integer, PRIMARY KEY (miss_fire))
|
select max(miss_fire) from table_30008638_1
|
How many different store locations are there?
|
create table shop (location varchar, PRIMARY KEY (location))
|
select count(distinct location) from shop
|
How many distinct teams are involved in match seasons?
|
create table match_season (team varchar, PRIMARY KEY (team))
|
select count(distinct team) from match_season
|
what's the party with incumbent being herbert covington bonner
|
create table table_1341930_33 (party varchar, incumbent varchar, PRIMARY KEY (party))
|
select party from table_1341930_33 where incumbent = "herbert covington bonner"
|
When guiguinto, bulacan is the home or representative town or province how many names are there?
|
create table table_19061741_3 (name varchar, home_or_representative_town_or_province varchar, PRIMARY KEY (name))
|
select count(name) from table_19061741_3 where home_or_representative_town_or_province = "guiguinto, bulacan"
|
How many export volume of goods and services values are associated with GDP at current prices of 161.340?
|
create table table_30133_1 (export_volume_of_goods_and_services__percent_change_ varchar, gdp_at_current_prices__usd_billions_ varchar, PRIMARY KEY (export_volume_of_goods_and_services__percent_change_))
|
select count(export_volume_of_goods_and_services__percent_change_) from table_30133_1 where gdp_at_current_prices__usd_billions_ = "161.340"
|
Is wireless combo keyboard and mouse support part of the DDM class?
|
create table table_1153898_1 (ddm_class varchar, comparisons varchar, PRIMARY KEY (ddm_class))
|
select ddm_class from table_1153898_1 where comparisons = "wireless combo keyboard and mouse support"
|
What is the title of the show with director Paul Annett?
|
create table table_2582519_6 (title varchar, director varchar, PRIMARY KEY (title))
|
select title from table_2582519_6 where director = "paul annett"
|
Luis Salom had the fastest lap on which circuits?
|
create table table_18303274_1 (circuit varchar, fastest_lap varchar, PRIMARY KEY (circuit))
|
select circuit from table_18303274_1 where fastest_lap = "luis salom"
|
Can one access the Jersey territory using a Croatian identity card?
|
create table table_25965003_3 (access_using_a_croatian_identity_card varchar, countries_and_territories varchar, PRIMARY KEY (access_using_a_croatian_identity_card))
|
select access_using_a_croatian_identity_card from table_25965003_3 where countries_and_territories = "jersey"
|
List the name of a building along with the name of a company whose office is in the building.
|
create table buildings (name varchar, id varchar, PRIMARY KEY (name)); create table office_locations (building_id varchar, company_id varchar, PRIMARY KEY (building_id)); create table companies (name varchar, id varchar, PRIMARY KEY (name))
|
select t3.name, t2.name from office_locations as t1 join buildings as t2 on t1.building_id = t2.id join companies as t3 on t1.company_id = t3.id
|
What is every institution with a nickname of Ravens?
|
create table table_262514_1 (institution varchar, nickname varchar, PRIMARY KEY (institution))
|
select institution from table_262514_1 where nickname = "ravens"
|
If the hometown is Omuthiya, what is the contestant name?
|
create table table_23576576_2 (contestant varchar, hometown varchar, PRIMARY KEY (contestant))
|
select contestant from table_23576576_2 where hometown = "omuthiya"
|
Find the name of amenities Smith Hall dorm have. ordered the results by amenity names.
|
create table has_amenity (dormid varchar, amenid varchar, PRIMARY KEY (dormid)); create table dorm_amenity (amenity_name varchar, amenid varchar, PRIMARY KEY (amenity_name)); create table dorm (dormid varchar, dorm_name varchar, PRIMARY KEY (dormid))
|
select t3.amenity_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 t1.dorm_name = 'smith hall' order by t3.amenity_name
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.