ETYuma posted a fine response while I was writing my own response ๐. I will post my response too for reference:
The structure is like this:
โ [A] is [B]
โ [The biggest difference] is [that the latter share the spaces].
โ [The biggest difference {between working dogs and companion dogs}] is [that the latter share the spaces {to rest, dine and sleep}].
โ [The biggest difference {between working dogs {typified by guard dogs} and companion dogs}] is [that the latter share the spaces {to rest, dine and sleep {with their families} {indoors}}].
typified by guard dogs ~ like guard dogs
The biggest difference between working dogs (like guard dogs) and companion dogs is that...
For reference, there is a small mistake in the book.
โ
The difference between Bob and my sister is that the latter likes cats.
โ The difference between Bob and my sister is that the latter like cats.
โ The difference between Bob and my sisters is that the latter likes cats.
โ
The difference between Bob and my sisters is that the latter like cats.
โ The difference between working dogs and companion dogs is that the latter shares
โ
The difference between working dogs and companion dogs is that the latter share