Chances are about even that Daniel dropped the milk. It is unlikely that Mary got the apple. There is a better than even chance that John is in the garden. It is highly likely that if 'John is in the garden' or 'Mary got the apple' or both then Gertrude is a wolf. It is probably the case that if 'Daniel dropped the milk' or 'John is in the garden' or both then Bernhard is a swan. There is little chance that if 'Mary got the apple and John is in the garden' then Julius is a lion.
Chances are slight that 'Mary got the apple and John is in the garden'.
Chances are slight that 'Mary got the apple and John is in the garden'.
It is likely that 'Mary got the apple and John is in the garden'.

  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.5::factA.
  0.2::factB.
  0.6::factC.
  %hop1
  0.9::factX:-or(factC,factB).
  0.7::factY:-or(factA,factC).
  0.1::factZ:-and(factB,factC).

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

  query(conclusion).
  
'Mary got the apple and John is in the garden'.