transcript.md
↑ ContentsState Planner chat · https://stateplanner.com
- State: Massachusetts (MA)
- Started: November 17, 2026, 7:47 PM UTC
- Runtime: 57 sec
- Status: completed
Prompt
Which Massachusetts census block groups gained the most working residents from 2013 to 2023? Map the change.
Model: Anthropic: Claude Opus 5.5 (anthropic/claude-opus-5.5, via openrouter), high effort
Response
The largest gains in working residents from 2013 to 2023 were in new-housing block groups in Somerville, Boston, Woburn and Cambridge. The top two went from no working residents to more than 1,200 each.
To measure "working residents" I used the Census Bureau's LEHD data for 2013 and 2023, which counts jobs by where the worker lives. I counted only each person's primary job, so the figures come close to a count of workers. Statewide, that count went from about 2.93 million to 3.21 million (+280,000).

Map legend
- Dark green: gained 500 or more working residents (95 block groups)
- Medium green: gained 200–499 (1,071)
- Light green: gained 50–199 (2,143)
- Light grey: changed by less than 50 either way (669)
- Light orange: lost 50–199 (489)
- Dark orange: lost 200 or more (649)
- Purple outline: the 20 largest gains, listed below
Overall, 3,720 block groups gained working residents and 1,387 lost some. The median change was +100.
Block groups with the largest gain in working residents, 2013–2023
| Rank | Block group | Town | County | 2013 | 2023 | Change |
|---|---|---|---|---|---|---|
| 1 | 250173501061 | Somerville | Middlesex | 0 | 1,216 | +1,216 |
| 2 | 250250606041 | Boston | Suffolk | 0 | 1,205 | +1,205 |
| 3 | 250250606031 | Boston | Suffolk | 542 | 1,684 | +1,142 |
| 4 | 250250704021 | Boston | Suffolk | 37 | 1,122 | +1,085 |
| 5 | 250173336011 | Woburn | Middlesex | 264 | 1,327 | +1,063 |
| 6 | 250173549013 | Cambridge | Middlesex | 0 | 974 | +974 |
| 7 | 250173419032 | Malden | Middlesex | 518 | 1,445 | +927 |
| 8 | 250250612031 | Boston | Suffolk | 904 | 1,810 | +906 |
| 9 | 250173851011 | Ashland | Middlesex | 532 | 1,393 | +861 |
| 10 | 250092501002 | Lawrence | Essex | 627 | 1,473 | +846 |
| 11 | 250173201072 | Hopkinton | Middlesex | 408 | 1,217 | +809 |
| 12 | 250056122022 | Raynham | Bristol | 657 | 1,451 | +794 |
| 13 | 250235308011 | Plymouth | Plymouth | 917 | 1,697 | +780 |
| 14 | 250214222011 | Weymouth | Norfolk | 1 | 766 | +765 |
| 15 | 250250203041 | Boston | Suffolk | 75 | 836 | +761 |
| 16 | 250173398032 | Medford | Middlesex | 619 | 1,377 | +758 |
| 17 | 250173852041 | Ashland | Middlesex | 877 | 1,630 | +753 |
| 18 | 250092508003 | Lawrence | Essex | 355 | 1,098 | +743 |
| 19 | 250251705041 | Revere | Suffolk | 455 | 1,191 | +736 |
| 20 | 250250702021 | Boston | Suffolk | 970 | 1,701 | +731 |
What the map shows
- Inner core: the biggest gains cluster in Boston (6 of the top 20), Somerville, Cambridge, Malden, Medford and Revere. Several started at or near zero in 2013, which usually means new housing went up on land with few or no homes before.
- Suburbs and other cities: large gains also appear in Woburn, Ashland (two block groups), Hopkinton, Raynham, Plymouth, Weymouth and Lawrence.
- Losses: the dark orange areas are spread across the state. They may reflect real change, or LEHD placing workers' homes differently over the years; the data can't tell the two apart.
Caveats
- These are counts of jobs held by residents, from unemployment-insurance wage records as of the second quarter. Most self-employed people are left out, so they are not ACS labor-force estimates.
- I counted a block group missing from the data in a given year as having zero working residents. Some of the "from 0" gains may partly be gaps in the data rather than true zeros.
- Towns were assigned by where each block group's interior point falls.
If you'd rather measure working residents another way, I could use the ACS employed population (2010–2014 vs. 2020–2024 releases). That's a survey estimate, though, with wide error margins at block-group level.
Exploratory Queries
Query 1 — Check statewide working-resident totals (primary jobs) for 2013 and 2023 and block group coverage.
SELECT YEAR,
count(*) bgs,
sum(jobs_total) workers
FROM ma_lehd_rac
WHERE job_type = 'JT01'
AND YEAR IN (2013, 2023)
GROUP BY YEAR
| year | bgs | workers |
|---|---|---|
| 2013 | 5097 | 2931572 |
| 2023 | 5096 | 3211590 |
Query 2 — Rank block groups by change in working residents 2013–2023 with town names.
WITH c AS (
SELECT b.geoid,
b.county_name,
coalesce(a.jobs_total, 0) w13,
coalesce(z.jobs_total, 0) w23
FROM ma_census_block_groups b
LEFT JOIN ma_lehd_rac a ON a.geoid = b.geoid
AND a.year = 2013
AND a.job_type = 'JT01'
LEFT JOIN ma_lehd_rac z ON z.geoid = b.geoid
AND z.year = 2023
AND z.job_type = 'JT01'
)
SELECT c.geoid,
cs.name town,
c.county_name,
w13,
w23,
w23 - w13 chg,
CASE
WHEN w13 > 0 THEN round(100.0 * (w23 - w13) / w13)
END pct
FROM c
JOIN ma_census_block_groups b USING (geoid)
LEFT JOIN LATERAL (
SELECT name
FROM ma_census_county_subdivisions s
WHERE ST_Intersects(s.geom, ST_PointOnSurface(b.geom))
LIMIT 1
) cs ON TRUE
ORDER BY chg DESC
LIMIT 20
| geoid | town | county_name | w13 | w23 | chg | pct |
|---|---|---|---|---|---|---|
| 250173501061 | Somerville city | Middlesex | 0 | 1216 | 1216 | |
| 250250606041 | Boston city | Suffolk | 0 | 1205 | 1205 | |
| 250250606031 | Boston city | Suffolk | 542 | 1684 | 1142 | 211 |
| 250250704021 | Boston city | Suffolk | 37 | 1122 | 1085 | 2932 |
| 250173336011 | Woburn city | Middlesex | 264 | 1327 | 1063 | 403 |
| 250173549013 | Cambridge city | Middlesex | 0 | 974 | 974 | |
| 250173419032 | Malden city | Middlesex | 518 | 1445 | 927 | 179 |
| 250250612031 | Boston city | Suffolk | 904 | 1810 | 906 | 100 |
| 250173851011 | Ashland town | Middlesex | 532 | 1393 | 861 | 162 |
| 250092501002 | Lawrence city | Essex | 627 | 1473 | 846 | 135 |
| 250173201072 | Hopkinton town | Middlesex | 408 | 1217 | 809 | 198 |
| 250056122022 | Raynham town | Bristol | 657 | 1451 | 794 | 121 |
| 250235308011 | Plymouth town | Plymouth | 917 | 1697 | 780 | 85 |
| 250214222011 | Weymouth Town city | Norfolk | 1 | 766 | 765 | 76500 |
| 250250203041 | Boston city | Suffolk | 75 | 836 | 761 | 1015 |
| 250173398032 | Medford city | Middlesex | 619 | 1377 | 758 | 122 |
| 250173852041 | Ashland town | Middlesex | 877 | 1630 | 753 | 86 |
| 250092508003 | Lawrence city | Essex | 355 | 1098 | 743 | 209 |
| 250251705041 | Revere city | Suffolk | 455 | 1191 | 736 | 162 |
| 250250702021 | Boston city | Suffolk | 970 | 1701 | 731 | 75 |
Query 3 — Summarize the distribution of change to set map classes.
WITH c AS (
SELECT b.geoid,
coalesce(a.jobs_total, 0) w13,
coalesce(z.jobs_total, 0) w23
FROM ma_census_block_groups b
LEFT JOIN ma_lehd_rac a ON a.geoid = b.geoid
AND a.year = 2013
AND a.job_type = 'JT01'
LEFT JOIN ma_lehd_rac z ON z.geoid = b.geoid
AND z.year = 2023
AND z.job_type = 'JT01'
)
SELECT count(*) FILTER (
WHERE w23 - w13 >= 500
) g500,
count(*) FILTER (
WHERE w23 - w13 BETWEEN 200 AND 499
) g200,
count(*) FILTER (
WHERE w23 - w13 BETWEEN 50 AND 199
) g50,
count(*) FILTER (
WHERE w23 - w13 BETWEEN -49 AND 49
) flat,
count(*) FILTER (
WHERE w23 - w13 BETWEEN -199 AND -50
) l50,
count(*) FILTER (
WHERE w23 - w13 <= -200
) l200,
min(w23 - w13) mn,
percentile_cont(0.5) WITHIN GROUP (
ORDER BY w23 - w13
) med,
count(*) FILTER (
WHERE w23 > w13
) gained,
count(*) FILTER (
WHERE w23 < w13
) lost
FROM c
| g500 | g200 | g50 | flat | l50 | l200 | mn | med | gained | lost |
|---|---|---|---|---|---|---|---|---|---|
| 95 | 1071 | 2143 | 669 | 489 | 649 | -1954 | 100 | 3720 | 1387 |
Map Layer Queries
Change in working residents (LODES primary jobs), 2013–2023 — colored by "cls": Gained 500 or more (#00441b), Gained 200–499 (#238b45), Gained 50–199 (#a1d99b), Within ±49 (#f0f0f0), Lost 50–199 (#fdae6b), Lost 200 or more (#d94801)
WITH c AS (
SELECT b.geoid,
b.county_name,
b.geom,
coalesce(a.jobs_total, 0) w13,
coalesce(z.jobs_total, 0) w23
FROM ma_census_block_groups b
LEFT JOIN ma_lehd_rac a ON a.geoid = b.geoid
AND a.year = 2013
AND a.job_type = 'JT01'
LEFT JOIN ma_lehd_rac z ON z.geoid = b.geoid
AND z.year = 2023
AND z.job_type = 'JT01'
)
SELECT geoid AS "Block group",
county_name AS "County",
w13 AS "Working residents 2013",
w23 AS "Working residents 2023",
w23 - w13 AS "Change",
CASE
WHEN w13 > 0 THEN round(100.0 * (w23 - w13) / w13) || '%'
END AS "Percent change",
CASE
WHEN w23 - w13 >= 500 THEN 'g500'
WHEN w23 - w13 >= 200 THEN 'g200'
WHEN w23 - w13 >= 50 THEN 'g50'
WHEN w23 - w13 > -50 THEN 'flat'
WHEN w23 - w13 > -200 THEN 'l50'
ELSE 'l200'
END AS cls,
geom
FROM c
Picture: maps/turn-1-working-residents-change.png
Top 20 gains (outlined)
WITH c0 AS (
SELECT b.geoid,
b.county_name,
b.geom,
coalesce(a.jobs_total, 0) w13,
coalesce(z.jobs_total, 0) w23
FROM ma_census_block_groups b
LEFT JOIN ma_lehd_rac a ON a.geoid = b.geoid
AND a.year = 2013
AND a.job_type = 'JT01'
LEFT JOIN ma_lehd_rac z ON z.geoid = b.geoid
AND z.year = 2023
AND z.job_type = 'JT01'
),
c AS (
SELECT *
FROM c0
ORDER BY w23 - w13 DESC
LIMIT 20
)
SELECT c.geoid AS "Block group",
regexp_replace(cs.name, ' (city|town)$', '') AS "Town",
c.county_name AS "County",
w13 AS "Working residents 2013",
w23 AS "Working residents 2023",
w23 - w13 AS "Change",
c.geom
FROM c
LEFT JOIN LATERAL (
SELECT name
FROM ma_census_county_subdivisions s
WHERE ST_Intersects(s.geom, ST_PointOnSurface(c.geom))
LIMIT 1
) cs ON TRUE
Picture: maps/turn-1-working-residents-change.png
Used Data Sets
ma_census_block_groups— last synced 2026-09-27 · 5,116 rowsma_census_county_subdivisions— last synced 2026-10-09 · 351 rowsma_lehd_rac— last synced 2026-11-10 · 378,584 rows