Complex sentence: The vizier's paramount duty was to supervise the running of the country, such as a prime minister, at times even small details of it such as sampling the city's water supply.
Split into simpler sentences: The vizier's paramount duty was to supervise the county. The job of the vizier was to make sure everything was running smoothly such as a prime minister, at times even small details of it such as sampling the city's water supply.