It is almost certain that Lily is a swan. It is impossible that John went to the garden. It is probable that Bernhard is yellow. There is little chance that if 'Lily is a swan' or 'John went to the garden' or both then Brian is a rhino. Chances are about even that if 'Lily is a swan and Bernhard is yellow' then Greg is a lion. It is impossible that if 'John went to the garden' or 'Lily is a swan' or both then Jessica is a cat.
There is a very good chance that 'Lily is a swan and John went to the garden'.
It is impossible that 'Lily is a swan and John went to the garden'.
There is a very good chance that 'Lily is a swan and John 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.95::factA.
  0.0::factB.
  0.7::factC.
  %hop1
  0.1::factX:-or(factA,factB).
  0.5::factY:-and(factA,factC).
  0.0::factZ:-or(factB,factA).

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

  query(conclusion).
  
'Lily is a swan and John went to the garden'.