Democrats won contested judicial races across Brooklyn and Queens Tuesday, according to unofficial results from the New York City Board of Elections.

In Queens, where nine candidates sought six seats on the Supreme Court of the 11th Judicial District, the top six vote-getters were all Democrats, and all were rated approved by the New York City Bar Association.

Justice Stephen Knopf won as an incumbent, while four more candidates — Donna-Marie Golia, Phillip Hom, Maurice Muir and Lourdes Ventura — are sitting judges in Queens County Civil Court.

The sixth candidate with enough votes to take a seat, Wyatt Gibbons, lost the Democratic primary for a civil court seat over the summer but was nominated for the supreme court in August.

For the three seats available in Queens County Civil Court, three Democrats defeated a single Republican challenger, although only one candidate in that race — Democrat Claudia Lanzetta — was rated approved by the city bar association. The other two Democrats are Michele Titus, a member of the state assembly, and Lumarie Maldonado-Cruz, who has said she was inspired to run by U.S. Rep. Alexandria Ocasio-Cortez, D-New York.

In Kings County Civil Court, Democrat Bernadette Neckles defeated Vincent Martusciello, a Republican making his 10th attempt at the seat. Neckles has worked as a court attorney referee and an arbitrator in Brooklyn courts.

In a close race in Staten Island, Republican Bob Helbock was elected as a civil court judge in the 1st Municipal Court District. Helbock, who specialized in workers' compensation cases at his firm Helbock, Nappa & Gallucci, defeated Democrat Edwina Martin, who is Staten Island's public administrator.

Other judicial races around the city, including all of those in the Bronx and Manhattan, were not contested.