Chances are about even that Gertrude is a sheep. It is probably the case that Daniel dropped the apple. There is little chance that Bernhard is white. It is impossible that if 'Daniel dropped the apple and Gertrude is a sheep' then Jessica is a wolf. It is probable that if either 'Daniel dropped the apple' or 'Gertrude is a sheep' but not both then Mary went to the bedroom. It is impossible that if 'Daniel dropped the apple and Bernhard is white' then Lily is a rhino.
It is almost certain that 'Mary went to the bedroom and Jessica is a wolf'.
It is impossible that 'Mary went to the bedroom and Jessica is a wolf'.
It is almost certain that 'Mary went to the bedroom and Jessica is a wolf'.

  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.7::factB.
  0.1::factC.
  %hop1
  0.0::factX:-and(factB,factA).
  0.7::factY:-xor(factB,factA).
  0.0::factZ:-and(factB,factC).

  %hop2
  conclusion:-and(factY,factX).

  query(conclusion).
  
'Mary went to the bedroom and Jessica is a wolf'.