Chances are slight that Bernhard is green. It is unlikely that Lily is yellow. It is likely that John discarded the apple. It is likely that if 'John discarded the apple' or 'Lily is yellow' or both then Fred moved to the office. It is probably not the case that if 'Bernhard is green and Lily is yellow' then Brian is a lion. It is highly likely that if 'Bernhard is green and Lily is yellow' then Mary went to the hallway.
There is a very good chance that 'Mary went to the hallway and Bernhard is green'.
There is almost no chance that 'Mary went to the hallway and Bernhard is green'.
There is a very good chance that 'Mary went to the hallway and Bernhard 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.2::factB.
  0.7::factC.
  %hop1
  0.7::factX:-or(factC,factB).
  0.25::factY:-and(factA,factB).
  0.9::factZ:-and(factA,factB).

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

  query(conclusion).
  
'Mary went to the hallway and Bernhard is green'.