Hello Everybody,
I want to create a dataset with all cities that are greater than 4 Mio inhabitants. So i tried it with the command
EntityValue[EntityClass["City", {"Population" -> GreaterThan[Quantity[4000000, "People"]]}]]
but unfortunately this doesn’t work.
Has somebody an idea how to create such a dataset?
Thanks for help 
wartichowicz
(Wojciech Artichowicz)
2
Dear Kristina,
I know it is not a pretty nor very efficient solution but it does the job. If you need to run it just once it is probably enough:
Inh = 4 10^6;
cities = Select[CityData[All],
QuantityMagnitude[CityData[#, "Population"]] > Inh &]
citiesAndPopulation = {#, CityData[#, "Population"]} & /@ cities
Thank you so much for your help! It works 