It is highly unlikely that Brian is yellow. It is highly unlikely that John went to the office. It is probable that Lily is green. It is unlikely that if either 'Lily is green' or 'John went to the office' but not both then Sandra left the apple. There is almost no chance that if 'John went to the office' or 'Brian is yellow' or both then Mary moved to the garden. It is almost certain that if 'Brian is yellow' or 'John went to the office' or both then Julius is a lion.
It is highly unlikely that 'Brian is yellow and Lily is green'.
It is highly unlikely that 'Brian is yellow and Lily is green'.
We believe that 'Brian is yellow 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.05::factA.
  0.05::factB.
  0.7::factC.
  %hop1
  0.2::factX:-xor(factC,factB).
  0.02::factY:-or(factB,factA).
  0.95::factZ:-or(factA,factB).

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

  query(conclusion).
  
'Brian is yellow and Lily is green'.