There is almost no chance that Sandra dropped the milk. Chances are slight that John took the apple. It is highly likely that Bernhard is white. Chances are about even that if either 'Bernhard is white' or 'John took the apple' but not both then Bill went to the garden. It is likely that if 'John took the apple' or 'Bernhard is white' or both then Greg is a lion. There is a very good chance that if either 'John took the apple' or 'Sandra dropped the milk' but not both then Julius is a frog.
There is almost no chance that 'Julius is a frog and Bill went to the garden'.
There is almost no chance that 'Julius is a frog and Bill went to the garden'.
It is almost certain that 'Julius is a frog and Bill went to 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.02::factA.
  0.1::factB.
  0.9::factC.
  %hop1
  0.5::factX:-xor(factC,factB).
  0.7::factY:-or(factB,factC).
  0.8::factZ:-xor(factB,factA).

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

  query(conclusion).
  
'Julius is a frog and Bill went to the garden'.