There is little chance that Bernhard is a rhino. We believe that Lily is green. It is highly unlikely that Brian is a swan. It is unlikely that if either 'Lily is green' or 'Bernhard is a rhino' but not both then Sandra took the football. It is likely that if either 'Lily is green' or 'Bernhard is a rhino' but not both then Greg is green. There is little chance that if 'Bernhard is a rhino and Brian is a swan' then Mary moved to the garden.
There is a better than even chance that 'Mary moved to the garden and Lily is green'.
It is impossible that 'Mary moved to the garden and Lily is green'.
There is a better than even chance that 'Mary moved to the garden and Lily is green'.

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

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

  query(conclusion).
  
'Mary moved to the garden and Lily is green'.