question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Who was the writter for the episode identified by the production code 2t5954?
CREATE TABLE table_26561508_1 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_26561508_1 WHERE production_code = "2T5954"
How many vacators have October 22, 1808 as date successor seated?
CREATE TABLE table_225093_4 (vacator VARCHAR, date_successor_seated VARCHAR)
SELECT COUNT(vacator) FROM table_225093_4 WHERE date_successor_seated = "October 22, 1808"
What is Air Date, when Rating is "N/A", and when Weekly Winner is "Wedding DJ Chris Dixon"?
CREATE TABLE table_name_19 (air_date VARCHAR, rating VARCHAR, weekly_winner VARCHAR)
SELECT air_date FROM table_name_19 WHERE rating = "n/a" AND weekly_winner = "wedding dj chris dixon"
What Nationality is the Pick that is 116?
CREATE TABLE table_name_92 (nationality VARCHAR, pick VARCHAR)
SELECT nationality FROM table_name_92 WHERE pick = 116
Name the category for prix uip berlin
CREATE TABLE table_name_66 (category VARCHAR, nominating_festival VARCHAR)
SELECT category FROM table_name_66 WHERE nominating_festival = "prix uip berlin"
What is Party, when Left Office is "23 April 2005", when Portfolio is "Minister of Reforms and Devolutions"?
CREATE TABLE table_name_17 (party VARCHAR, left_office VARCHAR, portfolio VARCHAR)
SELECT party FROM table_name_17 WHERE left_office = "23 april 2005" AND portfolio = "minister of reforms and devolutions"
What Valvetrain has a fuel system made up of petrol engines?
CREATE TABLE table_name_77 (valvetrain VARCHAR, fuel_system VARCHAR)
SELECT valvetrain FROM table_name_77 WHERE fuel_system = "petrol engines"
When the result is retired to run for U.S. Senate Democratic Hold, who is the candidate?
CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR)
SELECT candidates FROM table_1342218_43 WHERE result = "Retired to run for U.S. Senate Democratic hold"
The Estevan Bruins (WCHL) are affiliated with what NHL team?
CREATE TABLE table_name_51 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT nhl_team FROM table_name_51 WHERE college_junior_club_team = "estevan bruins (wchl)"
Find all procedures which cost more than 1000 or which physician John Wen was trained in.
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)
SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"
On what date did the manager for PSIS Semarang take over for the manager that was sacked?
CREATE TABLE table_name_54 (date_of_replacement VARCHAR, reason_of_departure VARCHAR, team VARCHAR)
SELECT date_of_replacement FROM table_name_54 WHERE reason_of_departure = "sacked" AND team = "psis semarang"
What's the episode of Batman?
CREATE TABLE table_name_38 (episode VARCHAR, program VARCHAR)
SELECT episode FROM table_name_38 WHERE program = "batman"
What is the area of the place that has a population density of 331.4?
CREATE TABLE table_1067441_1 (area__km²_ INTEGER, density VARCHAR)
SELECT MAX(area__km²_) FROM table_1067441_1 WHERE density = "331.4"
What date has yani tseng as the runner (s)-up?
CREATE TABLE table_name_91 (date VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_91 WHERE runner_s__up = "yani tseng"
How many losses has more than 59 goals against and more than 17 position?
CREATE TABLE table_name_32 (losses INTEGER, goals_against VARCHAR, position VARCHAR)
SELECT MIN(losses) FROM table_name_32 WHERE goals_against > 59 AND position > 17
What is the amount of money with a score of 67-71-70-71=279?
CREATE TABLE table_name_85 (money___ VARCHAR, score VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_85 WHERE score = 67 - 71 - 70 - 71 = 279
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)
SELECT COUNT(type_of_fare) FROM table_20803241_1 WHERE 31 - day_pass = "N/A" AND cash_fare = "N/A"
tell me the average roll for pirinoa school.
CREATE TABLE table_name_83 (roll INTEGER, name VARCHAR)
SELECT AVG(roll) FROM table_name_83 WHERE name = "pirinoa school"
Find the title of the course that is offered by more than one department.
CREATE TABLE course (title VARCHAR)
SELECT title FROM course GROUP BY title HAVING COUNT(*) > 1
Who played in lake oval while away?
CREATE TABLE table_name_69 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_69 WHERE venue = "lake oval"
What is the population of the parish with a census ranking of 579 of 5,008?
CREATE TABLE table_name_32 (population INTEGER, census_ranking VARCHAR)
SELECT SUM(population) FROM table_name_32 WHERE census_ranking = "579 of 5,008"
Who was the recipient for Outstanding actress television series prior to 2008?
CREATE TABLE table_name_7 (recipient VARCHAR, year INTEGER)
SELECT recipient FROM table_name_7 WHERE year < 2008
Which country has Hydra Head Records with a 2lp format?
CREATE TABLE table_name_97 (country VARCHAR, format VARCHAR, label VARCHAR)
SELECT country FROM table_name_97 WHERE format = "2lp" AND label = "hydra head records"
Find all students taught by MARROTTE KIRK. Output first and last names of students.
CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "MARROTTE" AND T2.lastname = "KIRK"
what is the name when avg/g is 13.7?
CREATE TABLE table_name_1 (name VARCHAR, avg_g VARCHAR)
SELECT name FROM table_name_1 WHERE avg_g = 13.7
When did series 6 start?
CREATE TABLE table_24057191_2 (start_date VARCHAR, series VARCHAR)
SELECT start_date FROM table_24057191_2 WHERE series = 6
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)
SELECT control_site_condition_owner FROM table_22282917_26 WHERE launch_site_condition_owner = "lakefront office buildings"
what is the mascot when the school is warsaw?
CREATE TABLE table_name_25 (mascot VARCHAR, school VARCHAR)
SELECT mascot FROM table_name_25 WHERE school = "warsaw"
who won womens doubles in 2010
CREATE TABLE table_20361783_1 (womens_doubles VARCHAR, year VARCHAR)
SELECT womens_doubles FROM table_20361783_1 WHERE year = 2010
Show the title and publication dates of books.
CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR); CREATE TABLE publication (Publication_Date VARCHAR, Book_ID VARCHAR)
SELECT T1.Title, T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID
What is the power of the 3.2i v8 32v?
CREATE TABLE table_1245350_1 (power VARCHAR, quattroporte_iv VARCHAR)
SELECT power FROM table_1245350_1 WHERE quattroporte_iv = "3.2i V8 32v"
What were the total apps for Dunne in season where he had 0 league goals?
CREATE TABLE table_2980024_1 (total_apps VARCHAR, league_goals VARCHAR)
SELECT total_apps FROM table_2980024_1 WHERE league_goals = 0
What year was incumbent mark w. hannaford elected?
CREATE TABLE table_1341672_6 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1341672_6 WHERE incumbent = "Mark W. Hannaford"
What are the highest laps for Marco Melandri?
CREATE TABLE table_name_67 (laps INTEGER, rider VARCHAR)
SELECT MAX(laps) FROM table_name_67 WHERE rider = "marco melandri"
Which Round has a Pick smaller than 6?
CREATE TABLE table_name_77 (round INTEGER, pick INTEGER)
SELECT SUM(round) FROM table_name_77 WHERE pick < 6
What is the Catalog number in France?
CREATE TABLE table_name_19 (catalog VARCHAR, region VARCHAR)
SELECT catalog FROM table_name_19 WHERE region = "france"
What is the segment C of the episode where segment B is Film Digitization?
CREATE TABLE table_15187735_19 (segment_c VARCHAR, segment_b VARCHAR)
SELECT segment_c FROM table_15187735_19 WHERE segment_b = "Film Digitization"
What opponent did they have a bye result against before week 14?
CREATE TABLE table_name_19 (opponent VARCHAR, result VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_19 WHERE result = "bye" AND week < 14
what is the previous conference when the location is converse?
CREATE TABLE table_name_69 (previous_conference VARCHAR, location VARCHAR)
SELECT previous_conference FROM table_name_69 WHERE location = "converse"
Which player has a College of arizona?
CREATE TABLE table_name_83 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_83 WHERE college = "arizona"
What is the 1991 with a 2r 1996?
CREATE TABLE table_name_34 (Id VARCHAR)
SELECT 1991 FROM table_name_34 WHERE 1996 = "2r"
Who was the captain of the away team at Adelaide Oval?
CREATE TABLE table_name_84 (away_captain VARCHAR, venue VARCHAR)
SELECT away_captain FROM table_name_84 WHERE venue = "adelaide oval"
What is the points classification when the Intergiro classification is Sven Krauß, and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9?
CREATE TABLE table_name_19 (points_classification VARCHAR, stage VARCHAR, trofeo_super_team VARCHAR, intergiro_classification VARCHAR, mountains_classification VARCHAR)
SELECT points_classification FROM table_name_19 WHERE intergiro_classification = "sven krauß" AND mountains_classification = "koldo gil" AND trofeo_super_team = "liquigas-bianchi" AND stage = "9"
How many tournaments recorded a score of 206 (-7)?
CREATE TABLE table_11622840_1 (tournament VARCHAR, score VARCHAR)
SELECT COUNT(tournament) FROM table_11622840_1 WHERE score = "206 (-7)"
What left office does the First Minister of henry mcleish belong to?
CREATE TABLE table_name_49 (left_office VARCHAR, first_minister VARCHAR)
SELECT left_office FROM table_name_49 WHERE first_minister = "henry mcleish"
Who is the rider with a 399cc Kawasaki?
CREATE TABLE table_name_94 (rider VARCHAR, team VARCHAR)
SELECT rider FROM table_name_94 WHERE team = "399cc kawasaki"
Please show the employee first names and ids of employees who serve at least 10 customers.
CREATE TABLE CUSTOMER (FirstName VARCHAR, SupportRepId VARCHAR); CREATE TABLE EMPLOYEE (EmployeeId VARCHAR)
SELECT T1.FirstName, T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10
Which county has a median family income of $50,227?
CREATE TABLE table_name_99 (county VARCHAR, median_family_income VARCHAR)
SELECT county FROM table_name_99 WHERE median_family_income = "$50,227"
What is the Date of the game with a Loss and Record of 7-9?
CREATE TABLE table_name_91 (date VARCHAR, result VARCHAR, record VARCHAR)
SELECT date FROM table_name_91 WHERE result = "loss" AND record = "7-9"
what is the sum of laps when grid is less than 20 and johnny herbert is driving?
CREATE TABLE table_name_29 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT SUM(laps) FROM table_name_29 WHERE grid < 20 AND driver = "johnny herbert"
What is the highest Strike Rate when the average is less than 50.25 with less than 13 matches played?
CREATE TABLE table_name_15 (strike_rate INTEGER, matches VARCHAR, average VARCHAR)
SELECT MAX(strike_rate) FROM table_name_15 WHERE matches < 13 AND average < 50.25
Which tournament was played on September 25, 1995?
CREATE TABLE table_name_46 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_46 WHERE date = "september 25, 1995"
what are all the district with incumbent being sam hobbs
CREATE TABLE table_1342270_3 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342270_3 WHERE incumbent = "Sam Hobbs"
Which characters were portrayed by reed garrett?
CREATE TABLE table_11240028_3 (portrayed_by VARCHAR, character VARCHAR)
SELECT portrayed_by FROM table_11240028_3 WHERE character = "Reed Garrett"
What is the league on 5 October 1997?
CREATE TABLE table_name_48 (league VARCHAR, date VARCHAR)
SELECT league FROM table_name_48 WHERE date = "5 october 1997"
What were the high points for the game played at the MCI Center?
CREATE TABLE table_18904831_7 (high_points VARCHAR, location VARCHAR)
SELECT COUNT(high_points) FROM table_18904831_7 WHERE location = "MCI Center"
Name the leaast points for standing 5th
CREATE TABLE table_26882866_1 (points INTEGER, standing VARCHAR)
SELECT MIN(points) FROM table_26882866_1 WHERE standing = "5th"
When did the Prime Minister of Italy take office?
CREATE TABLE table_10026563_1 (entered_office_as_head_of_state_or_government VARCHAR, office VARCHAR)
SELECT entered_office_as_head_of_state_or_government FROM table_10026563_1 WHERE office = "Prime Minister of Italy"
what was the score on the game that happened on May 15?
CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_49 WHERE date = "may 15"
What's the mountains classification of winner Carlos Sastre when the general classification is Denis Menchov?
CREATE TABLE table_name_15 (mountains_classification VARCHAR, general_classification VARCHAR, winner VARCHAR)
SELECT mountains_classification FROM table_name_15 WHERE general_classification = "denis menchov" AND winner = "carlos sastre"
What is the height of the person that weighs 320 pounds?
CREATE TABLE table_10966926_2 (height VARCHAR, weight VARCHAR)
SELECT height FROM table_10966926_2 WHERE weight = 320
What country was the player who was 11 off par from?
CREATE TABLE table_name_88 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_88 WHERE to_par = 11
Which Record has a High points of hoffman (16)?
CREATE TABLE table_name_58 (record VARCHAR, high_points VARCHAR)
SELECT record FROM table_name_58 WHERE high_points = "hoffman (16)"
What is the status of the Hamaoka-3 unit?
CREATE TABLE table_name_33 (status VARCHAR, unit VARCHAR)
SELECT status FROM table_name_33 WHERE unit = "hamaoka-3"
What is the league goals when the league cup goals is less than 0 and 16 (1) league apps?
CREATE TABLE table_name_95 (league_goals INTEGER, league_apps VARCHAR, league_cup_goals VARCHAR)
SELECT AVG(league_goals) FROM table_name_95 WHERE league_apps = "16 (1)" AND league_cup_goals < 0
Who is the main contestant when the co-contestant (yaar vs. pyaar) is Shalini Chandran?
CREATE TABLE table_name_33 (main_contestant VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT main_contestant FROM table_name_33 WHERE co_contestant__yaar_vs_pyaar_ = "shalini chandran"
What is the total number of bronze medals of the team with more than 8 silvers and a total of 50 medals?
CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT COUNT(bronze) FROM table_name_67 WHERE silver > 8 AND total = 50
How many games played have 4.7 points per game?
CREATE TABLE table_2387461_1 (games_played VARCHAR, points_per_game VARCHAR)
SELECT COUNT(games_played) FROM table_2387461_1 WHERE points_per_game = "4.7"
What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score?
CREATE TABLE table_name_60 (home VARCHAR, date VARCHAR, attendance VARCHAR, score VARCHAR)
SELECT home FROM table_name_60 WHERE attendance < 2248 AND score = "2:0" AND date = "21 september 2008"
find the name of employee who was awarded the most times in the evaluation.
CREATE TABLE evaluation (Employee_ID VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR)
SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1
Which station has a number less than 5 and an l stop?
CREATE TABLE table_name_43 (station VARCHAR, number VARCHAR, stop VARCHAR)
SELECT station FROM table_name_43 WHERE number < 5 AND stop = "l"
Name the result for william j. driver
CREATE TABLE table_1342426_5 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1342426_5 WHERE incumbent = "William J. Driver"
During the Mid-American Conference who is listed as the tournament winner?
CREATE TABLE table_28365816_2 (tournament_winner VARCHAR, conference VARCHAR)
SELECT tournament_winner FROM table_28365816_2 WHERE conference = "Mid-American conference"
What was the highest number of yards in years where there were fewer than 51 rushes and more than 12 games?
CREATE TABLE table_name_48 (yards INTEGER, rushes VARCHAR, games VARCHAR)
SELECT MAX(yards) FROM table_name_48 WHERE rushes < 51 AND games > 12
What is the attendance number when the result is l 41-37?
CREATE TABLE table_name_32 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_32 WHERE result = "l 41-37"
Name the engine for ecurie lutetia
CREATE TABLE table_28190534_1 (engine VARCHAR, entrant VARCHAR)
SELECT engine FROM table_28190534_1 WHERE entrant = "Ecurie Lutetia"
Which player was Pick #40?
CREATE TABLE table_name_98 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_name_98 WHERE pick__number = "40"
How many tonnes of cargo did the airport have with the IATA Code IND?
CREATE TABLE table_18047346_5 (tonnes VARCHAR, iata_code VARCHAR)
SELECT tonnes FROM table_18047346_5 WHERE iata_code = "IND"
How many rounds have a chassis of thl2?
CREATE TABLE table_name_87 (rounds VARCHAR, chassis VARCHAR)
SELECT rounds FROM table_name_87 WHERE chassis = "thl2"
What's the points for count for the club with 41 points and 8 won games?
CREATE TABLE table_12886178_4 (points_for VARCHAR, points VARCHAR, won VARCHAR)
SELECT points_for FROM table_12886178_4 WHERE points = "41" AND won = "8"
What is the drawn number when there are 58 tries?
CREATE TABLE table_name_12 (drawn VARCHAR, tries_for VARCHAR)
SELECT drawn FROM table_name_12 WHERE tries_for = "58"
How many outcomes were there for matches played with Chuck McKinley on grass in 1962?
CREATE TABLE table_2215159_2 (outcome VARCHAR, year VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT COUNT(outcome) FROM table_2215159_2 WHERE surface = "Grass" AND partner = "Chuck McKinley" AND year = 1962
What is the total number sunk by warship or raider with 20 German submarines lost and more than 21616 sunk by aircraft?
CREATE TABLE table_name_30 (sunk_by_warship_or_raider VARCHAR, german_submarines_lost VARCHAR, sunk_by_aircraft VARCHAR)
SELECT COUNT(sunk_by_warship_or_raider) FROM table_name_30 WHERE german_submarines_lost = 20 AND sunk_by_aircraft > 21616
When deutsche grammophon is the label how many clairons are there?
CREATE TABLE table_29728787_1 (clairon VARCHAR, label VARCHAR)
SELECT COUNT(clairon) FROM table_29728787_1 WHERE label = "Deutsche Grammophon"
what is the sum of matches when the player is jim laker and wikets is less than 9?
CREATE TABLE table_name_25 (matches INTEGER, player VARCHAR, wickets VARCHAR)
SELECT SUM(matches) FROM table_name_25 WHERE player = "jim laker" AND wickets < 9
How many people won the election in the district of Virginia 4?
CREATE TABLE table_2668329_25 (result VARCHAR, district VARCHAR)
SELECT COUNT(result) FROM table_2668329_25 WHERE district = "Virginia 4"
Who represents district 41?
CREATE TABLE table_27050732_7 (delegate VARCHAR, district VARCHAR)
SELECT delegate FROM table_27050732_7 WHERE district = "41"
What is the 1944 result for the U.S. Championships?
CREATE TABLE table_name_52 (tournament VARCHAR)
SELECT 1944 FROM table_name_52 WHERE tournament = "u.s. championships"
What to par has tom kite as the player?
CREATE TABLE table_name_92 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_92 WHERE player = "tom kite"
what is x when faisaly is 0-0?
CREATE TABLE table_26173063_2 (× VARCHAR, faisaly VARCHAR)
SELECT × FROM table_26173063_2 WHERE faisaly = "0-0"
Which party has Peter A. Quinn as a representative?
CREATE TABLE table_name_44 (party VARCHAR, representative VARCHAR)
SELECT party FROM table_name_44 WHERE representative = "peter a. quinn"
During which years did the golfer with the total of 289 win?
CREATE TABLE table_name_42 (year_s__won VARCHAR, total VARCHAR)
SELECT year_s__won FROM table_name_42 WHERE total = 289
In which yearly change was there a capacity of 78.4% and a rank smaller than 3?
CREATE TABLE table_name_31 (annual_change VARCHAR, rank VARCHAR, capacity_in_use VARCHAR)
SELECT annual_change FROM table_name_31 WHERE rank < 3 AND capacity_in_use = "78.4%"
What Australian Marquee team is Michael Beauchamp a captain of?
CREATE TABLE table_name_13 (australian_marquee VARCHAR, captain VARCHAR)
SELECT australian_marquee FROM table_name_13 WHERE captain = "michael beauchamp"
What is the original air date of the episode directed by Jeff Melman?
CREATE TABLE table_13477468_3 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT original_air_date FROM table_13477468_3 WHERE directed_by = "Jeff Melman"
Which December has a Record of 21–8–4, and a Game larger than 33?
CREATE TABLE table_name_38 (december INTEGER, record VARCHAR, game VARCHAR)
SELECT AVG(december) FROM table_name_38 WHERE record = "21–8–4" AND game > 33
What was the result after the week # top 11?
CREATE TABLE table_name_84 (result VARCHAR, week__number VARCHAR)
SELECT result FROM table_name_84 WHERE week__number = "top 11"
What week did the contestant finish in the bottom 2 with a Celine Dion song?
CREATE TABLE table_name_41 (week VARCHAR, status VARCHAR, artist VARCHAR)
SELECT week FROM table_name_41 WHERE status = "bottom 2" AND artist = "celine dion"
How many silvers have a Nation of hungary, and a Rank larger than 10?
CREATE TABLE table_name_30 (silver VARCHAR, nation VARCHAR, rank VARCHAR)
SELECT COUNT(silver) FROM table_name_30 WHERE nation = "hungary" AND rank > 10
How many distinct delegates are from counties with population larger than 50000?
CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_id VARCHAR, Population INTEGER)
SELECT COUNT(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000