A common construct for comparison (making parallels) is "the X of A is similar to that of B". Quoting an example here
... the animals' situation is similar to that of the plants.
which is equivalent to
the situation of the animals is similar to that (i.e. the situation) of the plants.
I often wondered whether this construct can be extended to make parallels in more complex scenarios, where one needs to compare or contrast two relationships (between two pairs of objects). A contrived example is as follows:
"The difference between werewolfs and vampires is similar to that (i.e. the difference) between wolfs and bats."
Here, what I am trying to compare are two relations: the one between werewolfs and vampires and the one between wolfs and bats.
As the two relations are each between a pair of objects, should one say
"... is similar to that between X and Y"?
If not, what is the proper way to express such comparisons/parallels?
(I thought about using such patterns from time to time, but haven't seen it used. Hence the question here.)