Three of Albany’s top elected officials — Mayor Kathy Sheehan, Common Council President Carolyn McLaughlin and County Executive Dan McCoy — were delegate candidates for Hillary Clinton on Tuesday’s ballot.

Sheehan did so well that she won about 1,600 more votes countywide than Clinton did. McCoy and McLaughlin, who helped deliver the endorsement of local party brass to Clinton, were the next-highest vote-getters.

But none of that was enough to deliver the state capital Tuesday night for Clinton in New York’s Democratic presidential primary, which Clinton nonetheless won handily thanks to a tidal wave of support downstate.

Clinton lost Albany by 738 votes, according to the unofficial machine count, which doesn’t include absentee ballots. That means Sanders, who held a large rally in the city April 11, landed about 52.5% of the vote to Clinton’s 47.5%.

Spatially, here’s how that vote broke down across Albany’s 128 election districts.

If you’re looking for things that fit the broader narrative of the primary so far, Clinton appears to have beaten Sanders in parts of the city like the South End and Arbor Hill and West Hill that have higher concentrations of minority voters — despite the fact that Sanders met with local Black Lives Matter protesters and the family of Donald Ivy, a unarmed mentally ill black man who died last year in police custody.

The center of the city, meanwhile, especially the generally more liberal neighborhoods around Center Square, tended to vote for Sanders. Sanders also did well in the neighborhoods off New Scotland and Delaware avenues and crushed Clinton 190-18 in the ED that covers most of the University at Albany’s uptown campus and 138-62 in the ED the includes much of the College of Saint Rose’s Pine Hills campus.rs

The rest is kind of a mish mash, and, in truth, some of the vote tallies in the election districts were very close, meaning they could have gone either way. (You can hover over each individual district to see how the raw vote broke down in each.)

In a sense, Albany County was an outlier in Tuesday night’s voting results.

While Clinton dominated the downstate vote that handed her a decisive statewide win, Sanders swept less populous upstate — with the exception of Onondaga, Monroe and Erie counties, which are home to upstate’s largest cities in Syracuse, Rochester and Buffalo.

Albany County, home to the next-largest upstate city, was the exception. Sanders won the county by virtually the same margin by which he defeated Clinton in the city proper.

Sanders performed even better in the 20th Congressional District, of which Albany County accounted for about 54 percent of the Democrats who turned out Tuesday. Districtwide, Sanders won 53.33% of the vote.