In Mathematica using the Wolfram Language, the query is:
Entity["City", {"Chicago", "Illinois", "UnitedStates"}]["Polygon"]
This is probably an example of something you'd use Mathematica for.