We believe that Sandra left the milk. It is probably the case that Lily is a rhino. It is almost certain that John put down the apple. It is improbable that if either 'Lily is a rhino' or 'Sandra left the milk' but not both then Julius is white. We believe that if either 'Lily is a rhino' or 'John put down the apple' but not both then Bernhard is a swan. We doubt that if 'Sandra left the milk' or 'John put down the apple' or both then Brian is green.
Chances are about even that 'Lily is a rhino and Sandra left the milk'.
Chances are about even that 'Lily is a rhino and Sandra left the milk'.
It is certain that 'Lily is a rhino and Sandra left the milk'.

  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.75::factA.
  0.7::factB.
  0.95::factC.
  %hop1
  0.1::factX:-xor(factB,factA).
  0.75::factY:-xor(factB,factC).
  0.2::factZ:-or(factA,factC).

  %hop2
  conclusion:-and(factB,factA).

  query(conclusion).
  
'Lily is a rhino and Sandra left the milk'.