There is almost no chance that Emily is a mouse. It is probable that Mary went to the office. It is highly unlikely that Bernhard is a swan. There is a better than even chance that if 'Mary went to the office and Emily is a mouse' then Lily is green. It is probable that if either 'Bernhard is a swan' or 'Emily is a mouse' but not both then Greg is white. It is highly unlikely that if 'Bernhard is a swan and Mary went to the office' then John moved to the garden.
There is almost no chance that either 'Emily is a mouse' or 'Lily is green' but not both.
There is almost no chance that either 'Emily is a mouse' or 'Lily is green' but not both.
There is a better than even chance that either 'Emily is a mouse' or 'Lily is green' but not both.

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

  %hop2
  conclusion:-xor(factA,factX).

  query(conclusion).
  
Either 'Emily is a mouse' or 'Lily is green' but not both.