There is a very good chance that Daniel left the apple. It is likely that Sandra took the football. There is little chance that John went to the kitchen. It is almost certain that if 'Daniel left the apple' or 'Sandra took the football' or both then Julius is gray. There is almost no chance that if 'Daniel left the apple' or 'John went to the kitchen' or both then Brian is white. It is unlikely that if 'Sandra took the football and John went to the kitchen' then Lily is a lion.
There is almost no chance that 'Julius is gray and Daniel left the apple'.
We believe that 'Julius is gray and Daniel left the apple'.
There is almost no chance that 'Julius is gray and Daniel left the apple'.

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

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

  query(conclusion).
  
'Julius is gray and Daniel left the apple'.