There is a better than even chance that Jessica is a sheep. There is almost no chance that Mary moved to the garden. Chances are slight that Lily is a frog. It is probably not the case that if 'Mary moved to the garden' or 'Lily is a frog' or both then Greg is a lion. There is a very good chance that if either 'Jessica is a sheep' or 'Lily is a frog' but not both then John got the apple. We doubt that if 'Mary moved to the garden' or 'Lily is a frog' or both then Brian is a rhino.
There is almost no chance that 'Lily is a frog and Brian is a rhino'.
There is almost no chance that 'Lily is a frog and Brian is a rhino'.
It is likely that 'Lily is a frog and Brian is a rhino'.

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

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

  query(conclusion).
  
'Lily is a frog and Brian is a rhino'.