Trial attorney Andrew C. LoTempio, a former Buffalo City Court judge, is the winner in a three-way primary race for the Democratic nomination for two Buffalo City Court seats.
Incumbent Betty Calvo-Torres, who is seeking a second 10-year term as City Court judge, captured the second nomination.
With all 148 city districts reporting, unofficial totals showed LoTempio with 46 percent of the vote, followed by Calvo-Torres with 39 percent.
Both were endorsed by the Erie County Democratic Committee.
The third candidate, Joseph T. Jarzembek, a lawyer in the Erie County Department of Social Services, had 15 percent of the vote. He has previously been a candidate for Family Court judge.
LoTempio, a University at Buffalo School of Law graduate, was elected City Court judge in 1999 and stepped down in 2004 to resume private practice.
Calvo-Torres, also a UB Law graduate and former assistant Erie County district attorney, was appointed to the bench by Mayor Byron W. Brown in 2007, and won election later that year.
No other parties held primary election contests for City Court judge.