Chances are slight that Jessica is a sheep. There is a better than even chance that Mary went to the office. It is almost certain that John got the apple. It is highly unlikely that if 'John got the apple and Mary went to the office' then Greg is a lion. It is highly likely that if 'Mary went to the office' or 'Jessica is a sheep' or both then Brian is a rhino. There is little chance that if either 'John got the apple' or 'Jessica is a sheep' but not both then Bernhard is yellow.
It is almost certain that 'John got the apple and Jessica is a sheep'.
There is little chance that 'John got the apple and Jessica is a sheep'.
It is almost certain that 'John got the apple and Jessica is a sheep'.

  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.1::factA.
  0.6::factB.
  0.95::factC.
  %hop1
  0.05::factX:-and(factC,factB).
  0.9::factY:-or(factB,factA).
  0.1::factZ:-xor(factC,factA).

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

  query(conclusion).
  
'John got the apple and Jessica is a sheep'.