CREATE TABLE county (county_id NUMBER, county_name CLOB, population NUMBER, zip_code CLOB)
CREATE TABLE election (election_id NUMBER, counties_represented CLOB, district NUMBER, delegate CLOB, party NUMBER, first_elected NUMBER, committee CLOB)
CREATE TABLE party (party_id NUMBER, year NUMBER, party CLOB, governor CLOB, lieutenant_governor CLOB, comptroller CLOB, attorney_general CLOB, us_senate CLOB)

Count the number of distinct delegates who are from counties with population above 50000.
SELECT COUNT(DISTINCT T2.delegate) FROM county AS T1 JOIN election AS T2 ON T1.county_id = T2.district WHERE T1.population > 50000
SELECT COUNT(DISTINCT "T2"."delegate") FROM "county" "T1" JOIN "election" "T2" ON "T1"."county_id" = "T2"."district" WHERE "T1"."population" > 50000