It is probable that Lily is gray. There is little chance that Gertrude is a cat. It is unlikely that Mary moved to the garden. It is almost certain that if 'Mary moved to the garden and Lily is gray' then John went to the office. There is a very good chance that if either 'Mary moved to the garden' or 'Gertrude is a cat' but not both then Emily is a mouse. We believe that if either 'Lily is gray' or 'Gertrude is a cat' but not both then Bernhard is a frog.
It is highly likely that 'Mary moved to the garden and Gertrude is a cat'.
There is almost no chance that 'Mary moved to the garden and Gertrude is a cat'.
It is highly likely that 'Mary moved to the garden and Gertrude is a cat'.

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

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

  query(conclusion).
  
'Mary moved to the garden and Gertrude is a cat'.