It is probable that Lily is a lion. It is improbable that Gertrude is a wolf. It is probable that Brian is gray. It is improbable that if either 'Gertrude is a wolf' or 'Brian is gray' but not both then Jessica is a cat. It is probably the case that if either 'Brian is gray' or 'Gertrude is a wolf' but not both then Julius is a rhino. It is probable that if 'Brian is gray' or 'Lily is a lion' or both then Mary moved to the garden.
It is likely that 'Jessica is a cat' or 'Lily is a lion' or both.
It is likely that 'Jessica is a cat' or 'Lily is a lion' or both.
It is impossible that 'Jessica is a cat' or 'Lily is a lion' or both.

  and(A,B) :- A,B.
  or(A,B) :- A;B.
  nand(A,B) :- not(and(A,B)).
  nor(A,B) :- not(or(A,B)).
  xor(A,B) :- or(A,B), nand(A,B).

  %hop0
  0.7::factA.
  0.1::factB.
  0.7::factC.
  %hop1
  0.1::factX:-xor(factB,factC).
  0.7::factY:-xor(factC,factB).
  0.7::factZ:-or(factC,factA).

  %hop2
  conclusion:-or(factX,factA).

  query(conclusion).
  
'Jessica is a cat' or 'Lily is a lion' or both.