question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
What is the original air date that had the wykeham wonderers as team 1? | create table table_18733480_1 (air_date varchar, team_1 varchar, PRIMARY KEY (air_date)) | select air_date from table_18733480_1 where team_1 = "wykeham wonderers" |
How many different actors from the Second national tour year 2 played the character played by Oliver Tompsett from the original West End cast? | create table table_19529639_3 (second_national_tour_year_2 varchar, original_west_end_cast varchar, PRIMARY KEY (second_national_tour_year_2)) | select count(second_national_tour_year_2) from table_19529639_3 where original_west_end_cast = "oliver tompsett" |
Which school has the smallest amount of professors? | create table department (school_code varchar, dept_code varchar, PRIMARY KEY (school_code)); create table professor (dept_code varchar, PRIMARY KEY (dept_code)) | select t1.school_code from department as t1 join professor as t2 on t1.dept_code = t2.dept_code group by t1.school_code order by count(*) limit 1 |
What state has a semifinal average of 8.538 (8) ? | create table table_16268026_3 (state varchar, semifinal_average varchar, PRIMARY KEY (state)) | select state from table_16268026_3 where semifinal_average = "8.538 (8)" |
How many airports haven't the pilot 'Thompson' driven an aircraft? | create table airport (id varchar, airport_id varchar, pilot varchar, PRIMARY KEY (id)); create table flight (id varchar, airport_id varchar, pilot varchar, PRIMARY KEY (id)) | select count(*) from airport where not id in (select airport_id from flight where pilot = 'thompson') |
Does the Scout Association of Hong Kong admit boys, girls, or both? | create table table_104858_1 (admits_boys_girls varchar, name_of_member_organization varchar, PRIMARY KEY (admits_boys_girls)) | select admits_boys_girls from table_104858_1 where name_of_member_organization = "the scout association of hong kong" |
If Tuesday 1 June is 21' 05.27 107.351mph, what is the rider total number? | create table table_25220821_3 (rider varchar, tues_1_june varchar, PRIMARY KEY (rider)) | select count(rider) from table_25220821_3 where tues_1_june = "21' 05.27 107.351mph" |
How many 3rd runner up values does Turkey have? | create table table_30007801_1 (country_territory varchar, PRIMARY KEY (country_territory)) | select count(3 as rd_runner_up) from table_30007801_1 where country_territory = "turkey" |
What are the life spans of representatives from New York state or Indiana state? | create table representative (lifespan varchar, state varchar, PRIMARY KEY (lifespan)) | select lifespan from representative where state = "new york" or state = "indiana" |
How many route/via's are there for the ernad express? | create table table_29770377_1 (route_via varchar, train_name varchar, PRIMARY KEY (route_via)) | select count(route_via) from table_29770377_1 where train_name = "ernad express" |
What party is listed for the Representative under the 85th congress? | create table table_2841865_2 (party varchar, congress varchar, PRIMARY KEY (party)) | select party from table_2841865_2 where congress = "85th" |
How many first place participants where from croatia? | create table table_30018460_1 (country_territory varchar, PRIMARY KEY (country_territory)) | select 3 as rd_runner_up from table_30018460_1 where country_territory = "croatia" |
What is the number of cities/municipalities having an urban settlement of Srbobran? | create table table_2562572_2 (city___municipality varchar, urban_settlement varchar, PRIMARY KEY (city___municipality)) | select count(city___municipality) from table_2562572_2 where urban_settlement = "srbobran" |
What is every surface with a score in the final of 6–4, 6–7 (1–7) , 6–7 (4–7) , 4–6? | create table table_23235767_1 (surface varchar, score_in_the_final varchar, PRIMARY KEY (surface)) | select surface from table_23235767_1 where score_in_the_final = "6–4, 6–7 (1–7) , 6–7 (4–7) , 4–6" |
Name the total number of original titles written by john sullivan and keith lindsay | create table table_17641206_6 (original_title varchar, written_by varchar, PRIMARY KEY (original_title)) | select count(original_title) from table_17641206_6 where written_by = "john sullivan and keith lindsay" |
Which film actor (actress) starred the most films? List his or her first name, last name and actor id. | create table film_actor (actor_id varchar, PRIMARY KEY (actor_id)); create table actor (first_name varchar, last_name varchar, actor_id varchar, PRIMARY KEY (first_name)) | select t2.first_name, t2.last_name, t2.actor_id from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1 |
How many press jury points did the song by Frank Aleksandersen get? | create table table_20183474_1 (press_jury integer, artist varchar, PRIMARY KEY (press_jury)) | select min(press_jury) from table_20183474_1 where artist = "frank aleksandersen" |
What are all the order #s from the week "top 6"? | create table table_29756040_1 (order__number varchar, week__number varchar, PRIMARY KEY (order__number)) | select order__number from table_29756040_1 where week__number = "top 6" |
When saif saaeed shaheen ( qat ) is the saif saaeed shaheen ( qat ) what is the date on September 3rd, 2004? | create table table_23988726_2 (id varchar, PRIMARY KEY (id)) | select 3 as _september_2004 from table_23988726_2 where "saif_saaeed_shaheen___qat__" = "saif_saaeed_shaheen___qat__" |
What is the name of the staff that is in charge of the attraction named "US museum"? | create table tourist_attractions (tourist_attraction_id varchar, name varchar, PRIMARY KEY (tourist_attraction_id)); create table staff (name varchar, tourist_attraction_id varchar, PRIMARY KEY (name)) | select t1.name from staff as t1 join tourist_attractions as t2 on t1.tourist_attraction_id = t2.tourist_attraction_id where t2.name = "us museum" |
Name the studio for super callanetics | create table table_27303975_2 (studio varchar, title varchar, PRIMARY KEY (studio)) | select studio from table_27303975_2 where title = "super callanetics" |
What was the maximum altitude for Neil Armstrong? | create table table_221315_3 (max_altitude__miles_ varchar, pilot varchar, PRIMARY KEY (max_altitude__miles_)) | select max_altitude__miles_ from table_221315_3 where pilot = "neil armstrong" |
Who was the defensive award winner when the rookie award was given to Daryl Veltman and the offensive award was given to Mark Steenhuis? | create table table_14132239_3 (defensive varchar, rookie varchar, offensive varchar, PRIMARY KEY (defensive)) | select defensive from table_14132239_3 where rookie = "daryl veltman" and offensive = "mark steenhuis" |
List the countries having more than 4 addresses listed. | create table addresses (country varchar, address_id varchar, PRIMARY KEY (country)) | select country from addresses group by country having count(address_id) > 4 |
If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose? | create table table_18427769_1 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_18427769_1 where directed_by = "di drew" |
Find the number of items that did not receive any review. | create table review (i_id varchar, PRIMARY KEY (i_id)); create table item (i_id varchar, PRIMARY KEY (i_id)) | select count(*) from item where not i_id in (select i_id from review) |
Name the high rebounds for td garden 18,624 | create table table_22871239_9 (high_rebounds varchar, arena_attendance varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_22871239_9 where arena_attendance = "td garden 18,624" |
What was the enrollment (2005) for baccalaureate colleges , for Granite State College? | create table table_2076490_1 (enrollment__2005_ varchar, type varchar, school varchar, PRIMARY KEY (enrollment__2005_)) | select enrollment__2005_ from table_2076490_1 where type = "baccalaureate college" and school = "granite state college" |
Name the lms number for serial number being 372 | create table table_20236726_2 (lms_no varchar, serial_no varchar, PRIMARY KEY (lms_no)) | select lms_no from table_20236726_2 where serial_no = 372 |
Show different tourist attractions' names, ids, and the corresponding number of visits. | create table visits (tourist_attraction_id varchar, PRIMARY KEY (tourist_attraction_id)); create table tourist_attractions (name varchar, tourist_attraction_id varchar, PRIMARY KEY (name)) | select t1.name, t2.tourist_attraction_id, count(*) from tourist_attractions as t1 join visits as t2 on t1.tourist_attraction_id = t2.tourist_attraction_id group by t2.tourist_attraction_id |
Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong? | create table table_24430894_20 (mutya_ng_pilipinas_asia_pacific varchar, PRIMARY KEY (mutya_ng_pilipinas_asia_pacific)) | select 2 as nd_runner_up from table_24430894_20 where mutya_ng_pilipinas_asia_pacific = "rochelle romero ong" |
Name the reidsville for enrollment | create table table_25330991_3 (reidsville varchar, information varchar, PRIMARY KEY (reidsville)) | select reidsville from table_25330991_3 where information = "enrollment" |
Name the extension for university of washington | create table table_22771048_3 (extension varchar, city_neighborhood varchar, PRIMARY KEY (extension)) | select extension from table_22771048_3 where city_neighborhood = "university of washington" |
What country is Pierre Vermeulen from? | create table table_24565004_22 (nationality² varchar, name varchar, PRIMARY KEY (nationality²)) | select nationality² from table_24565004_22 where name = "pierre vermeulen" |
What is the broadcast date of the 16mm t/r episode? | create table table_1849243_1 (broadcast_date varchar, archive varchar, PRIMARY KEY (broadcast_date)) | select broadcast_date from table_1849243_1 where archive = "16mm t/r" |
Who was eliminated from the competition when connacht to the quarter final? | create table table_28068063_3 (eliminated_from_competition varchar, proceed_to_quarter_final varchar, PRIMARY KEY (eliminated_from_competition)) | select eliminated_from_competition from table_28068063_3 where proceed_to_quarter_final = "connacht" |
What are the titles of segment c when segment d is motorcycle brake locks? | create table table_15187735_21 (segment_c varchar, segment_d varchar, PRIMARY KEY (segment_c)) | select segment_c from table_15187735_21 where segment_d = "motorcycle brake locks" |
How many calibers require the type LB/RN? | create table table_21538523_1 (caliber varchar, type varchar, PRIMARY KEY (caliber)) | select count(caliber) from table_21538523_1 where type = "lb/rn" |
Show the account id and name with at least 4 transactions. | create table financial_transactions (account_id varchar, PRIMARY KEY (account_id)); create table accounts (account_name varchar, account_id varchar, PRIMARY KEY (account_name)) | select t1.account_id, t2.account_name from financial_transactions as t1 join accounts as t2 on t1.account_id = t2.account_id group by t1.account_id having count(*) >= 4 |
How many phone hardware models are produced by the company named "Nokia Corporation"? | create table phone (company_name varchar, PRIMARY KEY (company_name)) | select count(*) from phone where company_name = "nokia corporation" |
What language is Sky Cinema Passion television service n. 308? | create table table_15887683_5 (language varchar, television_service varchar, n° varchar, PRIMARY KEY (language)) | select language from table_15887683_5 where television_service = "sky cinema passion" and n° = "308" |
How many notes are there for the Devon Alexander vs. Shawn Porter fight? | create table table_25840200_1 (notes varchar, fight varchar, PRIMARY KEY (notes)) | select count(notes) from table_25840200_1 where fight = "devon alexander vs. shawn porter" |
What was the original air date of Stargate SG-1 written by Peter Deluise? | create table table_15431959_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_15431959_1 where written_by = "peter deluise" |
what is the college for the player who's school is camden high school? | create table table_11677760_1 (college varchar, school varchar, PRIMARY KEY (college)) | select college from table_11677760_1 where school = "camden high school" |
Name the high assists for 4-3 | create table table_23281862_5 (high_assists varchar, record varchar, PRIMARY KEY (high_assists)) | select high_assists from table_23281862_5 where record = "4-3" |
What TV channel had a license from Boston? | create table table_1353096_2 (channel_tv___dt__ varchar, city_of_license_market varchar, PRIMARY KEY (channel_tv___dt__)) | select channel_tv___dt__ from table_1353096_2 where city_of_license_market = "boston" |
In language where Thursday is برس وار bres'var, what is Sunday? | create table table_1277350_3 (sunday_surya__the_sun_ varchar, thursday_guru__jupiter_ varchar, PRIMARY KEY (sunday_surya__the_sun_)) | select sunday_surya__the_sun_ from table_1277350_3 where thursday_guru__jupiter_ = "برس وار bres'var" |
What is the description and code of the type of service that is performed the most often? | create table services (service_type_code varchar, PRIMARY KEY (service_type_code)); create table ref_service_types (service_type_description varchar, service_type_code varchar, PRIMARY KEY (service_type_description)) | select t1.service_type_description, t1.service_type_code from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code group by t1.service_type_code order by count(*) desc limit 1 |
While the original 1st us tour cast included nicci claspell, who was in the original tokyo/seoul tour cast? | create table table_24353141_1 (original_tokyo___seoul_tour_cast varchar, original_1st_us_tour_cast varchar, PRIMARY KEY (original_tokyo___seoul_tour_cast)) | select original_tokyo___seoul_tour_cast from table_24353141_1 where original_1st_us_tour_cast = "nicci claspell" |
When 4 mb is the sonnet what is the apple? | create table table_3002894_4 (apple varchar, sonnet varchar, PRIMARY KEY (apple)) | select apple from table_3002894_4 where sonnet = "4 mb" |
What are the distinct template type descriptions for the templates ever used by any document? | create table templates (template_type_code varchar, template_id varchar, PRIMARY KEY (template_type_code)); create table documents (template_id varchar, PRIMARY KEY (template_id)); create table ref_template_types (template_type_description varchar, template_type_code varchar, PRIMARY KEY (template_type_description)) | select distinct t1.template_type_description from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code join documents as t3 on t2.template_id = t3.template_id |
How many directed by have 2.80 as u.s. viewers (in millions)? | create table table_23499946_1 (directed_by varchar, us_viewers__in_millions_ varchar, PRIMARY KEY (directed_by)) | select count(directed_by) from table_23499946_1 where us_viewers__in_millions_ = "2.80" |
what is all the broadcast date when viewers were 8.4 millions | create table table_2112766_1 (broadcast_date varchar, viewers__in_millions_ varchar, PRIMARY KEY (broadcast_date)) | select count(broadcast_date) from table_2112766_1 where viewers__in_millions_ = "8.4" |
How many data points for chrstians are 39.7? | create table table_14598_5 (composition varchar, christians varchar, PRIMARY KEY (composition)) | select count(composition) from table_14598_5 where christians = "39.7" |
what is the max fs where the status is status and the method is method? | create table table_17157367_1 (max_fs varchar, PRIMARY KEY (max_fs)) | select max_fs from table_17157367_1 where "status" = "status" and "method" = "method" |
How many original titles were listed as "If the Sun Never Returns"? | create table table_22034853_1 (original_title varchar, film_title_used_in_nomination varchar, PRIMARY KEY (original_title)) | select count(original_title) from table_22034853_1 where film_title_used_in_nomination = "if the sun never returns" |
What's the fencing score of the player with 9:40.31 (1080 pts) in running? | create table table_12407546_1 (fencing varchar, running varchar, PRIMARY KEY (fencing)) | select fencing from table_12407546_1 where running = "9:40.31 (1080 pts)" |
Where is Southern Vermont College located? | create table table_1973816_2 (location varchar, institution varchar, PRIMARY KEY (location)) | select location from table_1973816_2 where institution = "southern vermont college" |
find the names of programs whose origin is not in Beijing. | create table program (name varchar, origin varchar, PRIMARY KEY (name)) | select name from program where origin <> 'beijing' |
How many measurements of the Czech Republic's population density are recorded in this table? | create table table_24066938_1 (pop_density_people_km_2 varchar, member_state varchar, PRIMARY KEY (pop_density_people_km_2)) | select count(pop_density_people_km_2) from table_24066938_1 where member_state = "czech republic" |
What is the most adjusted points for Great Britain? | create table table_26454128_4 (adjusted integer, country varchar, PRIMARY KEY (adjusted)) | select max(adjusted) as points from table_26454128_4 where country = "great britain" |
What was the record when the high rebounds was david lee (8) | create table table_23248869_8 (record varchar, high_rebounds varchar, PRIMARY KEY (record)) | select record from table_23248869_8 where high_rebounds = "david lee (8)" |
What was the handicap when the prize money was 120s? | create table table_2896329_1 (handicap varchar, prize_money varchar, PRIMARY KEY (handicap)) | select handicap from table_2896329_1 where prize_money = "120s" |
What spacecrafts had 22 orbital flights? | create table table_179174_2 (spacecraft varchar, flights varchar, PRIMARY KEY (spacecraft)) | select spacecraft from table_179174_2 where flights = "22 orbital" |
What are the civilian total when the security force total is 36? | create table table_21636599_2 (civilians varchar, security_forces varchar, PRIMARY KEY (civilians)) | select civilians from table_21636599_2 where security_forces = "36" |
Show all student ids and the number of hours played. | create table plays_games (stuid varchar, hours_played integer, PRIMARY KEY (stuid)) | select stuid, sum(hours_played) from plays_games group by stuid |
Where was d: ~50nm, l: ~600nm geometry researched? | create table table_30057479_1 (researched_at varchar, geometry varchar, PRIMARY KEY (researched_at)) | select researched_at from table_30057479_1 where geometry = "d: ~50nm, l: ~600nm" |
List all the log ids and their descriptions from the problem logs. | create table problem_log (problem_log_id varchar, log_entry_description varchar, PRIMARY KEY (problem_log_id)) | select problem_log_id, log_entry_description from problem_log |
What is the power capacity when the generators were 781? | create table table_11456251_5 (power_capacity__gw_ varchar, number_of_generators varchar, PRIMARY KEY (power_capacity__gw_)) | select power_capacity__gw_ from table_11456251_5 where number_of_generators = 781 |
How many live births per year do people with a life expectancy of 65.1 have? | create table table_27434_2 (live_births_per_year varchar, life_expectancy_total varchar, PRIMARY KEY (live_births_per_year)) | select live_births_per_year from table_27434_2 where life_expectancy_total = "65.1" |
Name the mountains classification for alexander kristoff | create table table_19115414_4 (mountains_classification varchar, points_classification varchar, PRIMARY KEY (mountains_classification)) | select mountains_classification from table_19115414_4 where points_classification = "alexander kristoff" |
What is the 3 June time for the rider with 2 June time of 17' 45.11 127.525mph? | create table table_25220821_4 (thurs_3_june varchar, wed_2_june varchar, PRIMARY KEY (thurs_3_june)) | select thurs_3_june from table_25220821_4 where wed_2_june = "17' 45.11 127.525mph" |
For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name. | create table table_27050336_7 (delegate varchar, counties_represented varchar, committee varchar, party varchar, PRIMARY KEY (delegate)) | select delegate from table_27050336_7 where committee = "judiciary" and party = "democratic" and counties_represented = "montgomery" |
What is the semester which most student registered in? Show both the name and the id. | create table student_enrolment (semester_id varchar, PRIMARY KEY (semester_id)); create table semesters (semester_name varchar, semester_id varchar, PRIMARY KEY (semester_name)) | select t1.semester_name, t1.semester_id from semesters as t1 join student_enrolment as t2 on t1.semester_id = t2.semester_id group by t1.semester_id order by count(*) desc limit 1 |
What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'? | create table bridge (location varchar, name varchar, PRIMARY KEY (location)) | select location from bridge where name = 'kolob arch' or name = 'rainbow bridge' |
When was the motor gear of the LMS 1946 no. 1901 model fitted? | create table table_2030453_1 (date_motor_gear_fitted varchar, lms_1946_no varchar, PRIMARY KEY (date_motor_gear_fitted)) | select date_motor_gear_fitted from table_2030453_1 where lms_1946_no = 1901 |
Find the first and last name of students who are living in the dorms that have amenity TV Lounge. | create table has_amenity (dormid varchar, amenid varchar, PRIMARY KEY (dormid)); create table lives_in (stuid varchar, dormid varchar, PRIMARY KEY (stuid)); create table student (fname varchar, lname varchar, stuid varchar, PRIMARY KEY (fname)); create table dorm_amenity (amenid varchar, amenity_name varchar, PRIMARY KEY (amenid)) | select t1.fname, t1.lname from student as t1 join lives_in as t2 on t1.stuid = t2.stuid where t2.dormid in (select t3.dormid from has_amenity as t3 join dorm_amenity as t4 on t3.amenid = t4.amenid where t4.amenity_name = 'tv lounge') |
What was the archive for the episode with a run time of 25:24? | create table table_2102714_1 (archive varchar, run_time varchar, PRIMARY KEY (archive)) | select archive from table_2102714_1 where run_time = "25:24" |
When did the first payment happen? | create table payment (payment_date varchar, PRIMARY KEY (payment_date)) | select payment_date from payment order by payment_date limit 1 |
What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'? | create table enzyme (product varchar, chromosome varchar, porphyria varchar, location varchar, PRIMARY KEY (product)) | select product, chromosome, porphyria from enzyme where location = 'cytosol' |
How many networks run on virtual channel 23.4? | create table table_2857352_3 (network varchar, virtual_channel varchar, PRIMARY KEY (network)) | select count(network) from table_2857352_3 where virtual_channel = "23.4" |
Name the gdp per capita for world rank being 131 | create table table_2249029_1 (gdp_per_capita varchar, gdp_world_rank varchar, PRIMARY KEY (gdp_per_capita)) | select gdp_per_capita from table_2249029_1 where gdp_world_rank = "131" |
How many Miss Waters has Canada had? | create table table_30008638_1 (miss_water integer, country_territory varchar, PRIMARY KEY (miss_water)) | select max(miss_water) from table_30008638_1 where country_territory = "canada" |
Which city is listed first when Okinawa is listed as the second city? | create table table_16066063_1 (city_1 varchar, city_2 varchar, PRIMARY KEY (city_1)) | select city_1 from table_16066063_1 where city_2 = "okinawa" |
Who was the outgoing manager of the team in 15th position that was sacked? | create table table_27374004_4 (outgoing_manager varchar, manner_of_departure varchar, position_in_table varchar, PRIMARY KEY (outgoing_manager)) | select outgoing_manager from table_27374004_4 where manner_of_departure = "sacked" and position_in_table = "15th" |
What is the GDP at constant prices for a current account balance of 12.8? | create table table_30133_1 (gdp_at_constant_prices__thb_trillions_ varchar, current_account_balance__percent_of_gdp_ varchar, PRIMARY KEY (gdp_at_constant_prices__thb_trillions_)) | select gdp_at_constant_prices__thb_trillions_ from table_30133_1 where current_account_balance__percent_of_gdp_ = "12.8" |
What is the total number of title with a u.s. air date of April 17, 2009 | create table table_12294557_3 (title varchar, us_airdate varchar, PRIMARY KEY (title)) | select count(title) from table_12294557_3 where us_airdate = "april 17, 2009" |
What is the name and country of origin of the artist who released a song that has "love" in its title? | create table song (artist_name varchar, song_name varchar, PRIMARY KEY (artist_name)); create table artist (artist_name varchar, country varchar, PRIMARY KEY (artist_name)) | select t1.artist_name, t1.country from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.song_name like "%love%" |
Which railroad is 112.6 kilometers from kingston? | create table table_16226584_1 (name varchar, km_from_kingston varchar, PRIMARY KEY (name)) | select name from table_16226584_1 where km_from_kingston = "112.6" |
What date did the episode, with John O'Connell as the coach, premier? | create table table_2140071_5 (premier_date varchar, coach varchar, PRIMARY KEY (premier_date)) | select premier_date from table_2140071_5 where coach = "john o'connell" |
Give me the names of members whose address is in Harford or Waterbury. | create table member (name varchar, address varchar, PRIMARY KEY (name)) | select name from member where address = 'harford' or address = 'waterbury' |
How many scores were there for the home team when the away team was fitzroy? | create table table_29090919_1 (home_team varchar, away_team varchar, PRIMARY KEY (home_team)) | select count(home_team) as score from table_29090919_1 where away_team = "fitzroy" |
How many buddhists are where s jain have 941? | create table table_14598_5 (buddhist varchar, s_jain varchar, PRIMARY KEY (buddhist)) | select buddhist from table_14598_5 where s_jain = "941" |
What is the name of organization that has the greatest number of contact individuals? | create table organization_contact_individuals (organization_id varchar, PRIMARY KEY (organization_id)); create table organizations (organization_name varchar, organization_id varchar, PRIMARY KEY (organization_name)) | select t1.organization_name from organizations as t1 join organization_contact_individuals as t2 on t1.organization_id = t2.organization_id group by t1.organization_name order by count(*) desc limit 1 |
How many locations have the callsign DXGH? | create table table_28794440_1 (location varchar, callsign varchar, PRIMARY KEY (location)) | select count(location) from table_28794440_1 where callsign = "dxgh" |
What is the NHL team in the media market ranking number 7? | create table table_1205598_1 (nhl_team_s_ varchar, media_market_ranking varchar, PRIMARY KEY (nhl_team_s_)) | select nhl_team_s_ from table_1205598_1 where media_market_ranking = 7 |
What is the title of the episode that featured Abbud Siddiqui? | create table table_29545336_2 (title varchar, featured_character_s_ varchar, PRIMARY KEY (title)) | select title from table_29545336_2 where featured_character_s_ = "abbud siddiqui" |
In the system where Sunday is ஞாயிற்று கிழமை nyāyitru kizhamai, what is Saturday? | create table table_1277350_3 (saturday_shani__saturn_ varchar, sunday_surya__the_sun_ varchar, PRIMARY KEY (saturday_shani__saturn_)) | select saturday_shani__saturn_ from table_1277350_3 where sunday_surya__the_sun_ = "ஞாயிற்று கிழமை nyāyitru kizhamai" |
List the locations that are shared by more than two wrestlers. | create table wrestler (location varchar, PRIMARY KEY (location)) | select location from wrestler group by location having count(*) > 2 |
Find the countries that have never participated in any competition with Friendly type. | create table competition (country varchar, competition_type varchar, PRIMARY KEY (country)) | select country from competition except select country from competition where competition_type = 'friendly' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.