Complex sentence: It was formerly three small cottages one of which was a freemasons' lodge, which is how the current pub acquired its name.
Split into simpler sentences: It was formerly three small cottages one of which was a freemasons' lodge. This is how the current pub acquired its name.