We know D.C. Get our free newsletter to stay in the know.

Thanks, wealthy and employed people!

If only the neighborhoods with the most children had turned out to vote in last week’s Democratic mayoral primary, Vince Gray would be cruising to a second term. But Muriel Bowser came away the winner after dominating the areas with the lowest poverty and unemployment rates. Meanwhile, Jack Evans and Tommy Wells had their best results in the whitest precincts, while sixth-place finisher Vincent Orange had a decent showing in the neighborhoods with the fewest high-school diplomas.

Thanks to data compiled by the Urban Institute’s NeighborhoodInfo DC and crunched by Washington City Paper intern Quinn Kelley, we can explore the correlation between various demographic indicators and voting patterns on the neighborhood level.

The full data set can be downloaded here, but we’ve assembled a few of the demographic factors, listing the top three and bottom three voting precincts in each category and the top three vote-getters in each of those precincts. (Charts made via Chartbuilder.) Put your data-geek hats on and enjoy:

Percentage of residents who are children, 2010

Change in population, 2000-2010

Percentage of residents who are white non-Hispanic, 2010

Percentage of residents who are Hispanic, 2010

Percentage of births to teen mothers, 2011

Poverty rate, 2007-2011

Unemployment rate, 2007-2011

Percentage of people 25 and older without a high-school diploma, 2007-2011

Change in average family income, 2000 to 2007-2011

Violent crimes per 1,000 residents, 2011

Homeownership rate, 2007-2011

Photo by Aaron Wiener