# How to get the population of Maryland for all years Wolfram has data on? [duplicate]

Here I learned that I can get the US population for every year that Wolfram has data on using the following:

CountryData["UnitedStates", {"Population", All}]


Next I wanted to find the population of Maryland for every year Wolfram has data on. The closest I can get is the following:

I tried the obvious approach, and got the following:

Wolfram-Alpha made a plot with data going back over 200 years, so Wolfram clearly has more than just the latest population. So how can I get a result for Maryland population that is similar to what I get from CountryData above?

A simple function does the job

pop[state_] :=
"Population", {"Date" -> All}]]["Path"]


Now for example

DateListPlot[pop["Utah"] /. Quantity[a_, __] :> a/10^6.,
AspectRatio -> 1/2,
Filling -> Bottom,
GridLines -> Automatic]


Or

pop["Utah"] /. {a_, Quantity[b_, __]} :> {First@DateList@a,