It is highly likely that Lily is green. It is probably the case that Sandra left the football. It is probably the case that Brian is a rhino. Chances are slight that if either 'Brian is a rhino' or 'Lily is green' but not both then John discarded the apple. It is highly unlikely that if 'Lily is green and Sandra left the football' then Emily is a sheep. Chances are slight that if 'Brian is a rhino' or 'Lily is green' or both then Mary went to the garden.
It is impossible that 'John discarded the apple and Emily is a sheep'.
It is impossible that 'John discarded the apple and Emily is a sheep'.
It is probable that 'John discarded the apple and Emily is a sheep'.

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

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

  query(conclusion).
  
'John discarded the apple and Emily is a sheep'.