question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Show teams that have suffered more than three eliminations. | create table elimination (team varchar, PRIMARY KEY (team)) | select team from elimination group by team having count(*) > 3 |
What are the colors of Howard Hall? | create table table_15873547_1 (colors varchar, residence_hall varchar, PRIMARY KEY (colors)) | select colors from table_15873547_1 where residence_hall = "howard hall" |
How many cook island league competitions were there? | create table table_25735_1 (latest_year varchar, competition varchar, PRIMARY KEY (latest_year)) | select count(latest_year) from table_25735_1 where competition = "cook island league" |
Who was the writer in the episode directed by Jesse Peretz? | create table table_26961951_6 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by)) | select written_by from table_26961951_6 where directed_by = "jesse peretz" |
What is the callsign when power kw is 25kw? | create table table_23915973_1 (callsign varchar, power_kw varchar, PRIMARY KEY (callsign)) | select callsign from table_23915973_1 where power_kw = "25kw" |
Name the total number of date of vacancy for manner of departure being resigned and outgoing manager is geninho | create table table_14406743_5 (date_of_vacancy varchar, manner_of_departure varchar, outgoing_manager varchar, PRIMARY KEY (date_of_vacancy)) | select count(date_of_vacancy) from table_14406743_5 where manner_of_departure = "resigned" and outgoing_manager = "geninho" |
what are all the open 1st viii with u15 6th iv being bgs | create table table_11318462_5 (open_1st_viii varchar, u15_6th_iv varchar, PRIMARY KEY (open_1st_viii)) | select open_1st_viii from table_11318462_5 where u15_6th_iv = "bgs" |
Which school is in the hometown of Aledo, Texas? | create table table_11677691_5 (school varchar, hometown varchar, PRIMARY KEY (school)) | select school from table_11677691_5 where hometown = "aledo, texas" |
How many 'number of season in Liga MX' were played if the 'first season of current spell in top division' is in 1962-63? | create table table_18143210_2 (number_of_seasons_in_liga_mx varchar, first_season_of_current_spell_in_top_division varchar, PRIMARY KEY (number_of_seasons_in_liga_mx)) | select number_of_seasons_in_liga_mx from table_18143210_2 where first_season_of_current_spell_in_top_division = "1962-63" |
Who was the womens double winner when the womens singles winner was Ding Ning? | create table table_28138035_32 (womens_doubles varchar, womens_singles varchar, PRIMARY KEY (womens_doubles)) | select womens_doubles from table_28138035_32 where womens_singles = "ding ning" |
What is the name of the episodes which had 1.22 million U.S. viewers? | create table table_23399481_4 (title varchar, us_viewers__in_millions_ varchar, PRIMARY KEY (title)) | select title from table_23399481_4 where us_viewers__in_millions_ = "1.22" |
Name the best actor for uncle boonmee who can recall his past lives | create table table_15301258_1 (best_actor varchar, best_film varchar, PRIMARY KEY (best_actor)) | select best_actor from table_15301258_1 where best_film = "uncle boonmee who can recall his past lives" |
Who was the heir when the monarch was Wareru? | create table table_26460435_5 (heir varchar, monarch varchar, PRIMARY KEY (heir)) | select heir from table_26460435_5 where monarch = "wareru" |
What is 2003 when 1999 is 2.1? | create table table_27146868_1 (id varchar, PRIMARY KEY (id)) | select 2003 from table_27146868_1 where 1999 = "2.1" |
List the count and id of each product in all the orders. | create table orders (order_id varchar, PRIMARY KEY (order_id)); create table order_items (order_id varchar, product_id varchar, PRIMARY KEY (order_id)); create table products (product_id varchar, PRIMARY KEY (product_id)) | select count(*), t3.product_id 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 location of the church for bremanger | create table table_178408_1 (location_of_the_church varchar, sub_parish__sokn_ varchar, PRIMARY KEY (location_of_the_church)) | select location_of_the_church from table_178408_1 where sub_parish__sokn_ = "bremanger" |
How many employees do we have? | create table employee (id varchar, PRIMARY KEY (id)) | select count(*) from employee |
Name the womens doubles when mens doubles is theodoros velkos giorgos patis | create table table_14903881_1 (womens_doubles varchar, mens_doubles varchar, PRIMARY KEY (womens_doubles)) | select womens_doubles from table_14903881_1 where mens_doubles = "theodoros velkos giorgos patis" |
What are the names of parties with at least 2 events? | create table party (party_name varchar, party_id varchar, PRIMARY KEY (party_name)); create table party_events (party_id varchar, PRIMARY KEY (party_id)) | select t2.party_name from party_events as t1 join party as t2 on t1.party_id = t2.party_id group by t1.party_id having count(*) >= 2 |
what are all the barrel lengths whith the name ar-15a3 competition hbar | create table table_12834315_2 (barrel_length varchar, name varchar, PRIMARY KEY (barrel_length)) | select barrel_length from table_12834315_2 where name = "ar-15a3 competition hbar" |
How many different constructors had Paul Thiel as a winning driver? | create table table_1140114_5 (constructor varchar, winning_driver varchar, PRIMARY KEY (constructor)) | select count(constructor) from table_1140114_5 where winning_driver = "paul thiel" |
Name the party a for sriperumbudur | create table table_22754310_1 (party varchar, constituency varchar, PRIMARY KEY (party)) | select party as a from table_22754310_1 where constituency = "sriperumbudur" |
Who is the 125cc winnder for the Phillip Island circuit? | create table table_12186237_1 (circuit varchar, PRIMARY KEY (circuit)) | select 125 as cc_winner from table_12186237_1 where circuit = "phillip island" |
What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings? | create table table_22282917_26 (control_site_condition_owner varchar, launch_site_condition_owner varchar, PRIMARY KEY (control_site_condition_owner)) | select control_site_condition_owner from table_22282917_26 where launch_site_condition_owner = "lakefront office buildings" |
Show party names and the number of events for each party. | create table party (party_name varchar, party_id varchar, PRIMARY KEY (party_name)); create table party_events (party_id varchar, PRIMARY KEY (party_id)) | select t2.party_name, count(*) from party_events as t1 join party as t2 on t1.party_id = t2.party_id group by t1.party_id |
Find all details for each swimmer. | create table swimmer (id varchar, PRIMARY KEY (id)) | select * from swimmer |
How many transfer windows coming from Crystal Palace? | create table table_17596418_4 (count varchar, moving_from varchar, PRIMARY KEY (count)) | select count as transfer_window from table_17596418_4 where moving_from = "crystal palace" |
How many nations do the FMS international team represent? | create table table_19312274_3 (nation varchar, name varchar, PRIMARY KEY (nation)) | select count(nation) from table_19312274_3 where name = "fms international" |
Which vacancy occurred on 16 February 2009? | create table table_18788823_5 (position_in_table varchar, date_of_vacancy varchar, PRIMARY KEY (position_in_table)) | select position_in_table from table_18788823_5 where date_of_vacancy = "16 february 2009" |
When 1 active, 1 inactive is the canadian chapters how many founding dates are there? | create table table_28436909_4 (founding_date varchar, canadian_chapters varchar, PRIMARY KEY (founding_date)) | select count(founding_date) from table_28436909_4 where canadian_chapters = "1 active, 1 inactive" |
What was the record when the game was played at Cleveland Municipal Stadium? | create table table_14984078_1 (record varchar, game_site varchar, PRIMARY KEY (record)) | select record from table_14984078_1 where game_site = "cleveland municipal stadium" |
Name the high points for record 9-4 | create table table_22654073_6 (high_points varchar, record varchar, PRIMARY KEY (high_points)) | select high_points from table_22654073_6 where record = "9-4" |
What is the largest number of 10 C points for a team with 39 total points? | create table table_25887826_17 (total_pts varchar, PRIMARY KEY (total_pts)) | select max(10 as _c_pts) from table_25887826_17 where total_pts = 39 |
What is the home team that played on M.C.G. grounds? | create table table_16388398_2 (home_team varchar, ground varchar, PRIMARY KEY (home_team)) | select home_team from table_16388398_2 where ground = "m.c.g." |
for the shows featuring beet sugar, what was on before that | create table table_15187735_17 (segment_b varchar, segment_c varchar, PRIMARY KEY (segment_b)) | select segment_b from table_15187735_17 where segment_c = "beet sugar" |
when mixed doubles is zheng bo ma jin and womens singles is wang yihan, what was the tour? | create table table_21001903_2 (tour varchar, mixed_doubles varchar, womens_singles varchar, PRIMARY KEY (tour)) | select tour from table_21001903_2 where mixed_doubles = "zheng bo ma jin" and womens_singles = "wang yihan" |
When vp8 ( webm ) is 6.0, how much is the vp9 ( webm )? | create table table_26099252_1 (vp9___webm__ varchar, vp8___webm__ varchar, PRIMARY KEY (vp9___webm__)) | select vp9___webm__ from table_26099252_1 where vp8___webm__ = "6.0" |
where democratic coalition is eduardo frei ( pdc ) what are all the alliance | create table table_2651755_2 (alliance varchar, democratic_coalition varchar, PRIMARY KEY (alliance)) | select alliance from table_2651755_2 where democratic_coalition = "eduardo frei ( pdc )" |
What were the points per game in the selection where the rebounds per game were 15.0? | create table table_25774493_3 (points_per_game varchar, rebounds_per_game varchar, PRIMARY KEY (points_per_game)) | select points_per_game from table_25774493_3 where rebounds_per_game = "15.0" |
For part 2 *lauk, what is listed for part 4? | create table table_1745843_2 (part_4 varchar, part_2 varchar, PRIMARY KEY (part_4)) | select part_4 from table_1745843_2 where part_2 = "*lauk" |
What is the title in Canada? | create table table_29487895_2 (title_in_country varchar, country___region varchar, PRIMARY KEY (title_in_country)) | select title_in_country from table_29487895_2 where country___region = "canada" |
List the council tax ids and their related cmi cross references of all the parking fines. | create table parking_fines (council_tax_id varchar, cmi_cross_ref_id varchar, PRIMARY KEY (council_tax_id)) | select council_tax_id, cmi_cross_ref_id from parking_fines |
How many schools are in the basketball match? | create table basketball_match (school_id varchar, PRIMARY KEY (school_id)) | select count(distinct school_id) from basketball_match |
What season had 2.52 million viewers? | create table table_2170969_2 (tv_season varchar, viewers_in_millions varchar, PRIMARY KEY (tv_season)) | select tv_season from table_2170969_2 where viewers_in_millions = "2.52" |
Where is the school with nickname Tigers located? | create table table_1973842_2 (location varchar, nickname varchar, PRIMARY KEY (location)) | select location from table_1973842_2 where nickname = "tigers" |
Name the dominant religion for станишић | create table table_2562572_22 (dominant_religion__2002_ varchar, cyrillic_name_other_names varchar, PRIMARY KEY (dominant_religion__2002_)) | select dominant_religion__2002_ from table_2562572_22 where cyrillic_name_other_names = "станишић" |
Show the different statuses and the numbers of roller coasters for each status. | create table roller_coaster (status varchar, PRIMARY KEY (status)) | select status, count(*) from roller_coaster group by status |
List the song chose for the British Invasion. | create table table_23871828_1 (song_choice varchar, theme varchar, PRIMARY KEY (song_choice)) | select song_choice from table_23871828_1 where theme = "british invasion" |
What was the type of sussex? | create table table_1184344_1 (type varchar, name varchar, PRIMARY KEY (type)) | select type from table_1184344_1 where name = "sussex" |
when type of work is novel and published in english is 1977, what was published in russian? | create table table_207795_1 (published_in_russian varchar, type_of_work varchar, published_in_english varchar, PRIMARY KEY (published_in_russian)) | select published_in_russian from table_207795_1 where type_of_work = "novel" and published_in_english = "1977" |
What was the domestic box office for the film that had a foreign box office of $26,600,000? | create table table_2203760_4 (domestic_box_office varchar, foreign_box_office varchar, PRIMARY KEY (domestic_box_office)) | select domestic_box_office from table_2203760_4 where foreign_box_office = "$26,600,000" |
What year were outputs is 2x pro bias, rca loop out and notes is vacuum tube released? | create table table_25276250_3 (release_year varchar, outputs varchar, notes varchar, PRIMARY KEY (release_year)) | select release_year from table_25276250_3 where outputs = "2x pro bias, rca loop out" and notes = "vacuum tube" |
Who was the runner up for the Nagapattinam constituency? | create table table_22756549_1 (runner_up_a varchar, constituency varchar, PRIMARY KEY (runner_up_a)) | select runner_up_a from table_22756549_1 where constituency = "nagapattinam" |
What is the pinyin for the English name Wuping County? | create table table_1204998_2 (pinyin varchar, english_name varchar, PRIMARY KEY (pinyin)) | select pinyin from table_1204998_2 where english_name = "wuping county" |
What's the 2nd leg result in the round where Panionios is team #2? | create table table_19130829_4 (team__number2 varchar, PRIMARY KEY (team__number2)) | select 2 as nd_leg from table_19130829_4 where team__number2 = "panionios" |
When arthur heinemann is the writer who is the director? | create table table_1854728_2 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by)) | select directed_by from table_1854728_2 where written_by = "arthur heinemann" |
how many times was nation counted where athlete is shuhei nishida category:articles with hcards | create table table_22355_50 (nation varchar, athlete varchar, PRIMARY KEY (nation)) | select count(nation) from table_22355_50 where athlete = "shuhei nishida category:articles with hcards" |
What is the score in the 2 truck pull of the player who got 1 (5 in 33.84s) in the 4 fingals fingers? | create table table_24302700_6 (event_2_truck_pull varchar, event_4_fingals_fingers varchar, PRIMARY KEY (event_2_truck_pull)) | select event_2_truck_pull from table_24302700_6 where event_4_fingals_fingers = "1 (5 in 33.84s)" |
Find the name and email of the user whose name contains the word ‘Swift’. | create table user_profiles (name varchar, email varchar, PRIMARY KEY (name)) | select name, email from user_profiles where name like '%swift%' |
List all every engineer's first name, last name, details and coresponding skill description. | create table maintenance_engineers (first_name varchar, last_name varchar, other_details varchar, engineer_id varchar, PRIMARY KEY (first_name)); create table engineer_skills (engineer_id varchar, skill_id varchar, PRIMARY KEY (engineer_id)); create table skills (skill_description varchar, skill_id varchar, PRIMARY KEY (skill_description)) | select t1.first_name, t1.last_name, t1.other_details, t3.skill_description from maintenance_engineers as t1 join engineer_skills as t2 on t1.engineer_id = t2.engineer_id join skills as t3 on t2.skill_id = t3.skill_id |
How many patients stay in room 112? | create table stay (patient varchar, room varchar, PRIMARY KEY (patient)) | select count(patient) from stay where room = 112 |
Is drawing tablet support part of the semi-DDM class? | create table table_1153898_1 (semi_ddm_class varchar, comparisons varchar, PRIMARY KEY (semi_ddm_class)) | select semi_ddm_class from table_1153898_1 where comparisons = "drawing tablet support" |
For teams in the Sun Belt conference, what is the conference record? | create table table_16295365_1 (conf_record varchar, conference varchar, PRIMARY KEY (conf_record)) | select conf_record from table_16295365_1 where conference = "sun belt" |
List the title of all Cartoons showed on TV Channel with series name "Sky Radio". | create table cartoon (title varchar, channel varchar, PRIMARY KEY (title)); create table tv_channel (id varchar, series_name varchar, PRIMARY KEY (id)) | select t2.title from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t1.series_name = "sky radio" |
What is the nationality of the player who played during the years 1989-92; 1994-95? | create table table_11545282_5 (nationality varchar, years_for_jazz varchar, PRIMARY KEY (nationality)) | select nationality from table_11545282_5 where years_for_jazz = "1989-92; 1994-95" |
Who was the director for Tango Bar? | create table table_27423508_1 (director varchar, spanish_title varchar, PRIMARY KEY (director)) | select director from table_27423508_1 where spanish_title = "tango bar" |
List the record from the game where Wildcats had 48 points. | create table table_24561550_1 (record varchar, wildcats_points varchar, PRIMARY KEY (record)) | select record from table_24561550_1 where wildcats_points = 48 |
When dwhr-tv is the call sign how many station types are there? | create table table_23394920_1 (station_type varchar, callsign varchar, PRIMARY KEY (station_type)) | select count(station_type) from table_23394920_1 where callsign = "dwhr-tv" |
What was the original air date of the episode that was directed by Jessica Landaw? | create table table_26824484_1 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_26824484_1 where directed_by = "jessica landaw" |
What title did Bill Foster direct ? | create table table_25276528_2 (title varchar, directed_by varchar, PRIMARY KEY (title)) | select title from table_25276528_2 where directed_by = "bill foster" |
List the population density per kilometer for the city of abra de ilog. | create table table_261951_1 (pop_density__per_km²_ varchar, municipality varchar, PRIMARY KEY (pop_density__per_km²_)) | select pop_density__per_km²_ from table_261951_1 where municipality = "abra de ilog" |
How many products have the characteristic named "hot"? | create table products (product_id varchar, PRIMARY KEY (product_id)); create table characteristics (characteristic_id varchar, characteristic_name varchar, PRIMARY KEY (characteristic_id)); create table product_characteristics (product_id varchar, characteristic_id varchar, PRIMARY KEY (product_id)) | select count(*) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t3.characteristic_name = "hot" |
Who wrote the episodes that had a viewership of 7.14? | create table table_24910737_1 (written_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (written_by)) | select written_by from table_24910737_1 where us_viewers__millions_ = "7.14" |
Name the college for houston oilers | create table table_2508633_6 (college varchar, nfl_team varchar, PRIMARY KEY (college)) | select college from table_2508633_6 where nfl_team = "houston oilers" |
How many video games exist? | create table video_games (id varchar, PRIMARY KEY (id)) | select count(*) from video_games |
Who was on Jason's team for the 12 June 2009 episode? | create table table_23292220_8 (jasons_team varchar, first_broadcast varchar, PRIMARY KEY (jasons_team)) | select jasons_team from table_23292220_8 where first_broadcast = "12 june 2009" |
What is the title of season 3 ep# 12? | create table table_12451376_3 (title varchar, season_3_ep__number varchar, PRIMARY KEY (title)) | select title from table_12451376_3 where season_3_ep__number = 12 |
what is the united fc wehre pifa colaba is maratha united? | create table table_28759261_5 (united_fc varchar, pifa_colaba_fc_u_17 varchar, PRIMARY KEY (united_fc)) | select united_fc from table_28759261_5 where pifa_colaba_fc_u_17 = "maratha united" |
How many different titles does the representative whose mission was terminated on August 5, 1984 have? | create table table_20065425_1 (title varchar, termination_of_mission varchar, PRIMARY KEY (title)) | select count(title) from table_20065425_1 where termination_of_mission = "august 5, 1984" |
Show student ids for all male students. | create table student (stuid varchar, sex varchar, PRIMARY KEY (stuid)) | select stuid from student where sex = 'm' |
Find the id and color description of the products with at least 2 characteristics. | create table product_characteristics (product_id varchar, PRIMARY KEY (product_id)); create table ref_colors (color_description varchar, color_code varchar, PRIMARY KEY (color_description)); create table products (product_id varchar, color_code varchar, PRIMARY KEY (product_id)) | select t1.product_id, t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code join product_characteristics as t3 on t1.product_id = t3.product_id group by t1.product_id having count(*) >= 2 |
What pick was the player from Apopka, FL in the 2002 MLB draft | create table table_11677100_8 (mlb_draft varchar, hometown varchar, PRIMARY KEY (mlb_draft)) | select mlb_draft from table_11677100_8 where hometown = "apopka, fl" |
Show the number of trains | create table train (id varchar, PRIMARY KEY (id)) | select count(*) from train |
What contestant was premiered on July 25? | create table table_18513028_3 (contestant_name varchar, date_premiered__2009_ varchar, PRIMARY KEY (contestant_name)) | select contestant_name from table_18513028_3 where date_premiered__2009_ = "july 25" |
Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)? | create table table_2362486_1 (opponents_in_the_final varchar, score_in_the_final varchar, PRIMARY KEY (opponents_in_the_final)) | select opponents_in_the_final from table_2362486_1 where score_in_the_final = "6–4, 2–6, 6–4, 7–6(3)" |
Who is the mixed doubled on the tour korea super series? | create table table_27753492_2 (mixed_doubles varchar, tour varchar, PRIMARY KEY (mixed_doubles)) | select mixed_doubles from table_27753492_2 where tour = "korea super series" |
Find the subject ID, subject name, and the corresponding number of available courses for each subject. | create table courses (subject_id varchar, PRIMARY KEY (subject_id)); create table subjects (subject_name varchar, subject_id varchar, PRIMARY KEY (subject_name)) | select t1.subject_id, t2.subject_name, count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id |
What is the description of the claim status "Open"? | create table claims_processing_stages (claim_status_description varchar, claim_status_name varchar, PRIMARY KEY (claim_status_description)) | select claim_status_description from claims_processing_stages where claim_status_name = "open" |
What is the EU status of ESP? | create table table_13770460_3 (eu varchar, country varchar, PRIMARY KEY (eu)) | select eu from table_13770460_3 where country = "esp" |
if the economy is 3.63 what is the bbi | create table table_28798161_3 (bbi varchar, economy varchar, PRIMARY KEY (bbi)) | select bbi from table_28798161_3 where economy = "3.63" |
What party is incumbent Oliver H. Cross? | create table table_1342331_43 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1342331_43 where incumbent = "oliver h. cross" |
what is the maximum value for afc cup | create table table_14460937_2 (afc_cup integer, PRIMARY KEY (afc_cup)) | select max(afc_cup) from table_14460937_2 |
What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? | create table enzyme (name varchar, location varchar, product varchar, id varchar, PRIMARY KEY (name)); create table medicine_enzyme_interaction (enzyme_id varchar, interaction_type varchar, PRIMARY KEY (enzyme_id)) | select distinct t1.name, t1.location, t1.product from enzyme as t1 join medicine_enzyme_interaction as t2 on t2.enzyme_id = t1.id where t2.interaction_type = 'inhibitor' |
How many different kinds of clients are supported by the web clients accelerators? | create table web_client_accelerator (client varchar, PRIMARY KEY (client)) | select count(distinct client) from web_client_accelerator |
Find the total amount of loans offered by each bank branch. | create table loan (branch_id varchar, PRIMARY KEY (branch_id)); create table bank (bname varchar, branch_id varchar, PRIMARY KEY (bname)) | select sum(amount), t1.bname from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id group by t1.bname |
What year was USF founded? | create table table_1160660_1 (date_founded varchar, acronym varchar, PRIMARY KEY (date_founded)) | select date_founded from table_1160660_1 where acronym = "usf" |
How many stadiums does each country have? | create table stadium (country varchar, PRIMARY KEY (country)) | select country, count(*) from stadium group by country |
What was the high points when the team was Washington? | create table table_27755603_10 (high_points varchar, team varchar, PRIMARY KEY (high_points)) | select high_points from table_27755603_10 where team = "washington" |
List the first and last name of all players who are left / L hand in the order of birth date. | create table players (first_name varchar, last_name varchar, hand varchar, birth_date varchar, PRIMARY KEY (first_name)) | select first_name, last_name from players where hand = 'l' order by birth_date |
Show all the locations where some cinemas were opened in both year 2010 and year 2011. | create table cinema (location varchar, openning_year varchar, PRIMARY KEY (location)) | select location from cinema where openning_year = 2010 intersect select location from cinema where openning_year = 2011 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.