A countries module exists (https://appstore.home.mendix.com/link/app/1775/Daywize/Country-enumeration). But this only knows about countries and not their capitals.
What I would do, is extend this module by adding capital and loading the capitals via an Excel import.
And I am curious about the use case. What are you going to display for Switzerland?
Build and import http://country.io/data/