There is a very good chance that Bernhard is yellow. There is a better than even chance that Daniel got the milk. It is almost certain that Mary went to the garden. Chances are about even that if 'Daniel got the milk' or 'Bernhard is yellow' or both then Julius is a lion. There is a very good chance that if 'Daniel got the milk and Mary went to the garden' then John left the apple. There is a very good chance that if either 'Daniel got the milk' or 'Bernhard is yellow' but not both then Brian is a swan.
We believe that 'Bernhard is yellow and Mary went to the garden'.
We believe that 'Bernhard is yellow and Mary went to the garden'.
Chances are slight that 'Bernhard is yellow and Mary 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.8::factA.
  0.6::factB.
  0.95::factC.
  %hop1
  0.5::factX:-or(factB,factA).
  0.8::factY:-and(factB,factC).
  0.8::factZ:-xor(factB,factA).

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

  query(conclusion).
  
'Bernhard is yellow and Mary went to the garden'.