It is unlikely that Gertrude is a cat. It is probably the case that John is in the garden. There is little chance that Lily is a frog. There is almost no chance that if 'Gertrude is a cat and John is in the garden' then Sumit is hungry. It is probably the case that if 'Gertrude is a cat and Lily is a frog' then Julius is a swan. It is highly unlikely that if 'Lily is a frog' or 'John is in the garden' or both then Greg is yellow.
It is impossible that 'Sumit is hungry and Gertrude is a cat'.
It is impossible that 'Sumit is hungry and Gertrude is a cat'.
There is a better than even chance that 'Sumit is hungry and Gertrude is a cat'.

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

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

  query(conclusion).
  
'Sumit is hungry and Gertrude is a cat'.