question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Name the past habitual for गर्छस् garchas 'you (will) do'
|
create table table_16337329_5 (past_habitual varchar, probable_future varchar, PRIMARY KEY (past_habitual))
|
select past_habitual from table_16337329_5 where probable_future = "गर्छस् garchas 'you (will) do'"
|
Show all allergies with number of students affected.
|
create table has_allergy (allergy varchar, PRIMARY KEY (allergy))
|
select allergy, count(*) from has_allergy group by allergy
|
List all headquarters and the number of companies in each headquarter.
|
create table company (headquarters varchar, PRIMARY KEY (headquarters))
|
select headquarters, count(*) from company group by headquarters
|
Name the green for otaki
|
create table table_20217811_1 (green varchar, electorate varchar, PRIMARY KEY (green))
|
select green from table_20217811_1 where electorate = "otaki"
|
On which circuit was the lites race two winning team #13 Inspire Motorsports?
|
create table table_26638600_3 (circuit varchar, lites_1_race_two_winning_team varchar, PRIMARY KEY (circuit))
|
select circuit from table_26638600_3 where lites_1_race_two_winning_team = "#13 inspire motorsports"
|
Who ran in the election where Claude Fuller was the incumbent?
|
create table table_1342338_5 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
|
select candidates from table_1342338_5 where incumbent = "claude fuller"
|
Show the game name that has most number of hours played.
|
create table plays_games (gameid varchar, PRIMARY KEY (gameid)); create table video_games (gameid varchar, PRIMARY KEY (gameid))
|
select gname from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid group by t1.gameid order by sum(hours_played) desc limit 1
|
What is the the name of the NHL team that is in the same market as the NBA team, Nuggets?
|
create table table_1205598_1 (nhl_team_s_ varchar, nba_team_s_ varchar, PRIMARY KEY (nhl_team_s_))
|
select nhl_team_s_ from table_1205598_1 where nba_team_s_ = "nuggets"
|
What branch of government was the term that ended on January 3, 2001?
|
create table table_224672_2 (type varchar, term_ended varchar, PRIMARY KEY (type))
|
select type from table_224672_2 where term_ended = "january 3, 2001"
|
What is the wattage/TDP associated with model name 4x0?
|
create table table_24099628_1 (tdp varchar, model__list_ varchar, PRIMARY KEY (tdp))
|
select tdp from table_24099628_1 where model__list_ = "4x0"
|
Who left office on November 26, 1800?
|
create table table_224840_4 (vacator varchar, date_successor_seated varchar, PRIMARY KEY (vacator))
|
select vacator from table_224840_4 where date_successor_seated = "november 26, 1800"
|
Who had the best regular season in the contest won by Arkansas-Pine Bluff?
|
create table table_22645714_5 (regular_season_winner varchar, tournament_winner varchar, PRIMARY KEY (regular_season_winner))
|
select regular_season_winner from table_22645714_5 where tournament_winner = "arkansas-pine bluff"
|
What clu was in toronto 1995-96
|
create table table_10015132_16 (school_club_team varchar, years_in_toronto varchar, PRIMARY KEY (school_club_team))
|
select school_club_team from table_10015132_16 where years_in_toronto = "1995-96"
|
On what date did congressman joseph tydings enter take his seat?
|
create table table_24415627_2 (entered_senate varchar, senator varchar, PRIMARY KEY (entered_senate))
|
select entered_senate from table_24415627_2 where senator = "joseph tydings"
|
What is Doucet when Lawrance is 36?
|
create table table_11447995_2 (doucet varchar, lawrance varchar, PRIMARY KEY (doucet))
|
select doucet from table_11447995_2 where lawrance = "36"
|
Name the most gdp per capita latvian
|
create table table_21133193_1 (gdp_per_capita__us integer, languages varchar, PRIMARY KEY (gdp_per_capita__us))
|
select max(gdp_per_capita__us) as $_ from table_21133193_1 where languages = "latvian"
|
How many constructors won the III Redex Trophy?
|
create table table_1140113_5 (constructor varchar, race_name varchar, PRIMARY KEY (constructor))
|
select count(constructor) from table_1140113_5 where race_name = "iii redex trophy"
|
What are the names, details and data types of the characteristics which are never used by any product?
|
create table characteristics (characteristic_name varchar, other_characteristic_details varchar, characteristic_data_type varchar, characteristic_id varchar, PRIMARY KEY (characteristic_name)); create table product_characteristics (characteristic_id varchar, PRIMARY KEY (characteristic_id)); create table characteristics (characteristic_name varchar, other_characteristic_details varchar, characteristic_data_type varchar, PRIMARY KEY (characteristic_name))
|
select characteristic_name, other_characteristic_details, characteristic_data_type from characteristics except select t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type from characteristics as t1 join product_characteristics as t2 on t1.characteristic_id = t2.characteristic_id
|
To which party does Riley Joseph Wilson belong?
|
create table table_1342370_17 (party varchar, incumbent varchar, PRIMARY KEY (party))
|
select party from table_1342370_17 where incumbent = "riley joseph wilson"
|
who is the the mixed doubles with mens singles being peter moritz
|
create table table_15002265_1 (mixed_doubles varchar, mens_singles varchar, PRIMARY KEY (mixed_doubles))
|
select mixed_doubles from table_15002265_1 where mens_singles = "peter moritz"
|
How many rooms does the Lamberton building have?
|
create table classroom (building varchar, PRIMARY KEY (building))
|
select count(*) from classroom where building = 'lamberton'
|
What movie did Bela Bose co-star in?
|
create table table_2528382_5 (movie_album varchar, co_stars varchar, PRIMARY KEY (movie_album))
|
select movie_album from table_2528382_5 where co_stars = "bela bose"
|
How many n are listed for 0.6% r1b1a2 (r-m269)?
|
create table table_21481509_4 (count varchar, r1b1a2__r_m269_ varchar, PRIMARY KEY (count))
|
select count as n from table_21481509_4 where r1b1a2__r_m269_ = "0.6%"
|
Name the number of locations for uk32
|
create table table_19897294_8 (location_s_ varchar, no_overall varchar, PRIMARY KEY (location_s_))
|
select count(location_s_) from table_19897294_8 where no_overall = "uk32"
|
Find all types of store and number of them.
|
create table store (type varchar, PRIMARY KEY (type))
|
select type, count(*) from store group by type
|
List all employees in the circulation history of the document with id 1. List the employee's name.
|
create table circulation_history (id varchar, PRIMARY KEY (id)); create table employees (id varchar, PRIMARY KEY (id))
|
select employees.employee_name from employees join circulation_history on circulation_history.employee_id = employees.employee_id where circulation_history.document_id = 1
|
What if the description of a ch-47d chinook?
|
create table table_10006830_1 (description varchar, aircraft varchar, PRIMARY KEY (description))
|
select description from table_10006830_1 where aircraft = "ch-47d chinook"
|
What was the record when the opposing team was the Columbus Blue Jackets at St. Pete Times Forum?
|
create table table_17360840_9 (record varchar, location varchar, opponent varchar, PRIMARY KEY (record))
|
select record from table_17360840_9 where location = "st. pete times forum" and opponent = "columbus blue jackets"
|
who is the the office with incumbent being ramon r. jimenez, jr.
|
create table table_1331313_1 (office varchar, incumbent varchar, PRIMARY KEY (office))
|
select office from table_1331313_1 where incumbent = "ramon r. jimenez, jr."
|
How many locations does the team Newcastle Jets come from?
|
create table table_1301373_1 (location varchar, team varchar, PRIMARY KEY (location))
|
select count(location) from table_1301373_1 where team = "newcastle jets"
|
What is the Latin for "you sang"?
|
create table table_26614365_1 (latin varchar, english varchar, PRIMARY KEY (latin))
|
select latin from table_26614365_1 where english = "you sang"
|
Find all the songs whose name contains the word "the".
|
create table songs (title varchar, PRIMARY KEY (title))
|
select title from songs where title like '% the %'
|
How many prisons is Joan Leaven connected with?
|
create table table_2933761_1 (prison_connection varchar, name varchar, PRIMARY KEY (prison_connection))
|
select count(prison_connection) from table_2933761_1 where name = "joan leaven"
|
Name the points classification for levi leipheimer
|
create table table_29077342_19 (points_classification varchar, general_classification varchar, PRIMARY KEY (points_classification))
|
select points_classification from table_29077342_19 where general_classification = "levi leipheimer"
|
Find the name of customers who have both saving and checking account types.
|
create table customer (cust_name varchar, acc_type varchar, PRIMARY KEY (cust_name))
|
select cust_name from customer where acc_type = 'saving' intersect select cust_name from customer where acc_type = 'checking'
|
Who are all the stage winners where the team classification is Caisse D'epargne?
|
create table table_17672500_19 (stage__winner_ varchar, team_classification varchar, PRIMARY KEY (stage__winner_))
|
select stage__winner_ from table_17672500_19 where team_classification = "caisse d'epargne"
|
what couple had a vote percentage of 5.8%?
|
create table table_26375386_20 (couple varchar, vote_percentage varchar, PRIMARY KEY (couple))
|
select couple from table_26375386_20 where vote_percentage = "5.8%"
|
how many end of term with age at inauguration being 64-066 64years, 66days
|
create table table_12134383_1 (end_of_term varchar, age_at_inauguration varchar, PRIMARY KEY (end_of_term))
|
select count(end_of_term) from table_12134383_1 where age_at_inauguration = "64-066 64years, 66days"
|
What is the barony of the Gurraghy townland?
|
create table table_30120547_1 (barony varchar, townland varchar, PRIMARY KEY (barony))
|
select barony from table_30120547_1 where townland = "gurraghy"
|
What are the country codes of countries where people use languages other than English?
|
create table countrylanguage (countrycode varchar, language varchar, PRIMARY KEY (countrycode))
|
select distinct countrycode from countrylanguage where language <> "english"
|
What is the HDI for 2011 in Tunisia?
|
create table table_2155836_1 (hdi__2011_ varchar, country varchar, PRIMARY KEY (hdi__2011_))
|
select hdi__2011_ from table_2155836_1 where country = "tunisia"
|
what ist he country where the loan club is fulham?
|
create table table_17596418_5 (country varchar, loan_club varchar, PRIMARY KEY (country))
|
select country from table_17596418_5 where loan_club = "fulham"
|
Who was the Class AA winner when Plains was Class A winner and Lubbock was Class AAAAA winner?
|
create table table_14603057_2 (class_aa varchar, class_a varchar, class_aaaaa varchar, lubbock varchar, PRIMARY KEY (class_aa))
|
select class_aa from table_14603057_2 where class_a = "plains" and class_aaaaa = lubbock
|
What was the original air date of the episode directed by frederick e. o. toye?
|
create table table_25923164_1 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
|
select original_air_date from table_25923164_1 where directed_by = "frederick e. o. toye"
|
Name the gt 2.0 winning team for sports 2.0 winning team for #16 trans ocean motors for castle rock
|
create table table_27561503_2 (gt_20_winning_team varchar, sports_20_winning_team varchar, circuit varchar, PRIMARY KEY (gt_20_winning_team))
|
select count(gt_20_winning_team) from table_27561503_2 where sports_20_winning_team = "#16 trans ocean motors" and circuit = "castle rock"
|
What was the group d winner for modena?
|
create table table_1137142_1 (group_d_winner varchar, group_b_winner varchar, PRIMARY KEY (group_d_winner))
|
select group_d_winner from table_1137142_1 where group_b_winner = "modena"
|
What was the manner of departure for notts county with an incoming manager of martin allen
|
create table table_26914759_3 (manner_of_departure varchar, team varchar, incoming_manager varchar, PRIMARY KEY (manner_of_departure))
|
select manner_of_departure from table_26914759_3 where team = "notts county" and incoming_manager = "martin allen"
|
Name the foochow for pingnan county
|
create table table_2013618_1 (foochow varchar, english_name varchar, PRIMARY KEY (foochow))
|
select foochow from table_2013618_1 where english_name = "pingnan county"
|
How many millions of U.S. viewers whatched episodes written by Krystal Houghton?
|
create table table_11411026_2 (us_viewers__millions_ varchar, written_by varchar, PRIMARY KEY (us_viewers__millions_))
|
select us_viewers__millions_ from table_11411026_2 where written_by = "krystal houghton"
|
How many event dates occurred when event details were women's sabre?
|
create table table_28003469_1 (event_date varchar, event_details varchar, PRIMARY KEY (event_date))
|
select count(event_date) from table_28003469_1 where event_details = "women's sabre"
|
what are all the hometown where the average age is 16
|
create table table_26267849_2 (hometown varchar, age_s_ varchar, PRIMARY KEY (hometown))
|
select hometown from table_26267849_2 where age_s_ = "16"
|
who was the performer that did last performance on 04/08/1963
|
create table table_19189856_1 (performer varchar, last_performance varchar, PRIMARY KEY (performer))
|
select performer from table_19189856_1 where last_performance = "04/08/1963"
|
In which country was the xiamen international marathon?
|
create table table_26166836_1 (country varchar, road_race varchar, PRIMARY KEY (country))
|
select country from table_26166836_1 where road_race = "xiamen international marathon"
|
what is the maximum norwegian americans (2000) where norwegian americans (1990) is 9170
|
create table table_1182314_5 (norwegian_americans__2000_ integer, norwegian_americans__1990_ varchar, PRIMARY KEY (norwegian_americans__2000_))
|
select max(norwegian_americans__2000_) from table_1182314_5 where norwegian_americans__1990_ = 9170
|
What are the terminals for line 2?
|
create table table_1603807_2 (terminals varchar, line varchar, PRIMARY KEY (terminals))
|
select terminals from table_1603807_2 where line = "line 2"
|
Name the avg start for avg finish being 24.2
|
create table table_2308381_1 (avg_start varchar, avg_finish varchar, PRIMARY KEY (avg_start))
|
select avg_start from table_2308381_1 where avg_finish = "24.2"
|
What is the traditional form for 宁陵县?
|
create table table_2135222_2 (traditional varchar, simplified varchar, PRIMARY KEY (traditional))
|
select traditional from table_2135222_2 where simplified = "宁陵县"
|
what is the number of registered female voters where the percentage is 108.6%
|
create table table_25042332_30 (enrolled_women varchar, e_vap_ratio_women varchar, PRIMARY KEY (enrolled_women))
|
select enrolled_women from table_25042332_30 where e_vap_ratio_women = "108.6%"
|
When Kubb is in 9th, who is in 10th?
|
create table table_17111812_1 (tenth varchar, ninth varchar, PRIMARY KEY (tenth))
|
select tenth from table_17111812_1 where ninth = "kubb"
|
Mention all the applicable team who are replaced by gianluca atzori
|
create table table_27114708_2 (team varchar, replaced_by varchar, PRIMARY KEY (team))
|
select team from table_27114708_2 where replaced_by = "gianluca atzori"
|
What is every candidate for the Cardiff Central constituency?
|
create table table_25818630_1 (candidate varchar, constituency varchar, PRIMARY KEY (candidate))
|
select candidate from table_25818630_1 where constituency = "cardiff central"
|
How many songs have a lead vocal?
|
create table vocals (songid varchar, PRIMARY KEY (songid)); create table songs (songid varchar, PRIMARY KEY (songid))
|
select count(distinct title) from vocals as t1 join songs as t2 on t1.songid = t2.songid where type = "lead"
|
What are the school years where class "AAA" is argyle?
|
create table table_14603212_5 (school_year varchar, class_aaa varchar, argyle varchar, PRIMARY KEY (school_year))
|
select school_year from table_14603212_5 where class_aaa = argyle
|
Which party is associated with the candidate Albert Sidney Camp (D) unopposed?
|
create table table_1342233_11 (party varchar, candidates varchar, PRIMARY KEY (party))
|
select count(party) from table_1342233_11 where candidates = "albert sidney camp (d) unopposed"
|
What are the titles of the books whose writer is not "Elaine Lee"?
|
create table book (title varchar, writer varchar, PRIMARY KEY (title))
|
select title from book where writer <> "elaine lee"
|
Name the state and federal when property taxes is 17,199,210
|
create table table_11608735_3 (state_ varchar, _federal varchar, property_taxes varchar, PRIMARY KEY (state_))
|
select state_ & _federal from table_11608735_3 where property_taxes = "17,199,210"
|
What is the party where the constituency is 10. Tindivanam?
|
create table table_22753245_1 (party varchar, constituency varchar, PRIMARY KEY (party))
|
select party from table_22753245_1 where constituency = "10. tindivanam"
|
What was the title of the episode that had 13.82 million U.S. viewers?
|
create table table_18102421_2 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title))
|
select title from table_18102421_2 where us_viewers__millions_ = "13.82"
|
What isthe minor (South) winners total number is the primary (South) winners is Mendip Gate?
|
create table table_23014923_1 (minor__south__winners varchar, primary__south__winners varchar, PRIMARY KEY (minor__south__winners))
|
select count(minor__south__winners) from table_23014923_1 where primary__south__winners = "mendip gate"
|
What is the score for match 1 for the team Eastern Tigers?
|
create table table_24538140_2 (match1 varchar, team varchar, PRIMARY KEY (match1))
|
select match1 from table_24538140_2 where team = "eastern tigers"
|
When brive is the proceed to quarter final how many were eliminated from competition?
|
create table table_27987767_3 (eliminated_from_competition varchar, proceed_to_quarter_final varchar, PRIMARY KEY (eliminated_from_competition))
|
select count(eliminated_from_competition) from table_27987767_3 where proceed_to_quarter_final = "brive"
|
What's the original title of The New Land?
|
create table table_20061872_1 (original_title varchar, film_title_used_in_nomination varchar, PRIMARY KEY (original_title))
|
select original_title from table_20061872_1 where film_title_used_in_nomination = "the new land"
|
What was the distance (in miles) of the championship were the winning horse was Koona?
|
create table table_27833186_1 (distance__miles_ varchar, horse_name varchar, PRIMARY KEY (distance__miles_))
|
select distance__miles_ from table_27833186_1 where horse_name = "koona"
|
Name the segment d for combination locks
|
create table table_15187735_3 (segment_d varchar, segment_a varchar, PRIMARY KEY (segment_d))
|
select segment_d from table_15187735_3 where segment_a = "combination locks"
|
What year featured the film tsotsi?
|
create table table_13700749_1 (year__ceremony_ varchar, film_title varchar, PRIMARY KEY (year__ceremony_))
|
select year__ceremony_ from table_13700749_1 where film_title = "tsotsi"
|
Which channel had the game against the Minnesota Vikings?
|
create table table_11465521_2 (tv varchar, opponent varchar, PRIMARY KEY (tv))
|
select tv from table_11465521_2 where opponent = "minnesota vikings"
|
What are the years of TeBe career for the players whose league matches are exactly 163?
|
create table table_28730459_3 (tebe_career varchar, league_matches varchar, PRIMARY KEY (tebe_career))
|
select tebe_career from table_28730459_3 where league_matches = 163
|
Which archbishop was ordained as bishop November 30, 1925?
|
create table table_1656555_1 (archbishop varchar, ordained_bishop varchar, PRIMARY KEY (archbishop))
|
select archbishop from table_1656555_1 where ordained_bishop = "november 30, 1925"
|
What is every example for the equivalent of NTE160?
|
create table table_30011_2 (example varchar, equivalent varchar, PRIMARY KEY (example))
|
select example from table_30011_2 where equivalent = "nte160"
|
Which city is the address of the store named "FJA Filming" located in?
|
create table addresses (city_town varchar, address_id varchar, PRIMARY KEY (city_town)); create table stores (address_id varchar, store_name varchar, PRIMARY KEY (address_id))
|
select t1.city_town from addresses as t1 join stores as t2 on t1.address_id = t2.address_id where t2.store_name = "fja filming"
|
WHat is the highest difference?
|
create table table_26677836_1 (difference integer, PRIMARY KEY (difference))
|
select max(difference) from table_26677836_1
|
What is the description of the license for GNU GPL v2 or Ruby license?
|
create table table_25474825_1 (description varchar, license varchar, PRIMARY KEY (description))
|
select description from table_25474825_1 where license = "gnu gpl v2 or ruby license"
|
What is the chromosomal location of il-1β?
|
create table table_29871617_1 (chromosomal_location varchar, name varchar, PRIMARY KEY (chromosomal_location))
|
select chromosomal_location from table_29871617_1 where name = "il-1β"
|
How many tasks does each project have? List the task count and the project detail.
|
create table projects (project_details varchar, project_id varchar, PRIMARY KEY (project_details)); create table tasks (project_id varchar, PRIMARY KEY (project_id))
|
select count(*), t1.project_details from projects as t1 join tasks as t2 on t1.project_id = t2.project_id group by t1.project_id
|
Name the language for fox business network
|
create table table_15887683_8 (language varchar, television_service varchar, PRIMARY KEY (language))
|
select language from table_15887683_8 where television_service = "fox business network"
|
who is the the candidates with incumbent being james o'connor
|
create table table_1342393_17 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
|
select candidates from table_1342393_17 where incumbent = "james o'connor"
|
What were the requirements for the role played by Robert Austin in the original production?
|
create table table_17827271_1 (actor_required varchar, actor_in_original_production varchar, PRIMARY KEY (actor_required))
|
select actor_required from table_17827271_1 where actor_in_original_production = "robert austin"
|
Where the exports is 13,608.65, what is the total trade?
|
create table table_26160007_1 (total_trade varchar, exports varchar, PRIMARY KEY (total_trade))
|
select total_trade from table_26160007_1 where exports = "13,608.65"
|
Name the written by for john trefor
|
create table table_2430014_6 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by))
|
select written_by from table_2430014_6 where directed_by = "john trefor"
|
For each user, find their name and the number of reviews written by them.
|
create table useracct (name varchar, u_id varchar, PRIMARY KEY (name)); create table review (u_id varchar, PRIMARY KEY (u_id))
|
select t1.name, count(*) from useracct as t1 join review as t2 on t1.u_id = t2.u_id group by t2.u_id
|
Show the years in which orchestras that have given more than one performance are founded.
|
create table performance (orchestra_id varchar, PRIMARY KEY (orchestra_id)); create table orchestra (orchestra_id varchar, PRIMARY KEY (orchestra_id))
|
select year_of_founded from orchestra as t1 join performance as t2 on t1.orchestra_id = t2.orchestra_id group by t2.orchestra_id having count(*) > 1
|
How many points in 87/88 for racing de córdoba?
|
create table table_14460085_3 (team varchar, PRIMARY KEY (team))
|
select 1987 as _88 from table_14460085_3 where team = "racing de córdoba"
|
What is the average squad age of the team whose shirt sponsor is Sho'rtan Gaz Mahsulot and whose kit manufacturer is Adidas?
|
create table table_25527255_2 (average_squad_age varchar, shirt_sponsor varchar, kit_manufacturer varchar, PRIMARY KEY (average_squad_age))
|
select average_squad_age from table_25527255_2 where shirt_sponsor = "sho'rtan gaz mahsulot" and kit_manufacturer = "adidas"
|
How many lessons taught by staff whose first name has letter 'a' in it?
|
create table lessons (staff_id varchar, PRIMARY KEY (staff_id)); create table staff (staff_id varchar, first_name varchar, PRIMARY KEY (staff_id))
|
select count(*) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name like "%a%"
|
How many weeks was K.Maro at #1?
|
create table table_27441210_12 (weeks_at__number1 integer, artist varchar, PRIMARY KEY (weeks_at__number1))
|
select max(weeks_at__number1) from table_27441210_12 where artist = "k.maro"
|
What is Haydon when Larter is 11 and Libweshya is 4?
|
create table table_11447995_2 (haydon varchar, larter varchar, libweshya varchar, PRIMARY KEY (haydon))
|
select haydon from table_11447995_2 where larter = "11" and libweshya = "4"
|
List all the login names and family names of course author and tutors.
|
create table course_authors_and_tutors (login_name varchar, family_name varchar, PRIMARY KEY (login_name))
|
select login_name, family_name from course_authors_and_tutors
|
Find the name and nationality of the swimmer who has won (i.e., has a result of "win") more than 1 time.
|
create table record (swimmer_id varchar, PRIMARY KEY (swimmer_id)); create table swimmer (name varchar, nationality varchar, id varchar, PRIMARY KEY (name))
|
select t1.name, t1.nationality from swimmer as t1 join record as t2 on t1.id = t2.swimmer_id where result = 'win' group by t2.swimmer_id having count(*) > 1
|
Find the names of all instructors in the Art department who have taught some course and the course_id.
|
create table instructor (id varchar, dept_name varchar, PRIMARY KEY (id)); create table teaches (id varchar, PRIMARY KEY (id))
|
select name, course_id from instructor as t1 join teaches as t2 on t1.id = t2.id where t1.dept_name = 'art'
|
What's the name of the central bank in the country where Colombian Peso (cop) is the local currency?
|
create table table_1222653_10 (central_bank varchar, currency varchar, PRIMARY KEY (central_bank))
|
select central_bank from table_1222653_10 where currency = "colombian peso (cop)"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.