The office of New York City Public Advocate is a citywide elected position in New York City, which is first in line to succeed the mayor. From Wikipedia
Dominating the primary with over 71 percent of ballots cast, he will now face Republican Gonzalo Duran in the general election.