Complex sentence: The church was enclosed by a later square, built by William Hamilton between 1786 and 1787, which became fashionable residences for some of Glasgow's wealthiest merchants.
Split into simpler sentences: The church was enclosed by a later square, built by William Hamilton, between 1786 and 1787. It became a fashionable residence for some of Glasgow's wealthiest merchants.