context,hypothesis,problog,probability,rnd,split,probability_word,distractor,valid_hypothesis,invalid_hypothesis,label,hypothesis_assertion It is almost certain that Antoine is thirsty. It is impossible that Lily is a lion. It is probably the case that Jason is tired. There is a very good chance that if either 'Lily is a lion' or 'Jason is tired' but not both then Daniel put down the milk. It is unlikely that if either 'Jason is tired' or 'Antoine is thirsty' but not both then Mary left the football. We believe that if 'Lily is a lion' or 'Jason is tired' or both then Greg is a rhino.,Chances are slight that either 'Jason is tired' or 'Daniel put down the milk' but not both.," 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.95::factA. 0.0::factB. 0.7::factC. %hop1 0.8::factX:-xor(factB,factC). 0.2::factY:-xor(factC,factA). 0.75::factZ:-or(factB,factC). %hop2 conclusion:-xor(factC,factX). query(conclusion). ",0.13999999999999999,0.9499899979995999,test,chances are slight,highly likely,Chances are slight that either 'Jason is tired' or 'Daniel put down the milk' but not both.,It is highly likely that either 'Jason is tired' or 'Daniel put down the milk' but not both.,1,Either 'Jason is tired' or 'Daniel put down the milk' but not both. It is almost certain that Greg is white. It is improbable that Brian is gray. It is improbable that Julius is a swan. It is highly likely that if 'Julius is a swan' or 'Brian is gray' or both then Mary went to the office. Chances are about even that if 'Julius is a swan and Greg is white' then John took the apple. It is almost certain that if 'Julius is a swan and Greg is white' then Sandra left the milk.,There is little chance that either 'Sandra left the milk' or 'Mary went to the office' but not both.," 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.95::factA. 0.1::factB. 0.1::factC. %hop1 0.9::factX:-or(factC,factB). 0.5::factY:-and(factC,factA). 0.95::factZ:-and(factC,factA). %hop2 conclusion:-xor(factZ,factX). query(conclusion). ",0.09880000000000004,0.9543908781756352,test,little chance,certain,There is little chance that either 'Sandra left the milk' or 'Mary went to the office' but not both.,It is certain that either 'Sandra left the milk' or 'Mary went to the office' but not both.,1,Either 'Sandra left the milk' or 'Mary went to the office' but not both. It is probably not the case that Winona is a sheep. It is highly unlikely that John left the football. It is probable that Lily is a swan. It is almost certain that if 'Lily is a swan' or 'Winona is a sheep' or both then Greg is white. It is highly likely that if 'Lily is a swan and Winona is a sheep' then Jessica is a mouse. It is improbable that if 'Lily is a swan' or 'Winona is a sheep' or both then Mary moved to the garden.,It is likely that either 'Mary moved to the garden' or 'Jessica is a mouse' but not both.," 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.25::factA. 0.05::factB. 0.7::factC. %hop1 0.95::factX:-or(factC,factA). 0.9::factY:-and(factC,factA). 0.1::factZ:-or(factC,factA). %hop2 conclusion:-xor(factZ,factY). query(conclusion). ",0.20350000000000004,0.9331866373274655,test,unlikely,likely,It is unlikely that either 'Mary moved to the garden' or 'Jessica is a mouse' but not both.,It is likely that either 'Mary moved to the garden' or 'Jessica is a mouse' but not both.,0,Either 'Mary moved to the garden' or 'Jessica is a mouse' but not both. It is highly likely that Brian is white. There is almost no chance that Mary went to the kitchen. We doubt that Jessica is a cat. It is probably the case that if either 'Jessica is a cat' or 'Mary went to the kitchen' but not both then John put down the milk. It is impossible that if either 'Mary went to the kitchen' or 'Jessica is a cat' but not both then Sandra got the football. It is improbable that if either 'Mary went to the kitchen' or 'Jessica is a cat' but not both then Julius is a swan.,It is probable that either 'John put down the milk' or 'Mary went to the kitchen' but not both.," 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.02::factB. 0.2::factC. %hop1 0.7::factX:-xor(factC,factB). 0.0::factY:-xor(factB,factC). 0.1::factZ:-xor(factB,factC). %hop2 conclusion:-xor(factX,factB). query(conclusion). ",0.146,0.9039807961592319,test,little chance,probable,There is little chance that either 'John put down the milk' or 'Mary went to the kitchen' but not both.,It is probable that either 'John put down the milk' or 'Mary went to the kitchen' but not both.,0,Either 'John put down the milk' or 'Mary went to the kitchen' but not both. There is a very good chance that Mary went to the kitchen. It is almost certain that Bernhard is green. It is highly likely that Jeff moved to the office. There is a very good chance that if 'Mary went to the kitchen and Bernhard is green' then Sumit is tired. It is probable that if either 'Jeff moved to the office' or 'Bernhard is green' but not both then Daniel put down the milk. It is impossible that if either 'Jeff moved to the office' or 'Mary went to the kitchen' but not both then Greg is a frog.,It is certain that 'Mary went to the kitchen' or 'Jeff moved to the office' or both.," 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.8::factA. 0.95::factB. 0.9::factC. %hop1 0.8::factX:-and(factA,factB). 0.7::factY:-xor(factC,factB). 0.0::factZ:-xor(factC,factA). %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.98,0.9531906381276255,test,certain,improbable,It is certain that 'Mary went to the kitchen' or 'Jeff moved to the office' or both.,It is improbable that 'Mary went to the kitchen' or 'Jeff moved to the office' or both.,1,'Mary went to the kitchen' or 'Jeff moved to the office' or both. There is little chance that Mary went to the office. There is a very good chance that Sumit is tired. Chances are slight that John dropped the apple. It is certain that if 'Sumit is tired and John dropped the apple' then Sandra left the milk. There is almost no chance that if either 'John dropped the apple' or 'Sumit is tired' but not both then Greg is gray. It is improbable that if 'Mary went to the office and Sumit is tired' then Brian is a swan.,It is likely that 'John dropped the apple and Mary went to the office'.," 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.8::factB. 0.1::factC. %hop1 1.0::factX:-and(factB,factC). 0.02::factY:-xor(factC,factB). 0.1::factZ:-and(factA,factB). %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.010000000000000004,0.907381476295259,test,almost no chance,likely,There is almost no chance that 'John dropped the apple and Mary went to the office'.,It is likely that 'John dropped the apple and Mary went to the office'.,0,'John dropped the apple and Mary went to the office'. It is highly unlikely that Lily is yellow. We believe that Bill went to the bedroom. There is little chance that John moved to the garden. It is unlikely that if 'Bill went to the bedroom and John moved to the garden' then Julius is a lion. There is almost no chance that if either 'Bill went to the bedroom' or 'Lily is yellow' but not both then Winona is a wolf. It is highly unlikely that if either 'John moved to the garden' or 'Bill went to the bedroom' but not both then Daniel left the milk.,There is little chance that either 'Daniel left the milk' or 'Lily is yellow' but not both.," 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.75::factB. 0.1::factC. %hop1 0.2::factX:-and(factB,factC). 0.02::factY:-xor(factB,factA). 0.05::factZ:-xor(factC,factB). %hop2 conclusion:-xor(factZ,factA). query(conclusion). ",0.08150000000000002,0.961992398479696,test,little chance,better than even,There is little chance that either 'Daniel left the milk' or 'Lily is yellow' but not both.,There is a better than even chance that either 'Daniel left the milk' or 'Lily is yellow' but not both.,1,Either 'Daniel left the milk' or 'Lily is yellow' but not both. There is a better than even chance that Emily is a mouse. Chances are slight that Daniel left the milk. It is unlikely that Lily is white. It is almost certain that if 'Emily is a mouse' or 'Daniel left the milk' or both then Bernhard is a frog. It is probably the case that if either 'Lily is white' or 'Daniel left the milk' but not both then Brian is a rhino. We believe that if 'Daniel left the milk and Lily is white' then Mary went to the bedroom.,It is probable that 'Brian is a rhino' or 'Lily is white' or both.," 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.1::factB. 0.2::factC. %hop1 0.95::factX:-or(factA,factB). 0.7::factY:-xor(factC,factB). 0.75::factZ:-and(factB,factC). %hop2 conclusion:-or(factY,factC). query(conclusion). ",0.256,0.98499699939988,test,probably not,probable,It is probably not the case that 'Brian is a rhino' or 'Lily is white' or both.,It is probable that 'Brian is a rhino' or 'Lily is white' or both.,0,'Brian is a rhino' or 'Lily is white' or both. There is a very good chance that Lily is a swan. It is probably the case that John got the football. It is unlikely that Mary went to the office. It is impossible that if 'Mary went to the office' or 'Lily is a swan' or both then Bernhard is a rhino. There is a very good chance that if 'Lily is a swan and John got the football' then Greg is yellow. There is a better than even chance that if 'Lily is a swan and John got the football' then Emily is a sheep.,It is probable that either 'Lily is a swan' or 'Greg is yellow' but not both.," 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.8::factA. 0.7::factB. 0.2::factC. %hop1 0.0::factX:-or(factC,factA). 0.8::factY:-and(factA,factB). 0.6::factZ:-and(factA,factB). %hop2 conclusion:-xor(factA,factY). query(conclusion). ",0.352,0.9087817563512702,test,probably not,probable,It is probably not the case that either 'Lily is a swan' or 'Greg is yellow' but not both.,It is probable that either 'Lily is a swan' or 'Greg is yellow' but not both.,0,Either 'Lily is a swan' or 'Greg is yellow' but not both. It is impossible that Gertrude is a cat. It is probably the case that Winona is a wolf. Chances are slight that Greg is a lion. It is impossible that if 'Winona is a wolf' or 'Gertrude is a cat' or both then Lily is green. It is probably the case that if 'Gertrude is a cat' or 'Greg is a lion' or both then Mary got the football. Chances are slight that if 'Greg is a lion and Gertrude is a cat' then Fred went to the garden.,It is likely that 'Winona is a wolf' or 'Fred went to the garden' or both.," 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.0::factA. 0.7::factB. 0.1::factC. %hop1 0.0::factX:-or(factB,factA). 0.7::factY:-or(factA,factC). 0.1::factZ:-and(factC,factA). %hop2 conclusion:-or(factB,factZ). query(conclusion). ",0.7,0.9005801160232046,test,likely,little chance,It is likely that 'Winona is a wolf' or 'Fred went to the garden' or both.,There is little chance that 'Winona is a wolf' or 'Fred went to the garden' or both.,1,'Winona is a wolf' or 'Fred went to the garden' or both. We believe that John got the football. We doubt that Daniel took the apple. It is impossible that Winona is a wolf. It is probably the case that if 'Winona is a wolf and Daniel took the apple' then Fred moved to the office. It is unlikely that if 'Daniel took the apple and John got the football' then Julius is a frog. There is little chance that if 'Winona is a wolf and John got the football' then Lily is a rhino.,It is impossible that 'Julius is a frog and Lily 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.75::factA. 0.2::factB. 0.0::factC. %hop1 0.7::factX:-and(factC,factB). 0.2::factY:-and(factB,factA). 0.1::factZ:-and(factC,factA). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.0,0.9107821564312862,test,impossible,highly likely,It is impossible that 'Julius is a frog and Lily is a rhino'.,It is highly likely that 'Julius is a frog and Lily is a rhino'.,1,'Julius is a frog and Lily is a rhino'. It is highly unlikely that Greg is a rhino. Chances are about even that Bernhard is yellow. There is little chance that Mary got the football. It is highly unlikely that if either 'Mary got the football' or 'Greg is a rhino' but not both then Jason is tired. It is likely that if 'Mary got the football' or 'Bernhard is yellow' or both then Sandra dropped the milk. It is probable that if 'Mary got the football' or 'Bernhard is yellow' or both then Julius is a frog.,It is highly unlikely that 'Sandra dropped the milk and Mary got the football'.," 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.5::factB. 0.1::factC. %hop1 0.05::factX:-xor(factC,factA). 0.7::factY:-or(factC,factB). 0.7::factZ:-or(factC,factB). %hop2 conclusion:-and(factY,factC). query(conclusion). ",0.07,0.9061812362472494,test,highly unlikely,we believe,It is highly unlikely that 'Sandra dropped the milk and Mary got the football'.,We believe that 'Sandra dropped the milk and Mary got the football'.,1,'Sandra dropped the milk and Mary got the football'. It is probable that Bernhard is a swan. There is a very good chance that Brian is green. Chances are about even that John dropped the apple. It is certain that if 'Brian is green and Bernhard is a swan' then Greg is a frog. It is certain that if 'John dropped the apple' or 'Bernhard is a swan' or both then Emily is a mouse. It is impossible that if either 'John dropped the apple' or 'Brian is green' but not both then Jeff went to the bedroom.,Chances are slight that either 'Jeff went to the bedroom' or 'Greg is a frog' but not both.," 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.7::factA. 0.8::factB. 0.5::factC. %hop1 1.0::factX:-and(factB,factA). 1.0::factY:-or(factC,factA). 0.0::factZ:-xor(factC,factB). %hop2 conclusion:-xor(factZ,factX). query(conclusion). ",0.5599999999999999,0.995999199839968,test,better than even,chances are slight,There is a better than even chance that either 'Jeff went to the bedroom' or 'Greg is a frog' but not both.,Chances are slight that either 'Jeff went to the bedroom' or 'Greg is a frog' but not both.,0,Either 'Jeff went to the bedroom' or 'Greg is a frog' but not both. It is unlikely that Brian is yellow. Chances are about even that Greg is white. Chances are slight that Jessica is a cat. It is almost certain that if either 'Greg is white' or 'Jessica is a cat' but not both then Mary left the milk. Chances are about even that if 'Greg is white and Jessica is a cat' then Lily is a lion. It is almost certain that if 'Greg is white' or 'Jessica is a cat' or both then John went to the office.,It is highly unlikely that 'Lily is a lion' or 'Greg is white' or both.," 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.5::factB. 0.1::factC. %hop1 0.95::factX:-xor(factB,factC). 0.5::factY:-and(factB,factC). 0.95::factZ:-or(factB,factC). %hop2 conclusion:-or(factY,factB). query(conclusion). ",0.5,0.991998399679936,test,about even,highly unlikely,Chances are about even that 'Lily is a lion' or 'Greg is white' or both.,It is highly unlikely that 'Lily is a lion' or 'Greg is white' or both.,0,'Lily is a lion' or 'Greg is white' or both. It is highly likely that John got the apple. It is highly likely that Lily is green. We believe that Bernhard is white. It is probable that if 'John got the apple and Lily is green' then Yann is hungry. It is highly unlikely that if 'John got the apple and Bernhard is white' then Mary went to the office. There is a very good chance that if either 'John got the apple' or 'Bernhard is white' but not both then Jeff left the football.,It is highly likely that 'John got the apple' or 'Mary went to the office' or both.," 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.9::factB. 0.75::factC. %hop1 0.7::factX:-and(factA,factB). 0.05::factY:-and(factA,factC). 0.8::factZ:-xor(factA,factC). %hop2 conclusion:-or(factA,factY). query(conclusion). ",0.9,0.9645929185837168,test,highly likely,probably not,It is highly likely that 'John got the apple' or 'Mary went to the office' or both.,It is probably not the case that 'John got the apple' or 'Mary went to the office' or both.,1,'John got the apple' or 'Mary went to the office' or both. It is almost certain that Brian is yellow. It is highly unlikely that Mary went to the hallway. There is little chance that John picked up the apple. There is a very good chance that if 'John picked up the apple' or 'Mary went to the hallway' or both then Sandra got the football. It is probable that if 'Brian is yellow' or 'John picked up the apple' or both then Julius is a lion. It is almost certain that if 'Mary went to the hallway and Brian is yellow' then Bernhard is a swan.,It is likely that 'Sandra got the football' or 'Julius is a lion' or both.," 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.95::factA. 0.05::factB. 0.1::factC. %hop1 0.8::factX:-or(factC,factB). 0.7::factY:-or(factA,factC). 0.95::factZ:-and(factB,factA). %hop2 conclusion:-or(factX,factY). query(conclusion). ",0.70456,0.9351870374074815,test,likely,little chance,It is likely that 'Sandra got the football' or 'Julius is a lion' or both.,There is little chance that 'Sandra got the football' or 'Julius is a lion' or both.,1,'Sandra got the football' or 'Julius is a lion' or both. It is improbable that Lily is a swan. It is likely that Mary grabbed the apple. Chances are about even that Daniel took the football. Chances are slight that if 'Mary grabbed the apple' or 'Daniel took the football' or both then Brian is a lion. There is a better than even chance that if 'Mary grabbed the apple' or 'Lily is a swan' or both then Bernhard is green. It is improbable that if either 'Lily is a swan' or 'Daniel took the football' but not both then John moved to the garden.,It is highly unlikely that 'John moved to the garden and Mary grabbed the apple'.," 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.7::factB. 0.5::factC. %hop1 0.1::factX:-or(factB,factC). 0.6::factY:-or(factB,factA). 0.1::factZ:-xor(factA,factC). %hop2 conclusion:-and(factZ,factB). query(conclusion). ",0.035,0.9765953190638128,test,highly unlikely,certain,It is highly unlikely that 'John moved to the garden and Mary grabbed the apple'.,It is certain that 'John moved to the garden and Mary grabbed the apple'.,1,'John moved to the garden and Mary grabbed the apple'. It is unlikely that John took the football. It is likely that Winona is a mouse. Chances are about even that Brian is yellow. It is probably not the case that if 'John took the football and Brian is yellow' then Jessica is a cat. We believe that if 'Winona is a mouse' or 'Brian is yellow' or both then Bernhard is a lion. It is unlikely that if either 'Winona is a mouse' or 'Brian is yellow' but not both then Lily is a swan.,Chances are about even that 'Brian is yellow and Bernhard is a lion'.," 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.5::factC. %hop1 0.25::factX:-and(factA,factC). 0.75::factY:-or(factB,factC). 0.2::factZ:-xor(factB,factC). %hop2 conclusion:-and(factC,factY). query(conclusion). ",0.375,0.9563912782556512,test,about even,almost certain,Chances are about even that 'Brian is yellow and Bernhard is a lion'.,It is almost certain that 'Brian is yellow and Bernhard is a lion'.,1,'Brian is yellow and Bernhard is a lion'. It is unlikely that Sandra dropped the milk. Chances are slight that Julius is a lion. There is a better than even chance that Greg is yellow. It is probably the case that if 'Sandra dropped the milk and Julius is a lion' then John got the apple. There is a better than even chance that if either 'Julius is a lion' or 'Greg is yellow' but not both then Bernhard is green. We doubt that if 'Sandra dropped the milk' or 'Julius is a lion' or both then Lily is yellow.,It is certain that 'Sandra dropped the milk and Julius is a lion'.," 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.1::factB. 0.6::factC. %hop1 0.7::factX:-and(factA,factB). 0.6::factY:-xor(factB,factC). 0.2::factZ:-or(factA,factB). %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.02000000000000001,0.9283856771354271,test,almost no chance,certain,There is almost no chance that 'Sandra dropped the milk and Julius is a lion'.,It is certain that 'Sandra dropped the milk and Julius is a lion'.,0,'Sandra dropped the milk and Julius is a lion'. It is highly likely that Jeff moved to the office. It is impossible that Julius is a rhino. It is improbable that John went to the kitchen. It is highly likely that if 'John went to the kitchen and Julius is a rhino' then Lily is green. It is highly likely that if either 'Julius is a rhino' or 'Jeff moved to the office' but not both then Fred dropped the milk. There is almost no chance that if either 'John went to the kitchen' or 'Julius is a rhino' but not both then Brian is white.,It is highly likely that 'Jeff moved to the office' or 'Fred dropped the milk' or both.," 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.0::factB. 0.1::factC. %hop1 0.9::factX:-and(factC,factB). 0.9::factY:-xor(factB,factA). 0.02::factZ:-xor(factC,factB). %hop2 conclusion:-or(factA,factY). query(conclusion). ",0.9,0.9439887977595519,test,highly likely,we doubt,It is highly likely that 'Jeff moved to the office' or 'Fred dropped the milk' or both.,We doubt that 'Jeff moved to the office' or 'Fred dropped the milk' or both.,1,'Jeff moved to the office' or 'Fred dropped the milk' or both. It is likely that Mary went to the garden. It is likely that Brian is a swan. There is a better than even chance that Bernhard is a rhino. There is little chance that if 'Brian is a swan and Bernhard is a rhino' then Julius is gray. Chances are slight that if 'Mary went to the garden' or 'Brian is a swan' or both then Sandra got the milk. It is probable that if 'Bernhard is a rhino' or 'Mary went to the garden' or both then Lily is yellow.,It is highly likely that 'Mary went to the garden' or 'Bernhard is a rhino' or both.," 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.7::factA. 0.7::factB. 0.6::factC. %hop1 0.1::factX:-and(factB,factC). 0.1::factY:-or(factA,factB). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.88,0.9877975595119024,test,highly likely,little chance,It is highly likely that 'Mary went to the garden' or 'Bernhard is a rhino' or both.,There is little chance that 'Mary went to the garden' or 'Bernhard is a rhino' or both.,1,'Mary went to the garden' or 'Bernhard is a rhino' or both. We doubt that Lily is a lion. It is almost certain that Bernhard is white. There is almost no chance that Jeff left the apple. Chances are about even that if either 'Jeff left the apple' or 'Lily is a lion' but not both then Greg is a rhino. It is highly likely that if either 'Jeff left the apple' or 'Lily is a lion' but not both then John took the milk. We believe that if 'Jeff left the apple' or 'Lily is a lion' or both then Mary got the football.,It is probable that either 'Lily is a lion' or 'Mary got the football' but not both.," 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.95::factB. 0.02::factC. %hop1 0.5::factX:-xor(factC,factA). 0.9::factY:-xor(factC,factA). 0.75::factZ:-or(factC,factA). %hop2 conclusion:-xor(factA,factZ). query(conclusion). ",0.06199999999999999,0.9195839167833567,test,highly unlikely,probable,It is highly unlikely that either 'Lily is a lion' or 'Mary got the football' but not both.,It is probable that either 'Lily is a lion' or 'Mary got the football' but not both.,0,Either 'Lily is a lion' or 'Mary got the football' but not both. It is likely that Bernhard is a lion. Chances are slight that Jason is tired. Chances are about even that John went to the hallway. It is highly likely that if 'John went to the hallway and Bernhard is a lion' then Greg is a swan. There is a better than even chance that if 'Bernhard is a lion' or 'John went to the hallway' or both then Lily is white. It is unlikely that if 'John went to the hallway and Jason is tired' then Julius is a swan.,It is highly unlikely that either 'Lily is white' or 'John went to the hallway' but not both.," 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.7::factA. 0.1::factB. 0.5::factC. %hop1 0.9::factX:-and(factC,factA). 0.6::factY:-or(factA,factC). 0.2::factZ:-and(factC,factB). %hop2 conclusion:-xor(factY,factC). query(conclusion). ",0.41000000000000003,0.9743948789757951,test,about even,highly unlikely,Chances are about even that either 'Lily is white' or 'John went to the hallway' but not both.,It is highly unlikely that either 'Lily is white' or 'John went to the hallway' but not both.,0,Either 'Lily is white' or 'John went to the hallway' but not both. Chances are about even that John went to the hallway. It is improbable that Bernhard is a frog. There is little chance that Bill got the milk there. It is probably not the case that if 'John went to the hallway' or 'Bernhard is a frog' or both then Antoine is thirsty. We believe that if either 'Bernhard is a frog' or 'John went to the hallway' but not both then Jessica is a cat. We believe that if 'Bill got the milk there and Bernhard is a frog' then Brian is a rhino.,It is impossible that 'Brian is a rhino and Jessica 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.5::factA. 0.1::factB. 0.1::factC. %hop1 0.25::factX:-or(factA,factB). 0.75::factY:-xor(factB,factA). 0.75::factZ:-and(factC,factB). %hop2 conclusion:-and(factZ,factY). query(conclusion). ",0.0028125000000000016,0.9731946389277856,test,impossible,highly likely,It is impossible that 'Brian is a rhino and Jessica is a cat'.,It is highly likely that 'Brian is a rhino and Jessica is a cat'.,1,'Brian is a rhino and Jessica is a cat'. It is probably not the case that Brian is a swan. There is almost no chance that Greg is a frog. It is certain that Bernhard is yellow. It is impossible that if 'Brian is a swan' or 'Bernhard is yellow' or both then Mary left the milk. It is likely that if either 'Greg is a frog' or 'Bernhard is yellow' but not both then Julius is white. It is probable that if 'Bernhard is yellow and Brian is a swan' then John went to the kitchen.,There is almost no chance that 'Mary left the milk' or 'Greg is a frog' or both.," 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.25::factA. 0.02::factB. 1.0::factC. %hop1 0.0::factX:-or(factA,factC). 0.7::factY:-xor(factB,factC). 0.7::factZ:-and(factC,factA). %hop2 conclusion:-or(factX,factB). query(conclusion). ",0.02,0.9151830366073215,test,almost no chance,certain,There is almost no chance that 'Mary left the milk' or 'Greg is a frog' or both.,It is certain that 'Mary left the milk' or 'Greg is a frog' or both.,1,'Mary left the milk' or 'Greg is a frog' or both. There is little chance that Mary left the football. There is almost no chance that John dropped the apple. There is almost no chance that Julius is a rhino. It is highly unlikely that if 'John dropped the apple' or 'Julius is a rhino' or both then Winona is a cat. It is certain that if 'Julius is a rhino and John dropped the apple' then Brian is a lion. Chances are about even that if 'John dropped the apple and Julius is a rhino' then Lily is green.,It is likely that 'Julius is a rhino' or 'Lily is green' or both.," 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.02::factB. 0.02::factC. %hop1 0.05::factX:-or(factB,factC). 1.0::factY:-and(factC,factB). 0.5::factZ:-and(factB,factC). %hop2 conclusion:-or(factC,factZ). query(conclusion). ",0.02,0.9483896779355871,test,almost no chance,likely,There is almost no chance that 'Julius is a rhino' or 'Lily is green' or both.,It is likely that 'Julius is a rhino' or 'Lily is green' or both.,0,'Julius is a rhino' or 'Lily is green' or both. Chances are about even that Emily is a wolf. We believe that Bernhard is a lion. We doubt that John moved to the garden. It is likely that if 'John moved to the garden' or 'Bernhard is a lion' or both then Winona is a sheep. It is almost certain that if either 'John moved to the garden' or 'Bernhard is a lion' but not both then Brian is white. It is improbable that if either 'John moved to the garden' or 'Emily is a wolf' but not both then Sandra left the apple.,It is almost certain that 'Winona is a sheep and Bernhard is a lion'.," 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.5::factA. 0.75::factB. 0.2::factC. %hop1 0.7::factX:-or(factC,factB). 0.95::factY:-xor(factC,factB). 0.1::factZ:-xor(factC,factA). %hop2 conclusion:-and(factX,factB). query(conclusion). ",0.525,0.9835967193438688,test,about even,almost certain,Chances are about even that 'Winona is a sheep and Bernhard is a lion'.,It is almost certain that 'Winona is a sheep and Bernhard is a lion'.,0,'Winona is a sheep and Bernhard is a lion'. There is a very good chance that Fred left the football. There is almost no chance that Julius is gray. It is improbable that Lily is a rhino. It is highly likely that if 'Fred left the football and Julius is gray' then Bernhard is yellow. It is unlikely that if 'Julius is gray' or 'Lily is a rhino' or both then Mary went to the hallway. It is improbable that if either 'Fred left the football' or 'Lily is a rhino' but not both then Greg is a rhino.,There is a very good chance that either 'Julius is gray' or 'Mary went to the hallway' but not both.," 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.8::factA. 0.02::factB. 0.1::factC. %hop1 0.9::factX:-and(factA,factB). 0.2::factY:-or(factB,factC). 0.1::factZ:-xor(factA,factC). %hop2 conclusion:-xor(factB,factY). query(conclusion). ",0.0356,0.9597919583916783,test,highly unlikely,very good chance,It is highly unlikely that either 'Julius is gray' or 'Mary went to the hallway' but not both.,There is a very good chance that either 'Julius is gray' or 'Mary went to the hallway' but not both.,0,Either 'Julius is gray' or 'Mary went to the hallway' but not both. There is almost no chance that Bernhard is yellow. It is highly unlikely that Mary moved to the office. There is almost no chance that John dropped the apple. It is impossible that if either 'John dropped the apple' or 'Mary moved to the office' but not both then Julius is white. There is little chance that if 'Mary moved to the office' or 'Bernhard is yellow' or both then Greg is a swan. We doubt that if 'Mary moved to the office' or 'Bernhard is yellow' or both then Daniel left the milk.,It is highly unlikely that 'Mary moved to the office' or 'John dropped the apple' or both.," 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.02::factA. 0.05::factB. 0.02::factC. %hop1 0.0::factX:-xor(factC,factB). 0.1::factY:-or(factB,factA). 0.2::factZ:-or(factB,factA). %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.069,0.9407881576315263,test,highly unlikely,probable,It is highly unlikely that 'Mary moved to the office' or 'John dropped the apple' or both.,It is probable that 'Mary moved to the office' or 'John dropped the apple' or both.,1,'Mary moved to the office' or 'John dropped the apple' or both. There is little chance that Antoine is hungry. It is highly likely that Julius is gray. There is almost no chance that Brian is a frog. It is improbable that if either 'Brian is a frog' or 'Antoine is hungry' but not both then John moved to the garden. It is improbable that if either 'Antoine is hungry' or 'Brian is a frog' but not both then Winona is a sheep. There is almost no chance that if 'Brian is a frog' or 'Julius is gray' or both then Mary left the football.,There is a better than even chance that 'Antoine is hungry and Brian is a frog'.," 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.9::factB. 0.02::factC. %hop1 0.1::factX:-xor(factC,factA). 0.1::factY:-xor(factA,factC). 0.02::factZ:-or(factC,factB). %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.0020000000000000005,0.9575915183036607,test,impossible,better than even,It is impossible that 'Antoine is hungry and Brian is a frog'.,There is a better than even chance that 'Antoine is hungry and Brian is a frog'.,0,'Antoine is hungry and Brian is a frog'. It is certain that Jeff went to the bedroom. Chances are about even that Bernhard is green. It is certain that John picked up the apple. Chances are slight that if 'John picked up the apple' or 'Bernhard is green' or both then Julius is white. There is a very good chance that if 'John picked up the apple and Jeff went to the bedroom' then Brian is a rhino. It is probably not the case that if either 'John picked up the apple' or 'Jeff went to the bedroom' but not both then Sandra took the milk.,It is highly unlikely that 'John picked up the apple' or 'Brian is a rhino' or both.," 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 1.0::factA. 0.5::factB. 1.0::factC. %hop1 0.1::factX:-or(factC,factB). 0.8::factY:-and(factC,factA). 0.25::factZ:-xor(factC,factA). %hop2 conclusion:-or(factC,factY). query(conclusion). ",1.0,0.9097819563912782,test,certain,highly unlikely,It is certain that 'John picked up the apple' or 'Brian is a rhino' or both.,It is highly unlikely that 'John picked up the apple' or 'Brian is a rhino' or both.,0,'John picked up the apple' or 'Brian is a rhino' or both. There is little chance that John dropped the apple. It is unlikely that Brian is a frog. It is certain that Bernhard is a swan. It is almost certain that if 'Bernhard is a swan' or 'John dropped the apple' or both then Julius is green. It is impossible that if 'Bernhard is a swan' or 'John dropped the apple' or both then Daniel grabbed the milk. It is unlikely that if either 'Brian is a frog' or 'John dropped the apple' but not both then Mary went to the office.,It is probably the case that either 'Mary went to the office' or 'Brian is a frog' but not both.," 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. 1.0::factC. %hop1 0.95::factX:-or(factC,factA). 0.0::factY:-or(factC,factA). 0.2::factZ:-xor(factB,factA). %hop2 conclusion:-xor(factZ,factB). query(conclusion). ",0.18000000000000002,0.9799959991998399,test,we doubt,probably,We doubt that either 'Mary went to the office' or 'Brian is a frog' but not both.,It is probably the case that either 'Mary went to the office' or 'Brian is a frog' but not both.,0,Either 'Mary went to the office' or 'Brian is a frog' but not both. It is highly unlikely that Sandra left the football. We believe that Greg is gray. It is likely that Brian is a rhino. It is probably not the case that if either 'Brian is a rhino' or 'Sandra left the football' but not both then Lily is a frog. Chances are slight that if either 'Greg is gray' or 'Brian is a rhino' but not both then Gertrude is a cat. There is almost no chance that if either 'Greg is gray' or 'Sandra left the football' but not both then Mary discarded the milk.,It is unlikely that either 'Brian is a rhino' or 'Gertrude is a cat' but not both.," 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.75::factB. 0.7::factC. %hop1 0.25::factX:-xor(factC,factA). 0.1::factY:-xor(factB,factC). 0.02::factZ:-xor(factB,factA). %hop2 conclusion:-xor(factC,factY). query(conclusion). ",0.705,0.9075815163032607,test,likely,unlikely,It is likely that either 'Brian is a rhino' or 'Gertrude is a cat' but not both.,It is unlikely that either 'Brian is a rhino' or 'Gertrude is a cat' but not both.,0,Either 'Brian is a rhino' or 'Gertrude is a cat' but not both. It is certain that Greg is a swan. It is probable that Daniel got the milk. Chances are about even that Brian is yellow. There is almost no chance that if 'Daniel got the milk' or 'Brian is yellow' or both then Bernhard is gray. There is little chance that if either 'Daniel got the milk' or 'Brian is yellow' but not both then Bill moved to the office. Chances are slight that if 'Brian is yellow and Greg is a swan' then Mary took the football.,Chances are about even that 'Brian is yellow and Greg is a swan'.," 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 1.0::factA. 0.7::factB. 0.5::factC. %hop1 0.02::factX:-or(factB,factC). 0.1::factY:-xor(factB,factC). 0.1::factZ:-and(factC,factA). %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.5,0.9461892378475695,test,about even,almost certain,Chances are about even that 'Brian is yellow and Greg is a swan'.,It is almost certain that 'Brian is yellow and Greg is a swan'.,1,'Brian is yellow and Greg is a swan'. It is probable that Greg is a lion. There is a very good chance that Sandra grabbed the milk. It is probable that Julius is a swan. It is almost certain that if either 'Sandra grabbed the milk' or 'Julius is a swan' but not both then Lily is a frog. There is little chance that if 'Julius is a swan and Greg is a lion' then Mary went to the office. There is almost no chance that if either 'Greg is a lion' or 'Sandra grabbed the milk' but not both then Bernhard is yellow.,It is impossible that 'Bernhard is yellow and Mary went to the office'.," 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.7::factA. 0.8::factB. 0.7::factC. %hop1 0.95::factX:-xor(factB,factC). 0.1::factY:-and(factC,factA). 0.02::factZ:-xor(factA,factB). %hop2 conclusion:-and(factZ,factY). query(conclusion). ",0.00019600000000000018,0.9673934786957391,test,impossible,better than even,It is impossible that 'Bernhard is yellow and Mary went to the office'.,There is a better than even chance that 'Bernhard is yellow and Mary went to the office'.,1,'Bernhard is yellow and Mary went to the office'. It is improbable that Julius is a swan. It is improbable that Lily is a lion. We doubt that Greg is green. We believe that if 'Greg is green and Lily is a lion' then Mary got the football. It is highly likely that if either 'Lily is a lion' or 'Greg is green' but not both then John went to the garden. It is almost certain that if 'Greg is green and Julius is a swan' then Bernhard is a rhino.,It is probably the case that 'Bernhard is a rhino and Greg 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.1::factB. 0.2::factC. %hop1 0.75::factX:-and(factC,factB). 0.9::factY:-xor(factB,factC). 0.95::factZ:-and(factC,factA). %hop2 conclusion:-and(factZ,factC). query(conclusion). ",0.01900000000000001,0.9433886777355471,test,almost no chance,probably,There is almost no chance that 'Bernhard is a rhino and Greg is green'.,It is probably the case that 'Bernhard is a rhino and Greg is green'.,0,'Bernhard is a rhino and Greg is green'. There is a very good chance that Mary dropped the milk. We doubt that Lily is a swan. It is highly likely that Greg is white. It is highly likely that if either 'Lily is a swan' or 'Greg is white' but not both then Brian is a frog. We believe that if either 'Mary dropped the milk' or 'Lily is a swan' but not both then Bernhard is green. It is highly likely that if either 'Lily is a swan' or 'Mary dropped the milk' but not both then Julius is a rhino.,It is almost certain that either 'Greg is white' or 'Brian is a frog' but not both.," 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.8::factA. 0.2::factB. 0.9::factC. %hop1 0.9::factX:-xor(factB,factC). 0.75::factY:-xor(factA,factB). 0.9::factZ:-xor(factB,factA). %hop2 conclusion:-xor(factC,factX). query(conclusion). ",0.26999999999999996,0.9239847969593918,test,probably not,almost certain,It is probably not the case that either 'Greg is white' or 'Brian is a frog' but not both.,It is almost certain that either 'Greg is white' or 'Brian is a frog' but not both.,0,Either 'Greg is white' or 'Brian is a frog' but not both. We believe that Greg is a swan. It is probably the case that Bernhard is a frog. It is highly unlikely that Jessica is a sheep. There is a very good chance that if 'Greg is a swan and Bernhard is a frog' then John went to the office. It is almost certain that if either 'Jessica is a sheep' or 'Bernhard is a frog' but not both then Lily is yellow. It is likely that if 'Greg is a swan' or 'Jessica is a sheep' or both then Mary got the apple.,It is almost certain that 'Greg is a swan and Lily is yellow'.," 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.75::factA. 0.7::factB. 0.05::factC. %hop1 0.8::factX:-and(factA,factB). 0.95::factY:-xor(factC,factB). 0.7::factZ:-or(factA,factC). %hop2 conclusion:-and(factA,factY). query(conclusion). ",0.48449999999999993,0.9413882776555311,test,about even,almost certain,Chances are about even that 'Greg is a swan and Lily is yellow'.,It is almost certain that 'Greg is a swan and Lily is yellow'.,0,'Greg is a swan and Lily is yellow'. It is impossible that Mary took the football. It is likely that Sandra got the milk. We believe that Jeff moved to the garden. We believe that if 'Sandra got the milk and Jeff moved to the garden' then Bill went to the office. There is a better than even chance that if either 'Jeff moved to the garden' or 'Sandra got the milk' but not both then Bernhard is a rhino. It is highly unlikely that if 'Mary took the football' or 'Jeff moved to the garden' or both then Jessica is a cat.,It is highly unlikely that 'Jessica is a cat' or 'Bill went to the office' or both.," 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.0::factA. 0.7::factB. 0.75::factC. %hop1 0.75::factX:-and(factB,factC). 0.6::factY:-xor(factC,factB). 0.05::factZ:-or(factA,factC). %hop2 conclusion:-or(factZ,factX). query(conclusion). ",0.41156249999999994,0.9085817163432687,test,about even,highly unlikely,Chances are about even that 'Jessica is a cat' or 'Bill went to the office' or both.,It is highly unlikely that 'Jessica is a cat' or 'Bill went to the office' or both.,0,'Jessica is a cat' or 'Bill went to the office' or both. It is probably not the case that John picked up the milk. It is improbable that Greg is a swan. There is a better than even chance that Lily is a lion. It is almost certain that if 'Lily is a lion' or 'John picked up the milk' or both then Jason is thirsty. There is a better than even chance that if either 'John picked up the milk' or 'Greg is a swan' but not both then Julius is a frog. It is probable that if 'Lily is a lion and John picked up the milk' then Brian is green.,There is little chance that 'Lily is a lion' or 'John picked up the milk' or both.," 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.25::factA. 0.1::factB. 0.6::factC. %hop1 0.95::factX:-or(factC,factA). 0.6::factY:-xor(factA,factB). 0.7::factZ:-and(factC,factA). %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.7,0.9855971194238847,test,likely,little chance,It is likely that 'Lily is a lion' or 'John picked up the milk' or both.,There is little chance that 'Lily is a lion' or 'John picked up the milk' or both.,0,'Lily is a lion' or 'John picked up the milk' or both. It is impossible that Bernhard is a frog. There is almost no chance that Yann is hungry. There is little chance that Mary went to the bedroom. It is certain that if 'Yann is hungry and Bernhard is a frog' then Emily is a wolf. There is a better than even chance that if either 'Mary went to the bedroom' or 'Yann is hungry' but not both then Jessica is a cat. It is probably not the case that if either 'Yann is hungry' or 'Mary went to the bedroom' but not both then Brian is gray.,It is almost certain that either 'Yann is hungry' or 'Brian is gray' but not both.," 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.0::factA. 0.02::factB. 0.1::factC. %hop1 1.0::factX:-and(factB,factA). 0.6::factY:-xor(factC,factB). 0.25::factZ:-xor(factB,factC). %hop2 conclusion:-xor(factB,factZ). query(conclusion). ",0.04000000000000001,0.9901980396079216,test,highly unlikely,almost certain,It is highly unlikely that either 'Yann is hungry' or 'Brian is gray' but not both.,It is almost certain that either 'Yann is hungry' or 'Brian is gray' but not both.,0,Either 'Yann is hungry' or 'Brian is gray' but not both. We doubt that John moved to the office. Chances are about even that Bill went to the garden. We doubt that Mary picked up the apple. There is little chance that if either 'John moved to the office' or 'Mary picked up the apple' but not both then Winona is a wolf. It is certain that if 'Bill went to the garden' or 'John moved to the office' or both then Bernhard is white. It is highly unlikely that if either 'Mary picked up the apple' or 'Bill went to the garden' but not both then Sandra left the football.,There is almost no chance that 'Bernhard is white and Sandra left the football'.," 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.5::factB. 0.2::factC. %hop1 0.1::factX:-xor(factA,factC). 1.0::factY:-or(factB,factA). 0.05::factZ:-xor(factC,factB). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.021000000000000005,0.9393878775755151,test,almost no chance,almost certain,There is almost no chance that 'Bernhard is white and Sandra left the football'.,It is almost certain that 'Bernhard is white and Sandra left the football'.,1,'Bernhard is white and Sandra left the football'. It is highly likely that Daniel took the apple. There is a very good chance that Brian is a frog. It is certain that Greg is white. It is improbable that if 'Brian is a frog' or 'Daniel took the apple' or both then John went to the garden. Chances are about even that if either 'Brian is a frog' or 'Greg is white' but not both then Lily is a lion. It is almost certain that if 'Brian is a frog' or 'Greg is white' or both then Julius is green.,It is almost certain that 'Julius is green and Greg is white'.," 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.8::factB. 1.0::factC. %hop1 0.1::factX:-or(factB,factA). 0.5::factY:-xor(factB,factC). 0.95::factZ:-or(factB,factC). %hop2 conclusion:-and(factZ,factC). query(conclusion). ",0.95,0.9491898379675935,test,almost certain,little chance,It is almost certain that 'Julius is green and Greg is white'.,There is little chance that 'Julius is green and Greg is white'.,1,'Julius is green and Greg is white'. It is highly likely that Sumit is hungry. It is highly likely that Yann is bored. Chances are about even that Lily is a lion. It is improbable that if 'Yann is bored and Sumit is hungry' then Mary left the apple. It is probably not the case that if either 'Lily is a lion' or 'Yann is bored' but not both then Sandra dropped the milk. It is highly unlikely that if 'Yann is bored and Lily is a lion' then Brian is a lion.,It is impossible that 'Sumit is hungry' or 'Yann is bored' or both.," 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.9::factB. 0.5::factC. %hop1 0.1::factX:-and(factB,factA). 0.25::factY:-xor(factC,factB). 0.05::factZ:-and(factB,factC). %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.99,0.9105821164232847,test,certain,impossible,It is certain that 'Sumit is hungry' or 'Yann is bored' or both.,It is impossible that 'Sumit is hungry' or 'Yann is bored' or both.,0,'Sumit is hungry' or 'Yann is bored' or both. We doubt that Sumit is thirsty. It is probably not the case that Bernhard is gray. There is a very good chance that John discarded the milk. There is a very good chance that if 'Bernhard is gray' or 'Sumit is thirsty' or both then Mary got the football. It is highly unlikely that if either 'Sumit is thirsty' or 'Bernhard is gray' but not both then Greg is a swan. There is almost no chance that if 'Sumit is thirsty' or 'John discarded the milk' or both then Emily is a wolf.,It is highly likely that 'Mary got the football' or 'John discarded the milk' or both.," 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.25::factB. 0.8::factC. %hop1 0.8::factX:-or(factB,factA). 0.05::factY:-xor(factA,factB). 0.02::factZ:-or(factA,factC). %hop2 conclusion:-or(factX,factC). query(conclusion). ",0.8640000000000001,0.9971994398879775,test,highly likely,unlikely,It is highly likely that 'Mary got the football' or 'John discarded the milk' or both.,It is unlikely that 'Mary got the football' or 'John discarded the milk' or both.,1,'Mary got the football' or 'John discarded the milk' or both. We believe that Sandra dropped the milk. It is highly likely that Jason is bored. It is almost certain that Mary went to the office. It is improbable that if 'Sandra dropped the milk and Mary went to the office' then Jessica is a sheep. It is probably the case that if either 'Sandra dropped the milk' or 'Mary went to the office' but not both then Greg is gray. Chances are about even that if 'Mary went to the office' or 'Jason is bored' or both then John moved to the garden.,It is highly likely that 'Greg is gray and John moved to the garden'.," 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.75::factA. 0.9::factB. 0.95::factC. %hop1 0.1::factX:-and(factA,factC). 0.7::factY:-xor(factA,factC). 0.5::factZ:-or(factC,factB). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.09493749999999998,0.955991198239648,test,improbable,highly likely,It is improbable that 'Greg is gray and John moved to the garden'.,It is highly likely that 'Greg is gray and John moved to the garden'.,0,'Greg is gray and John moved to the garden'. It is certain that Greg is a rhino. We believe that Winona is a cat. It is improbable that Brian is yellow. It is probable that if 'Winona is a cat' or 'Greg is a rhino' or both then Julius is a swan. There is a better than even chance that if either 'Greg is a rhino' or 'Winona is a cat' but not both then Mary took the milk. It is impossible that if either 'Brian is yellow' or 'Greg is a rhino' but not both then Bernhard is a swan.,It is likely that either 'Brian is yellow' or 'Mary took the milk' but not both.," 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 1.0::factA. 0.75::factB. 0.1::factC. %hop1 0.7::factX:-or(factB,factA). 0.6::factY:-xor(factA,factB). 0.0::factZ:-xor(factC,factA). %hop2 conclusion:-xor(factC,factY). query(conclusion). ",0.22000000000000006,0.9345869173834767,test,we doubt,likely,We doubt that either 'Brian is yellow' or 'Mary took the milk' but not both.,It is likely that either 'Brian is yellow' or 'Mary took the milk' but not both.,0,Either 'Brian is yellow' or 'Mary took the milk' but not both. Chances are slight that John moved to the office. It is highly likely that Mary went to the kitchen. It is probable that Bernhard is green. We doubt that if 'Bernhard is green' or 'Mary went to the kitchen' or both then Fred is in the school. It is improbable that if 'Bernhard is green' or 'John moved to the office' or both then Emily is a sheep. Chances are about even that if 'Bernhard is green and Mary went to the kitchen' then Lily is a frog.,It is impossible that either 'John moved to the office' or 'Mary went to the kitchen' but not both.," 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.9::factB. 0.7::factC. %hop1 0.2::factX:-or(factC,factB). 0.1::factY:-or(factC,factA). 0.5::factZ:-and(factC,factB). %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.82,0.9571914382876575,test,very good chance,impossible,There is a very good chance that either 'John moved to the office' or 'Mary went to the kitchen' but not both.,It is impossible that either 'John moved to the office' or 'Mary went to the kitchen' but not both.,0,Either 'John moved to the office' or 'Mary went to the kitchen' but not both. It is highly likely that Julius is a frog. Chances are slight that Jeff went to the bedroom. It is likely that John discarded the apple. It is unlikely that if either 'John discarded the apple' or 'Julius is a frog' but not both then Bernhard is a swan. It is probably not the case that if 'John discarded the apple' or 'Julius is a frog' or both then Brian is a lion. There is little chance that if 'Julius is a frog' or 'Jeff went to the bedroom' or both then Greg is a rhino.,We doubt that either 'Greg is a rhino' or 'Jeff went to the bedroom' but not both.," 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.1::factB. 0.7::factC. %hop1 0.2::factX:-xor(factC,factA). 0.25::factY:-or(factC,factA). 0.1::factZ:-or(factA,factB). %hop2 conclusion:-xor(factZ,factB). query(conclusion). ",0.17100000000000004,0.9793958791758351,test,we doubt,very good chance,We doubt that either 'Greg is a rhino' or 'Jeff went to the bedroom' but not both.,There is a very good chance that either 'Greg is a rhino' or 'Jeff went to the bedroom' but not both.,1,Either 'Greg is a rhino' or 'Jeff went to the bedroom' but not both. There is almost no chance that Bernhard is green. There is a very good chance that Julius is gray. We believe that Mary got the football. It is certain that if 'Julius is gray' or 'Mary got the football' or both then Brian is a lion. It is unlikely that if 'Bernhard is green and Mary got the football' then John went to the kitchen. It is highly unlikely that if 'Bernhard is green and Mary got the football' then Lily is a swan.,It is impossible that 'Brian is a lion' or 'Lily is a swan' or both.," 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.02::factA. 0.8::factB. 0.75::factC. %hop1 1.0::factX:-or(factB,factC). 0.2::factY:-and(factA,factC). 0.05::factZ:-and(factA,factC). %hop2 conclusion:-or(factX,factZ). query(conclusion). ",0.9500000000000001,0.911382276455291,test,almost certain,impossible,It is almost certain that 'Brian is a lion' or 'Lily is a swan' or both.,It is impossible that 'Brian is a lion' or 'Lily is a swan' or both.,0,'Brian is a lion' or 'Lily is a swan' or both. We believe that Sandra left the football. We believe that Lily is a swan. There is a better than even chance that Emily is a mouse. It is impossible that if 'Sandra left the football and Emily is a mouse' then Winona is a sheep. It is certain that if 'Lily is a swan and Sandra left the football' then Gertrude is a cat. It is probably the case that if 'Emily is a mouse' or 'Sandra left the football' or both then Brian is white.,It is improbable that 'Gertrude is a cat' or 'Brian is white' or both.," 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.75::factA. 0.75::factB. 0.6::factC. %hop1 0.0::factX:-and(factA,factC). 1.0::factY:-and(factB,factA). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-or(factY,factZ). query(conclusion). ",0.79875,0.9453890778155631,test,very good chance,improbable,There is a very good chance that 'Gertrude is a cat' or 'Brian is white' or both.,It is improbable that 'Gertrude is a cat' or 'Brian is white' or both.,0,'Gertrude is a cat' or 'Brian is white' or both. It is probable that Mary went to the garden. It is highly unlikely that Fred moved to the office. We believe that Julius is a swan. It is highly unlikely that if either 'Mary went to the garden' or 'Julius is a swan' but not both then John left the milk. It is certain that if 'Fred moved to the office and Mary went to the garden' then Lily is a lion. It is unlikely that if 'Mary went to the garden and Fred moved to the office' then Yann is tired.,It is likely that either 'Mary went to the garden' or 'Fred moved to the office' but not both.," 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.7::factA. 0.05::factB. 0.75::factC. %hop1 0.05::factX:-xor(factA,factC). 1.0::factY:-and(factB,factA). 0.2::factZ:-and(factA,factB). %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.6799999999999999,0.9353870774154831,test,likely,we doubt,It is likely that either 'Mary went to the garden' or 'Fred moved to the office' but not both.,We doubt that either 'Mary went to the garden' or 'Fred moved to the office' but not both.,1,Either 'Mary went to the garden' or 'Fred moved to the office' but not both. We believe that John went to the hallway. There is a better than even chance that Sumit is hungry. It is impossible that Julius is a swan. There is a better than even chance that if 'John went to the hallway and Sumit is hungry' then Brian is a frog. It is highly likely that if 'Julius is a swan and Sumit is hungry' then Bernhard is yellow. There is little chance that if 'John went to the hallway and Sumit is hungry' then Mary took the football.,It is almost certain that 'Mary took the football and Bernhard is yellow'.," 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.75::factA. 0.6::factB. 0.0::factC. %hop1 0.6::factX:-and(factA,factB). 0.9::factY:-and(factC,factB). 0.1::factZ:-and(factA,factB). %hop2 conclusion:-and(factZ,factY). query(conclusion). ",0.0,0.9521904380876175,test,impossible,almost certain,It is impossible that 'Mary took the football and Bernhard is yellow'.,It is almost certain that 'Mary took the football and Bernhard is yellow'.,0,'Mary took the football and Bernhard is yellow'. It is highly likely that Greg is a rhino. It is probably the case that Sandra left the milk. There is almost no chance that Mary went to the hallway. It is improbable that if 'Sandra left the milk and Mary went to the hallway' then Lily is a swan. There is little chance that if 'Mary went to the hallway' or 'Sandra left the milk' or both then John moved to the office. It is certain that if 'Sandra left the milk and Mary went to the hallway' then Winona is a mouse.,There is almost no chance that 'Greg is a rhino and Mary went to the hallway'.," 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.02::factC. %hop1 0.1::factX:-and(factB,factC). 0.1::factY:-or(factC,factB). 1.0::factZ:-and(factB,factC). %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.018000000000000002,0.9419883976795359,test,almost no chance,highly likely,There is almost no chance that 'Greg is a rhino and Mary went to the hallway'.,It is highly likely that 'Greg is a rhino and Mary went to the hallway'.,1,'Greg is a rhino and Mary went to the hallway'. There is a very good chance that John went to the hallway. There is a very good chance that Bernhard is a swan. It is certain that Sandra left the football. It is highly likely that if 'Bernhard is a swan and John went to the hallway' then Julius is a rhino. There is a better than even chance that if 'Sandra left the football and John went to the hallway' then Mary got the apple. It is unlikely that if 'John went to the hallway' or 'Sandra left the football' or both then Lily is a lion.,It is unlikely that either 'Julius is a rhino' or 'John went to the hallway' but not both.," 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.8::factA. 0.8::factB. 1.0::factC. %hop1 0.9::factX:-and(factB,factA). 0.6::factY:-and(factC,factA). 0.2::factZ:-or(factA,factC). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.22399999999999998,0.9867973594718944,test,unlikely,certain,It is unlikely that either 'Julius is a rhino' or 'John went to the hallway' but not both.,It is certain that either 'Julius is a rhino' or 'John went to the hallway' but not both.,1,Either 'Julius is a rhino' or 'John went to the hallway' but not both. We believe that Bernhard is a swan. It is highly likely that Julius is a rhino. It is certain that Sandra took the milk. It is probable that if 'Sandra took the milk and Bernhard is a swan' then Lily is a lion. It is certain that if either 'Julius is a rhino' or 'Sandra took the milk' but not both then Mary grabbed the apple. It is unlikely that if 'Bernhard is a swan and Julius is a rhino' then Brian is white.,Chances are slight that 'Sandra took the milk and Mary grabbed the apple'.," 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.75::factA. 0.9::factB. 1.0::factC. %hop1 0.7::factX:-and(factC,factA). 1.0::factY:-xor(factB,factC). 0.2::factZ:-and(factA,factB). %hop2 conclusion:-and(factC,factY). query(conclusion). ",0.09999999999999998,0.9021804360872174,test,chances are slight,highly likely,Chances are slight that 'Sandra took the milk and Mary grabbed the apple'.,It is highly likely that 'Sandra took the milk and Mary grabbed the apple'.,1,'Sandra took the milk and Mary grabbed the apple'. It is unlikely that Brian is yellow. Chances are slight that John went to the hallway. It is likely that Julius is gray. Chances are slight that if 'Julius is gray and Brian is yellow' then Jason is tired. It is likely that if 'Brian is yellow and Julius is gray' then Winona is a wolf. It is probably the case that if 'Brian is yellow' or 'Julius is gray' or both then Greg is a swan.,There is almost no chance that 'Brian is yellow and Jason is tired'.," 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.1::factB. 0.7::factC. %hop1 0.1::factX:-and(factC,factA). 0.7::factY:-and(factA,factC). 0.7::factZ:-or(factA,factC). %hop2 conclusion:-and(factA,factX). query(conclusion). ",0.014000000000000007,0.9295859171834366,test,almost no chance,better than even,There is almost no chance that 'Brian is yellow and Jason is tired'.,There is a better than even chance that 'Brian is yellow and Jason is tired'.,1,'Brian is yellow and Jason is tired'. It is probably not the case that Brian is a rhino. It is probable that Yann is tired. Chances are slight that Mary put down the apple. We doubt that if 'Yann is tired and Brian is a rhino' then Lily is a lion. It is highly likely that if 'Mary put down the apple and Yann is tired' then Bill went to the office. Chances are slight that if 'Mary put down the apple and Yann is tired' then Julius is yellow.,Chances are slight that 'Mary put down the apple' or 'Lily is a lion' or both.," 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.25::factA. 0.7::factB. 0.1::factC. %hop1 0.2::factX:-and(factB,factA). 0.9::factY:-and(factC,factB). 0.1::factZ:-and(factC,factB). %hop2 conclusion:-or(factC,factX). query(conclusion). ",0.13150000000000003,0.9837967593518704,test,chances are slight,highly likely,Chances are slight that 'Mary put down the apple' or 'Lily is a lion' or both.,It is highly likely that 'Mary put down the apple' or 'Lily is a lion' or both.,1,'Mary put down the apple' or 'Lily is a lion' or both. There is a better than even chance that Antoine is hungry. Chances are about even that Gertrude is a sheep. It is likely that Greg is a rhino. It is certain that if 'Greg is a rhino' or 'Gertrude is a sheep' or both then John got the apple. It is probably the case that if 'Antoine is hungry and Greg is a rhino' then Bill went to the garden. It is improbable that if 'Antoine is hungry' or 'Gertrude is a sheep' or both then Julius is gray.,It is almost certain that 'John got the apple' or 'Antoine is hungry' or both.," 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.5::factB. 0.7::factC. %hop1 1.0::factX:-or(factC,factB). 0.7::factY:-and(factA,factC). 0.1::factZ:-or(factA,factB). %hop2 conclusion:-or(factX,factA). query(conclusion). ",0.94,0.908381676335267,test,almost certain,highly unlikely,It is almost certain that 'John got the apple' or 'Antoine is hungry' or both.,It is highly unlikely that 'John got the apple' or 'Antoine is hungry' or both.,1,'John got the apple' or 'Antoine is hungry' or both. There is almost no chance that Jeff went to the bedroom. There is almost no chance that Brian is yellow. It is unlikely that Bernhard is a rhino. It is probably not the case that if 'Brian is yellow and Bernhard is a rhino' then Bill moved to the office. There is a very good chance that if 'Jeff went to the bedroom and Bernhard is a rhino' then Julius is a lion. It is probable that if either 'Brian is yellow' or 'Jeff went to the bedroom' but not both then Lily is white.,There is almost no chance that 'Jeff went to the bedroom' or 'Lily is white' or both.," 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.02::factA. 0.02::factB. 0.2::factC. %hop1 0.25::factX:-and(factB,factC). 0.8::factY:-and(factA,factC). 0.7::factZ:-xor(factB,factA). %hop2 conclusion:-or(factA,factZ). query(conclusion). ",0.033720000000000014,0.914382876575315,test,almost no chance,likely,There is almost no chance that 'Jeff went to the bedroom' or 'Lily is white' or both.,It is likely that 'Jeff went to the bedroom' or 'Lily is white' or both.,1,'Jeff went to the bedroom' or 'Lily is white' or both. Chances are about even that Brian is gray. We doubt that Julius is yellow. It is probable that John discarded the milk. There is a very good chance that if 'John discarded the milk' or 'Julius is yellow' or both then Greg is yellow. It is unlikely that if 'Julius is yellow' or 'John discarded the milk' or both then Sandra left the football. It is probable that if 'John discarded the milk' or 'Brian is gray' or both then Mary dropped the milk.,Chances are slight that 'Sandra left the football and Mary dropped the milk'.," 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.5::factA. 0.2::factB. 0.7::factC. %hop1 0.8::factX:-or(factC,factB). 0.2::factY:-or(factB,factC). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.10220000000000001,0.9235847169433887,test,chances are slight,we believe,Chances are slight that 'Sandra left the football and Mary dropped the milk'.,We believe that 'Sandra left the football and Mary dropped the milk'.,1,'Sandra left the football and Mary dropped the milk'. Chances are about even that Jeff moved to the garden. It is probable that Bernhard is green. We doubt that Jason is bored. It is improbable that if 'Jason is bored' or 'Jeff moved to the garden' or both then Julius is gray. It is probably the case that if 'Jeff moved to the garden' or 'Bernhard is green' or both then Lily is a lion. Chances are slight that if 'Jeff moved to the garden' or 'Bernhard is green' or both then Brian is a rhino.,It is probable that 'Brian is a rhino' or 'Bernhard is green' or both.," 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.5::factA. 0.7::factB. 0.2::factC. %hop1 0.1::factX:-or(factC,factA). 0.7::factY:-or(factA,factB). 0.1::factZ:-or(factA,factB). %hop2 conclusion:-or(factZ,factB). query(conclusion). ",0.715,0.96499299859972,test,probable,improbable,It is probable that 'Brian is a rhino' or 'Bernhard is green' or both.,It is improbable that 'Brian is a rhino' or 'Bernhard is green' or both.,1,'Brian is a rhino' or 'Bernhard is green' or both. There is almost no chance that Julius is gray. It is probably not the case that Gertrude is a sheep. It is highly unlikely that John went to the bedroom. There is little chance that if 'Julius is gray' or 'Gertrude is a sheep' or both then Sandra dropped the milk. It is improbable that if either 'Julius is gray' or 'Gertrude is a sheep' but not both then Daniel took the apple. It is probably not the case that if 'Gertrude is a sheep' or 'John went to the bedroom' or both then Greg is yellow.,Chances are about even that 'Julius is gray and Gertrude 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.02::factA. 0.25::factB. 0.05::factC. %hop1 0.1::factX:-or(factA,factB). 0.1::factY:-xor(factA,factB). 0.25::factZ:-or(factB,factC). %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.005000000000000002,0.9145829165833167,test,impossible,about even,It is impossible that 'Julius is gray and Gertrude is a sheep'.,Chances are about even that 'Julius is gray and Gertrude is a sheep'.,0,'Julius is gray and Gertrude is a sheep'. We doubt that Brian is yellow. There is a very good chance that Julius is white. We doubt that Winona is a sheep. It is impossible that if either 'Winona is a sheep' or 'Julius is white' but not both then Sumit is thirsty. It is impossible that if either 'Julius is white' or 'Winona is a sheep' but not both then Bernhard is a swan. It is impossible that if 'Julius is white' or 'Winona is a sheep' or both then Sandra dropped the milk.,It is highly likely that 'Sumit is thirsty' or 'Brian is yellow' or both.," 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.8::factB. 0.2::factC. %hop1 0.0::factX:-xor(factC,factB). 0.0::factY:-xor(factB,factC). 0.0::factZ:-or(factB,factC). %hop2 conclusion:-or(factX,factA). query(conclusion). ",0.2,0.9169833966793358,test,unlikely,highly likely,It is unlikely that 'Sumit is thirsty' or 'Brian is yellow' or both.,It is highly likely that 'Sumit is thirsty' or 'Brian is yellow' or both.,0,'Sumit is thirsty' or 'Brian is yellow' or both. It is probably not the case that Lily is white. It is highly likely that Julius is a swan. It is certain that Gertrude is a wolf. We doubt that if 'Gertrude is a wolf' or 'Julius is a swan' or both then Bernhard is gray. Chances are slight that if either 'Gertrude is a wolf' or 'Lily is white' but not both then Sandra left the milk. It is almost certain that if 'Julius is a swan and Gertrude is a wolf' then Mary went to the bedroom.,It is likely that either 'Bernhard is gray' or 'Mary went to the bedroom' but not both.," 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.25::factA. 0.9::factB. 1.0::factC. %hop1 0.2::factX:-or(factC,factB). 0.1::factY:-xor(factC,factA). 0.95::factZ:-and(factB,factC). %hop2 conclusion:-xor(factX,factZ). query(conclusion). ",0.713,0.9219843968793758,test,likely,probably not,It is likely that either 'Bernhard is gray' or 'Mary went to the bedroom' but not both.,It is probably not the case that either 'Bernhard is gray' or 'Mary went to the bedroom' but not both.,1,Either 'Bernhard is gray' or 'Mary went to the bedroom' but not both. Chances are slight that Lily is white. It is certain that Daniel got the football. It is probably the case that John went to the office. It is highly likely that if 'Daniel got the football and John went to the office' then Jessica is a cat. It is certain that if 'Lily is white' or 'John went to the office' or both then Greg is yellow. There is almost no chance that if 'Lily is white and Daniel got the football' then Gertrude is a sheep.,There is a better than even chance that 'Jessica is a cat' or 'Gertrude is a sheep' or both.," 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. 1.0::factB. 0.7::factC. %hop1 0.9::factX:-and(factB,factC). 1.0::factY:-or(factA,factC). 0.02::factZ:-and(factA,factB). %hop2 conclusion:-or(factX,factZ). query(conclusion). ",0.63074,0.9565913182636527,test,better than even,improbable,There is a better than even chance that 'Jessica is a cat' or 'Gertrude is a sheep' or both.,It is improbable that 'Jessica is a cat' or 'Gertrude is a sheep' or both.,1,'Jessica is a cat' or 'Gertrude is a sheep' or both. It is unlikely that Jeff moved to the garden. It is highly likely that Greg is yellow. It is highly likely that Julius is white. There is almost no chance that if 'Julius is white' or 'Greg is yellow' or both then Jessica is a cat. There is little chance that if either 'Jeff moved to the garden' or 'Julius is white' but not both then Bernhard is a swan. Chances are slight that if either 'Jeff moved to the garden' or 'Julius is white' but not both then Lily is green.,It is improbable that 'Bernhard is a swan' or 'Jessica is a cat' or both.," 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.9::factB. 0.9::factC. %hop1 0.02::factX:-or(factC,factB). 0.1::factY:-xor(factA,factC). 0.1::factZ:-xor(factA,factC). %hop2 conclusion:-or(factY,factX). query(conclusion). ",0.092324,0.9089817963592719,test,improbable,highly likely,It is improbable that 'Bernhard is a swan' or 'Jessica is a cat' or both.,It is highly likely that 'Bernhard is a swan' or 'Jessica is a cat' or both.,1,'Bernhard is a swan' or 'Jessica is a cat' or both. Chances are about even that Greg is white. We doubt that Gertrude is a sheep. It is highly unlikely that John went to the office. It is certain that if 'Gertrude is a sheep and John went to the office' then Bernhard is white. It is probably the case that if 'Gertrude is a sheep and Greg is white' then Mary put down the milk. It is almost certain that if either 'Gertrude is a sheep' or 'Greg is white' but not both then Julius is gray.,Chances are about even that 'John went to the office' or 'Julius is gray' or both.," 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.5::factA. 0.2::factB. 0.05::factC. %hop1 1.0::factX:-and(factB,factC). 0.7::factY:-and(factB,factA). 0.95::factZ:-xor(factB,factA). %hop2 conclusion:-or(factC,factZ). query(conclusion). ",0.50125,0.913382676535307,test,about even,almost no chance,Chances are about even that 'John went to the office' or 'Julius is gray' or both.,There is almost no chance that 'John went to the office' or 'Julius is gray' or both.,1,'John went to the office' or 'Julius is gray' or both. It is probably the case that Brian is a swan. It is highly likely that Lily is a rhino. There is almost no chance that Winona is a sheep. It is certain that if 'Lily is a rhino and Brian is a swan' then Julius is a swan. There is almost no chance that if 'Brian is a swan and Lily is a rhino' then Jeff discarded the milk. There is a better than even chance that if 'Lily is a rhino' or 'Brian is a swan' or both then Fred went to the garden.,It is probably the case that either 'Brian is a swan' or 'Lily is a rhino' but not both.," 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.7::factA. 0.9::factB. 0.02::factC. %hop1 1.0::factX:-and(factB,factA). 0.02::factY:-and(factA,factB). 0.6::factZ:-or(factB,factA). %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.33999999999999997,0.9767953590718144,test,probably not,probably,It is probably not the case that either 'Brian is a swan' or 'Lily is a rhino' but not both.,It is probably the case that either 'Brian is a swan' or 'Lily is a rhino' but not both.,0,Either 'Brian is a swan' or 'Lily is a rhino' but not both. It is almost certain that Brian is a rhino. It is probably the case that Emily is a sheep. There is almost no chance that Jessica is a mouse. It is probable that if 'Brian is a rhino and Emily is a sheep' then Bill went to the garden. It is probably not the case that if 'Jessica is a mouse and Emily is a sheep' then Winona is a wolf. There is a better than even chance that if 'Emily is a sheep' or 'Brian is a rhino' or both then Julius is a frog.,It is highly unlikely that 'Winona is a wolf' or 'Bill went to the garden' or both.," 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.95::factA. 0.7::factB. 0.02::factC. %hop1 0.7::factX:-and(factA,factB). 0.25::factY:-and(factC,factB). 0.6::factZ:-or(factB,factA). %hop2 conclusion:-or(factY,factX). query(conclusion). ",0.4666724999999999,0.9937987597519504,test,about even,highly unlikely,Chances are about even that 'Winona is a wolf' or 'Bill went to the garden' or both.,It is highly unlikely that 'Winona is a wolf' or 'Bill went to the garden' or both.,0,'Winona is a wolf' or 'Bill went to the garden' or both. Chances are about even that Sumit is thirsty. It is probably not the case that Mary picked up the apple. It is unlikely that John moved to the office. We doubt that if either 'Sumit is thirsty' or 'John moved to the office' but not both then Emily is a mouse. It is certain that if 'John moved to the office and Mary picked up the apple' then Bernhard is a rhino. It is almost certain that if 'John moved to the office' or 'Sumit is thirsty' or both then Greg is yellow.,It is highly unlikely that 'John moved to the office' or 'Sumit is thirsty' or both.," 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.5::factA. 0.25::factB. 0.2::factC. %hop1 0.2::factX:-xor(factA,factC). 1.0::factY:-and(factC,factB). 0.95::factZ:-or(factC,factA). %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.6,0.9811962392478496,test,better than even,highly unlikely,There is a better than even chance that 'John moved to the office' or 'Sumit is thirsty' or both.,It is highly unlikely that 'John moved to the office' or 'Sumit is thirsty' or both.,0,'John moved to the office' or 'Sumit is thirsty' or both. It is almost certain that Brian is a rhino. It is highly likely that John went to the hallway. It is almost certain that Greg is yellow. It is almost certain that if 'Greg is yellow and Brian is a rhino' then Sandra left the milk. It is impossible that if 'John went to the hallway and Brian is a rhino' then Fred discarded the apple. It is probably the case that if either 'Greg is yellow' or 'Brian is a rhino' but not both then Julius is a frog.,It is almost certain that 'Fred discarded the apple and Julius is a frog'.," 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.95::factA. 0.9::factB. 0.95::factC. %hop1 0.95::factX:-and(factC,factA). 0.0::factY:-and(factB,factA). 0.7::factZ:-xor(factC,factA). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.0,0.9341868373674735,test,impossible,almost certain,It is impossible that 'Fred discarded the apple and Julius is a frog'.,It is almost certain that 'Fred discarded the apple and Julius is a frog'.,0,'Fred discarded the apple and Julius is a frog'. It is impossible that Bernhard is a frog. We doubt that John picked up the apple. There is a very good chance that Jeff moved to the garden. It is unlikely that if 'John picked up the apple' or 'Jeff moved to the garden' or both then Jason is bored. There is a better than even chance that if 'Jeff moved to the garden and John picked up the apple' then Brian is white. It is highly unlikely that if either 'Jeff moved to the garden' or 'John picked up the apple' but not both then Greg is gray.,It is probably the case that either 'Greg is gray' or 'Bernhard is a frog' but not both.," 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.0::factA. 0.2::factB. 0.8::factC. %hop1 0.2::factX:-or(factB,factC). 0.6::factY:-and(factC,factB). 0.05::factZ:-xor(factC,factB). %hop2 conclusion:-xor(factZ,factA). query(conclusion). ",0.034000000000000016,0.963992798559712,test,almost no chance,probably,There is almost no chance that either 'Greg is gray' or 'Bernhard is a frog' but not both.,It is probably the case that either 'Greg is gray' or 'Bernhard is a frog' but not both.,0,Either 'Greg is gray' or 'Bernhard is a frog' but not both. It is highly likely that John dropped the milk. It is almost certain that Brian is a rhino. It is improbable that Emily is a mouse. It is impossible that if 'Emily is a mouse' or 'Brian is a rhino' or both then Sumit is thirsty. It is certain that if 'Brian is a rhino and John dropped the milk' then Bill moved to the office. It is probably not the case that if 'John dropped the milk and Emily is a mouse' then Mary went to the office.,It is impossible that 'Emily is a mouse and Sumit is thirsty'.," 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.95::factB. 0.1::factC. %hop1 0.0::factX:-or(factC,factB). 1.0::factY:-and(factB,factA). 0.25::factZ:-and(factA,factC). %hop2 conclusion:-and(factC,factX). query(conclusion). ",0.0,0.9761952390478096,test,impossible,very good chance,It is impossible that 'Emily is a mouse and Sumit is thirsty'.,There is a very good chance that 'Emily is a mouse and Sumit is thirsty'.,1,'Emily is a mouse and Sumit is thirsty'. There is almost no chance that Lily is a rhino. We doubt that Bernhard is gray. We doubt that Greg is white. There is a very good chance that if either 'Bernhard is gray' or 'Lily is a rhino' but not both then Jessica is a mouse. We believe that if 'Bernhard is gray and Lily is a rhino' then Fred went to the office. It is highly unlikely that if 'Greg is white' or 'Bernhard is gray' or both then Mary dropped the apple.,We believe that 'Bernhard is gray and Greg is white'.," 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.02::factA. 0.2::factB. 0.2::factC. %hop1 0.8::factX:-xor(factB,factA). 0.75::factY:-and(factB,factA). 0.05::factZ:-or(factC,factB). %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.04000000000000001,0.9509901980396079,test,highly unlikely,we believe,It is highly unlikely that 'Bernhard is gray and Greg is white'.,We believe that 'Bernhard is gray and Greg is white'.,0,'Bernhard is gray and Greg is white'. It is probable that Greg is green. There is almost no chance that Brian is a rhino. It is almost certain that Mary moved to the garden. It is impossible that if 'Greg is green' or 'Mary moved to the garden' or both then Bill got the milk there. It is almost certain that if 'Mary moved to the garden' or 'Greg is green' or both then Winona is a wolf. It is almost certain that if 'Brian is a rhino and Mary moved to the garden' then Julius is a frog.,It is probably not the case that either 'Greg is green' or 'Mary moved to the garden' but not both.," 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.7::factA. 0.02::factB. 0.95::factC. %hop1 0.0::factX:-or(factA,factC). 0.95::factY:-or(factC,factA). 0.95::factZ:-and(factB,factC). %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.32000000000000006,0.9903980796159232,test,probably not,probably,It is probably not the case that either 'Greg is green' or 'Mary moved to the garden' but not both.,It is probably the case that either 'Greg is green' or 'Mary moved to the garden' but not both.,1,Either 'Greg is green' or 'Mary moved to the garden' but not both. Chances are slight that Julius is yellow. It is highly likely that Lily is white. There is little chance that Bernhard is a swan. It is probable that if either 'Julius is yellow' or 'Bernhard is a swan' but not both then Gertrude is a sheep. There is a very good chance that if 'Julius is yellow and Bernhard is a swan' then Brian is white. It is highly unlikely that if 'Lily is white and Julius is yellow' then John took the milk.,It is highly likely that 'Brian is white and Lily is white'.," 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.9::factB. 0.1::factC. %hop1 0.7::factX:-xor(factA,factC). 0.8::factY:-and(factA,factC). 0.05::factZ:-and(factB,factA). %hop2 conclusion:-and(factY,factB). query(conclusion). ",0.007200000000000007,0.9025805161032207,test,impossible,highly likely,It is impossible that 'Brian is white and Lily is white'.,It is highly likely that 'Brian is white and Lily is white'.,0,'Brian is white and Lily is white'. It is almost certain that Bernhard is a swan. It is improbable that Jessica is a sheep. We doubt that John went to the bedroom. It is probable that if 'Bernhard is a swan and John went to the bedroom' then Mary dropped the milk. It is certain that if 'Bernhard is a swan and Jessica is a sheep' then Lily is a frog. There is a very good chance that if 'Bernhard is a swan' or 'John went to the bedroom' or both then Julius is white.,It is probably not the case that 'Lily is a frog' or 'John went to the bedroom' or both.," 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.95::factA. 0.1::factB. 0.2::factC. %hop1 0.7::factX:-and(factA,factC). 1.0::factY:-and(factA,factB). 0.8::factZ:-or(factA,factC). %hop2 conclusion:-or(factY,factC). query(conclusion). ",0.276,0.9327865573114623,test,probably not,highly likely,It is probably not the case that 'Lily is a frog' or 'John went to the bedroom' or both.,It is highly likely that 'Lily is a frog' or 'John went to the bedroom' or both.,1,'Lily is a frog' or 'John went to the bedroom' or both. It is improbable that John left the apple. It is impossible that Sandra dropped the milk. It is highly unlikely that Bernhard is yellow. It is highly unlikely that if 'Bernhard is yellow' or 'Sandra dropped the milk' or both then Greg is white. It is highly likely that if 'Sandra dropped the milk' or 'John left the apple' or both then Jeff went to the bedroom. We believe that if either 'Bernhard is yellow' or 'Sandra dropped the milk' but not both then Brian is a swan.,We believe that 'Jeff went to the bedroom' or 'John left the apple' or both.," 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.0::factB. 0.05::factC. %hop1 0.05::factX:-or(factC,factB). 0.9::factY:-or(factB,factA). 0.75::factZ:-xor(factC,factB). %hop2 conclusion:-or(factY,factA). query(conclusion). ",0.10000000000000002,0.916383276655331,test,little chance,we believe,There is little chance that 'Jeff went to the bedroom' or 'John left the apple' or both.,We believe that 'Jeff went to the bedroom' or 'John left the apple' or both.,0,'Jeff went to the bedroom' or 'John left the apple' or both. It is unlikely that Julius is green. Chances are about even that Jason is tired. There is a very good chance that Brian is white. It is likely that if either 'Julius is green' or 'Jason is tired' but not both then Bernhard is yellow. It is probable that if either 'Brian is white' or 'Jason is tired' but not both then Mary picked up the milk. Chances are slight that if 'Brian is white' or 'Jason is tired' or both then Sandra left the apple.,There is little chance that 'Jason is tired and Julius 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.2::factA. 0.5::factB. 0.8::factC. %hop1 0.7::factX:-xor(factA,factB). 0.7::factY:-xor(factC,factB). 0.1::factZ:-or(factC,factB). %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.10000000000000002,0.9601920384076815,test,little chance,almost certain,There is little chance that 'Jason is tired and Julius is green'.,It is almost certain that 'Jason is tired and Julius is green'.,1,'Jason is tired and Julius is green'. We believe that Lily is a rhino. It is improbable that Bernhard is yellow. We believe that Emily is a cat. It is highly unlikely that if 'Lily is a rhino' or 'Emily is a cat' or both then Jessica is a sheep. It is likely that if either 'Bernhard is yellow' or 'Emily is a cat' but not both then Greg is a swan. There is almost no chance that if 'Lily is a rhino' or 'Emily is a cat' or both then Sandra took the milk.,We believe that 'Bernhard is yellow' or 'Emily is a cat' or both.," 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.75::factA. 0.1::factB. 0.75::factC. %hop1 0.05::factX:-or(factA,factC). 0.7::factY:-xor(factB,factC). 0.02::factZ:-or(factA,factC). %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.775,0.9457891578315664,test,we believe,little chance,We believe that 'Bernhard is yellow' or 'Emily is a cat' or both.,There is little chance that 'Bernhard is yellow' or 'Emily is a cat' or both.,1,'Bernhard is yellow' or 'Emily is a cat' or both. There is little chance that Greg is yellow. There is a very good chance that Sandra left the football. It is almost certain that John moved to the office. There is almost no chance that if 'Sandra left the football and Greg is yellow' then Bernhard is yellow. It is certain that if 'John moved to the office and Greg is yellow' then Lily is a swan. There is a better than even chance that if 'John moved to the office' or 'Sandra left the football' or both then Julius is green.,It is likely that 'Greg is yellow and Bernhard is yellow'.," 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.8::factB. 0.95::factC. %hop1 0.02::factX:-and(factB,factA). 1.0::factY:-and(factC,factA). 0.6::factZ:-or(factC,factB). %hop2 conclusion:-and(factA,factX). query(conclusion). ",0.0016000000000000005,0.9375875175035007,test,impossible,likely,It is impossible that 'Greg is yellow and Bernhard is yellow'.,It is likely that 'Greg is yellow and Bernhard is yellow'.,0,'Greg is yellow and Bernhard is yellow'. It is likely that Daniel took the football. It is certain that Brian is gray. There is almost no chance that John went to the kitchen. Chances are slight that if 'John went to the kitchen' or 'Brian is gray' or both then Julius is a frog. We doubt that if 'John went to the kitchen' or 'Brian is gray' or both then Emily is a sheep. There is little chance that if 'John went to the kitchen' or 'Brian is gray' or both then Lily is white.,It is probably the case that 'Lily is white' or 'Emily is a sheep' or both.," 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.7::factA. 1.0::factB. 0.02::factC. %hop1 0.1::factX:-or(factC,factB). 0.2::factY:-or(factC,factB). 0.1::factZ:-or(factC,factB). %hop2 conclusion:-or(factZ,factY). query(conclusion). ",0.28,0.9347869573914783,test,probably not,probably,It is probably not the case that 'Lily is white' or 'Emily is a sheep' or both.,It is probably the case that 'Lily is white' or 'Emily is a sheep' or both.,0,'Lily is white' or 'Emily is a sheep' or both. We believe that Sandra took the apple. It is probably the case that Jessica is a mouse. It is highly unlikely that Emily is a wolf. It is unlikely that if 'Emily is a wolf and Jessica is a mouse' then Lily is a rhino. There is a better than even chance that if 'Sandra took the apple' or 'Jessica is a mouse' or both then Gertrude is a sheep. We believe that if 'Jessica is a mouse and Sandra took the apple' then Greg is gray.,It is highly unlikely that 'Jessica is a mouse and Greg is gray'.," 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.75::factA. 0.7::factB. 0.05::factC. %hop1 0.2::factX:-and(factC,factB). 0.6::factY:-or(factA,factB). 0.75::factZ:-and(factB,factA). %hop2 conclusion:-and(factB,factZ). query(conclusion). ",0.39375,0.9261852370474095,test,about even,highly unlikely,Chances are about even that 'Jessica is a mouse and Greg is gray'.,It is highly unlikely that 'Jessica is a mouse and Greg is gray'.,0,'Jessica is a mouse and Greg is gray'. Chances are about even that Julius is a rhino. There is little chance that Brian is white. It is certain that John moved to the garden. It is certain that if 'Brian is white and John moved to the garden' then Mary dropped the apple. It is improbable that if 'John moved to the garden and Brian is white' then Greg is yellow. We believe that if 'Julius is a rhino' or 'Brian is white' or both then Winona is a sheep.,Chances are about even that 'Julius is a rhino and John moved to the garden'.," 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.5::factA. 0.1::factB. 1.0::factC. %hop1 1.0::factX:-and(factB,factC). 0.1::factY:-and(factC,factB). 0.75::factZ:-or(factA,factB). %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.5,0.9265853170634127,test,about even,highly unlikely,Chances are about even that 'Julius is a rhino and John moved to the garden'.,It is highly unlikely that 'Julius is a rhino and John moved to the garden'.,1,'Julius is a rhino and John moved to the garden'. It is highly unlikely that Sandra took the football. Chances are about even that Sumit is bored. Chances are slight that John moved to the office. It is probably not the case that if 'Sumit is bored' or 'John moved to the office' or both then Mary dropped the apple. We doubt that if either 'Sumit is bored' or 'Sandra took the football' but not both then Brian is a rhino. It is impossible that if either 'John moved to the office' or 'Sandra took the football' but not both then Greg is gray.,Chances are about even that 'Sumit is bored' or 'Mary dropped the apple' or both.," 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.5::factB. 0.1::factC. %hop1 0.25::factX:-or(factB,factC). 0.2::factY:-xor(factB,factA). 0.0::factZ:-xor(factC,factA). %hop2 conclusion:-or(factB,factX). query(conclusion). ",0.5125000000000001,0.98999799959992,test,about even,almost certain,Chances are about even that 'Sumit is bored' or 'Mary dropped the apple' or both.,It is almost certain that 'Sumit is bored' or 'Mary dropped the apple' or both.,1,'Sumit is bored' or 'Mary dropped the apple' or both. Chances are slight that Brian is a lion. It is improbable that Julius is a swan. It is certain that Greg is a rhino. There is a better than even chance that if 'Julius is a swan and Greg is a rhino' then Lily is a swan. We believe that if 'Julius is a swan' or 'Greg is a rhino' or both then Bernhard is a frog. Chances are about even that if either 'Brian is a lion' or 'Julius is a swan' but not both then Mary picked up the milk.,It is highly likely that 'Greg is a rhino and Lily is a swan'.," 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.1::factB. 1.0::factC. %hop1 0.6::factX:-and(factB,factC). 0.75::factY:-or(factB,factC). 0.5::factZ:-xor(factA,factB). %hop2 conclusion:-and(factC,factX). query(conclusion). ",0.06,0.9991998399679936,test,highly unlikely,highly likely,It is highly unlikely that 'Greg is a rhino and Lily is a swan'.,It is highly likely that 'Greg is a rhino and Lily is a swan'.,0,'Greg is a rhino and Lily is a swan'. There is a very good chance that Mary got the football. Chances are slight that Greg is a rhino. It is likely that Sandra dropped the apple. It is unlikely that if either 'Mary got the football' or 'Greg is a rhino' but not both then Bernhard is yellow. It is highly likely that if either 'Sandra dropped the apple' or 'Greg is a rhino' but not both then Lily is a frog. There is almost no chance that if either 'Mary got the football' or 'Greg is a rhino' but not both then Julius is gray.,Chances are slight that 'Mary got the football' or 'Lily is a frog' or both.," 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.8::factA. 0.1::factB. 0.7::factC. %hop1 0.2::factX:-xor(factA,factB). 0.9::factY:-xor(factC,factB). 0.02::factZ:-xor(factA,factB). %hop2 conclusion:-or(factA,factY). query(conclusion). ",0.9188,0.9125825165033007,test,highly likely,chances are slight,It is highly likely that 'Mary got the football' or 'Lily is a frog' or both.,Chances are slight that 'Mary got the football' or 'Lily is a frog' or both.,0,'Mary got the football' or 'Lily is a frog' or both. It is unlikely that John grabbed the apple. It is improbable that Brian is a swan. It is likely that Lily is a frog. There is a better than even chance that if either 'Lily is a frog' or 'John grabbed the apple' but not both then Greg is a swan. Chances are about even that if 'Lily is a frog' or 'Brian is a swan' or both then Bernhard is yellow. It is highly likely that if 'Lily is a frog' or 'Brian is a swan' or both then Daniel put down the milk.,It is probably not the case that either 'Lily is a frog' or 'Bernhard is yellow' but not both.," 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.1::factB. 0.7::factC. %hop1 0.6::factX:-xor(factC,factA). 0.5::factY:-or(factC,factB). 0.9::factZ:-or(factC,factB). %hop2 conclusion:-xor(factC,factY). query(conclusion). ",0.365,0.9371874374874976,test,probably not,certain,It is probably not the case that either 'Lily is a frog' or 'Bernhard is yellow' but not both.,It is certain that either 'Lily is a frog' or 'Bernhard is yellow' but not both.,1,Either 'Lily is a frog' or 'Bernhard is yellow' but not both. It is probable that Mary went to the hallway. It is almost certain that Fred moved to the office. Chances are about even that John took the football. It is almost certain that if 'Fred moved to the office and Mary went to the hallway' then Lily is white. It is unlikely that if 'Mary went to the hallway and John took the football' then Bernhard is a lion. It is unlikely that if 'John took the football and Fred moved to the office' then Yann is hungry.,It is probably the case that 'Fred moved to the office and Mary went to the hallway'.," 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.7::factA. 0.95::factB. 0.5::factC. %hop1 0.95::factX:-and(factB,factA). 0.2::factY:-and(factA,factC). 0.2::factZ:-and(factC,factB). %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.6649999999999999,0.9861972394478896,test,probably,little chance,It is probably the case that 'Fred moved to the office and Mary went to the hallway'.,There is little chance that 'Fred moved to the office and Mary went to the hallway'.,1,'Fred moved to the office and Mary went to the hallway'. It is probably not the case that Bernhard is a swan. Chances are about even that Greg is yellow. It is almost certain that John went to the garden. It is probably the case that if either 'Greg is yellow' or 'John went to the garden' but not both then Fred is in the cinema. There is almost no chance that if either 'John went to the garden' or 'Bernhard is a swan' but not both then Brian is a swan. It is highly likely that if 'Greg is yellow and Bernhard is a swan' then Lily is yellow.,It is likely that 'Lily is yellow' or 'Bernhard is a swan' or both.," 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.25::factA. 0.5::factB. 0.95::factC. %hop1 0.7::factX:-xor(factB,factC). 0.02::factY:-xor(factC,factA). 0.9::factZ:-and(factB,factA). %hop2 conclusion:-or(factZ,factA). query(conclusion). ",0.25000000000000006,0.9079815963192639,test,probably not,likely,It is probably not the case that 'Lily is yellow' or 'Bernhard is a swan' or both.,It is likely that 'Lily is yellow' or 'Bernhard is a swan' or both.,0,'Lily is yellow' or 'Bernhard is a swan' or both. It is highly unlikely that Brian is white. There is little chance that Lily is a swan. It is probably the case that Greg is a rhino. We doubt that if either 'Greg is a rhino' or 'Brian is white' but not both then Gertrude is a cat. We doubt that if 'Brian is white' or 'Lily is a swan' or both then Mary dropped the apple. It is highly unlikely that if 'Lily is a swan and Brian is white' then John took the football.,There is a very good chance that either 'Brian is white' or 'Mary dropped the apple' but not both.," 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.1::factB. 0.7::factC. %hop1 0.2::factX:-xor(factC,factA). 0.2::factY:-or(factA,factB). 0.05::factZ:-and(factB,factA). %hop2 conclusion:-xor(factA,factY). query(conclusion). ",0.05900000000000003,0.9031806361272254,test,highly unlikely,very good chance,It is highly unlikely that either 'Brian is white' or 'Mary dropped the apple' but not both.,There is a very good chance that either 'Brian is white' or 'Mary dropped the apple' but not both.,0,Either 'Brian is white' or 'Mary dropped the apple' but not both. It is impossible that Sandra left the milk. There is almost no chance that Bernhard is a frog. It is highly likely that Mary moved to the garden. There is little chance that if 'Mary moved to the garden' or 'Sandra left the milk' or both then Lily is a swan. Chances are slight that if 'Mary moved to the garden and Sandra left the milk' then Daniel dropped the apple. There is a very good chance that if 'Sandra left the milk' or 'Bernhard is a frog' or both then Fred is in the office.,It is likely that either 'Bernhard is a frog' or 'Lily is a swan' but not both.," 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.0::factA. 0.02::factB. 0.9::factC. %hop1 0.1::factX:-or(factC,factA). 0.1::factY:-and(factC,factA). 0.8::factZ:-or(factA,factB). %hop2 conclusion:-xor(factB,factX). query(conclusion). ",0.10640000000000002,0.9269853970794159,test,improbable,likely,It is improbable that either 'Bernhard is a frog' or 'Lily is a swan' but not both.,It is likely that either 'Bernhard is a frog' or 'Lily is a swan' but not both.,0,Either 'Bernhard is a frog' or 'Lily is a swan' but not both. There is almost no chance that Gertrude is a wolf. It is highly likely that Fred moved to the office. There is a very good chance that Greg is yellow. We doubt that if either 'Gertrude is a wolf' or 'Greg is yellow' but not both then Julius is a lion. It is probable that if either 'Gertrude is a wolf' or 'Fred moved to the office' but not both then Mary went to the garden. We believe that if either 'Greg is yellow' or 'Fred moved to the office' but not both then Daniel got the milk.,It is highly likely that 'Mary went to the garden' or 'Greg is yellow' or both.," 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.02::factA. 0.9::factB. 0.8::factC. %hop1 0.2::factX:-xor(factA,factC). 0.7::factY:-xor(factA,factB). 0.75::factZ:-xor(factC,factB). %hop2 conclusion:-or(factY,factC). query(conclusion). ",0.92376,0.9209841968393678,test,highly likely,highly unlikely,It is highly likely that 'Mary went to the garden' or 'Greg is yellow' or both.,It is highly unlikely that 'Mary went to the garden' or 'Greg is yellow' or both.,1,'Mary went to the garden' or 'Greg is yellow' or both. Chances are slight that Greg is gray. There is a better than even chance that Emily is a sheep. It is highly likely that Mary went to the kitchen. It is likely that if 'Emily is a sheep' or 'Mary went to the kitchen' or both then Fred is in the cinema. It is impossible that if either 'Greg is gray' or 'Emily is a sheep' but not both then Lily is a swan. Chances are about even that if either 'Emily is a sheep' or 'Greg is gray' but not both then Bernhard is a lion.,It is probably the case that 'Bernhard is a lion and Greg is gray'.," 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.6::factB. 0.9::factC. %hop1 0.7::factX:-or(factB,factC). 0.0::factY:-xor(factA,factB). 0.5::factZ:-xor(factB,factA). %hop2 conclusion:-and(factZ,factA). query(conclusion). ",0.02000000000000001,0.9833966793358672,test,almost no chance,probably,There is almost no chance that 'Bernhard is a lion and Greg is gray'.,It is probably the case that 'Bernhard is a lion and Greg is gray'.,0,'Bernhard is a lion and Greg is gray'. It is almost certain that Mary got the football. It is improbable that Julius is gray. It is probably the case that Bernhard is green. There is little chance that if 'Mary got the football' or 'Bernhard is green' or both then Lily is white. It is improbable that if 'Julius is gray' or 'Bernhard is green' or both then Brian is yellow. There is little chance that if 'Julius is gray and Bernhard is green' then Greg is white.,It is highly unlikely that either 'Lily is white' or 'Mary got the football' but not both.," 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.95::factA. 0.1::factB. 0.7::factC. %hop1 0.1::factX:-or(factA,factC). 0.1::factY:-or(factB,factC). 0.1::factZ:-and(factB,factC). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.8584999999999999,0.9527905581116223,test,highly likely,highly unlikely,It is highly likely that either 'Lily is white' or 'Mary got the football' but not both.,It is highly unlikely that either 'Lily is white' or 'Mary got the football' but not both.,0,Either 'Lily is white' or 'Mary got the football' but not both. It is certain that Daniel left the milk. It is certain that Lily is green. There is almost no chance that Julius is yellow. There is little chance that if 'Julius is yellow and Lily is green' then Jessica is a cat. We doubt that if either 'Daniel left the milk' or 'Lily is green' but not both then Fred moved to the office. It is certain that if 'Julius is yellow' or 'Lily is green' or both then Mary got the football.,It is impossible that either 'Lily is green' or 'Jessica is a cat' but not both.," 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 1.0::factA. 1.0::factB. 0.02::factC. %hop1 0.1::factX:-and(factC,factB). 0.2::factY:-xor(factA,factB). 1.0::factZ:-or(factC,factB). %hop2 conclusion:-xor(factB,factX). query(conclusion). ",0.998,0.906381276255251,test,certain,impossible,It is certain that either 'Lily is green' or 'Jessica is a cat' but not both.,It is impossible that either 'Lily is green' or 'Jessica is a cat' but not both.,0,Either 'Lily is green' or 'Jessica is a cat' but not both. There is almost no chance that Mary went to the office. It is probably not the case that Brian is white. We believe that John got the milk. It is almost certain that if 'Brian is white' or 'John got the milk' or both then Winona is a sheep. There is a better than even chance that if 'Brian is white' or 'John got the milk' or both then Julius is a rhino. It is improbable that if 'Mary went to the office' or 'Brian is white' or both then Jessica is a cat.,It is highly likely that 'Brian is white and Julius 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.02::factA. 0.25::factB. 0.75::factC. %hop1 0.95::factX:-or(factB,factC). 0.6::factY:-or(factB,factC). 0.1::factZ:-or(factA,factB). %hop2 conclusion:-and(factB,factY). query(conclusion). ",0.15,0.9755951190238048,test,chances are slight,highly likely,Chances are slight that 'Brian is white and Julius is a rhino'.,It is highly likely that 'Brian is white and Julius is a rhino'.,0,'Brian is white and Julius is a rhino'. It is probably the case that Julius is green. It is likely that Mary discarded the milk. It is probable that John went to the kitchen. We doubt that if 'John went to the kitchen and Julius is green' then Greg is yellow. It is almost certain that if 'John went to the kitchen' or 'Julius is green' or both then Sandra dropped the apple. There is a very good chance that if either 'John went to the kitchen' or 'Julius is green' but not both then Bernhard is white.,It is highly unlikely that either 'John went to the kitchen' or 'Julius is green' but not both.," 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.7::factA. 0.7::factB. 0.7::factC. %hop1 0.2::factX:-and(factC,factA). 0.95::factY:-or(factC,factA). 0.8::factZ:-xor(factC,factA). %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.42,0.9997999599919984,test,about even,highly unlikely,Chances are about even that either 'John went to the kitchen' or 'Julius is green' but not both.,It is highly unlikely that either 'John went to the kitchen' or 'Julius is green' but not both.,0,Either 'John went to the kitchen' or 'Julius is green' but not both. There is a better than even chance that Bernhard is a frog. It is certain that John discarded the apple. It is highly likely that Mary put down the milk. There is a better than even chance that if 'Bernhard is a frog and Mary put down the milk' then Jeff left the apple. There is a very good chance that if 'Mary put down the milk' or 'John discarded the apple' or both then Julius is a swan. It is probably not the case that if either 'John discarded the apple' or 'Mary put down the milk' but not both then Brian is a lion.,It is highly unlikely that 'John discarded the apple' or 'Bernhard is a frog' or both.," 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. 1.0::factB. 0.9::factC. %hop1 0.6::factX:-and(factA,factC). 0.8::factY:-or(factC,factB). 0.25::factZ:-xor(factB,factC). %hop2 conclusion:-or(factB,factA). query(conclusion). ",1.0,0.9885977195439087,test,certain,highly unlikely,It is certain that 'John discarded the apple' or 'Bernhard is a frog' or both.,It is highly unlikely that 'John discarded the apple' or 'Bernhard is a frog' or both.,0,'John discarded the apple' or 'Bernhard is a frog' or both. We doubt that Julius is a frog. It is probable that Bernhard is yellow. There is a better than even chance that Jeff moved to the garden. It is probably not the case that if 'Julius is a frog and Jeff moved to the garden' then Brian is yellow. Chances are slight that if either 'Bernhard is yellow' or 'Jeff moved to the garden' but not both then Lily is white. There is a very good chance that if 'Julius is a frog and Jeff moved to the garden' then Mary grabbed the milk.,There is almost no chance that 'Jeff moved to the garden and Brian is yellow'.," 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.6::factC. %hop1 0.25::factX:-and(factA,factC). 0.1::factY:-xor(factB,factC). 0.8::factZ:-and(factA,factC). %hop2 conclusion:-and(factC,factX). query(conclusion). ",0.029999999999999995,0.9231846369273855,test,almost no chance,probable,There is almost no chance that 'Jeff moved to the garden and Brian is yellow'.,It is probable that 'Jeff moved to the garden and Brian is yellow'.,1,'Jeff moved to the garden and Brian is yellow'. It is likely that John went to the office. There is a very good chance that Bernhard is green. It is likely that Winona is a cat. It is unlikely that if either 'Winona is a cat' or 'John went to the office' but not both then Daniel took the football. It is highly likely that if either 'John went to the office' or 'Bernhard is green' but not both then Mary dropped the milk. There is a very good chance that if 'John went to the office and Winona is a cat' then Lily is white.,It is highly unlikely that 'Mary dropped the milk and Lily is white'.," 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.7::factA. 0.8::factB. 0.7::factC. %hop1 0.2::factX:-xor(factC,factA). 0.9::factY:-xor(factA,factB). 0.8::factZ:-and(factA,factC). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.07055999999999998,0.9573914782956592,test,highly unlikely,better than even,It is highly unlikely that 'Mary dropped the milk and Lily is white'.,There is a better than even chance that 'Mary dropped the milk and Lily is white'.,1,'Mary dropped the milk and Lily is white'. It is impossible that Winona is a sheep. It is almost certain that Gertrude is a wolf. It is likely that Mary left the football. It is impossible that if 'Winona is a sheep and Mary left the football' then John went to the garden. It is impossible that if 'Winona is a sheep' or 'Mary left the football' or both then Brian is a rhino. It is almost certain that if 'Gertrude is a wolf' or 'Winona is a sheep' or both then Jessica is a sheep.,It is certain that 'Mary left the football and John went to the garden'.," 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.0::factA. 0.95::factB. 0.7::factC. %hop1 0.0::factX:-and(factA,factC). 0.0::factY:-or(factA,factC). 0.95::factZ:-or(factB,factA). %hop2 conclusion:-and(factC,factX). query(conclusion). ",0.0,0.9417883576715343,test,impossible,certain,It is impossible that 'Mary left the football and John went to the garden'.,It is certain that 'Mary left the football and John went to the garden'.,0,'Mary left the football and John went to the garden'. It is highly likely that Daniel got the milk. It is unlikely that Greg is yellow. Chances are about even that Bill left the football. It is highly likely that if 'Daniel got the milk' or 'Greg is yellow' or both then Julius is white. There is a better than even chance that if 'Bill left the football and Daniel got the milk' then Yann is tired. It is unlikely that if 'Greg is yellow' or 'Daniel got the milk' or both then John went to the garden.,It is almost certain that either 'John went to the garden' or 'Yann is tired' but not both.," 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.2::factB. 0.5::factC. %hop1 0.9::factX:-or(factA,factB). 0.6::factY:-and(factC,factA). 0.2::factZ:-or(factB,factA). %hop2 conclusion:-xor(factZ,factY). query(conclusion). ",0.346,0.9141828365673135,test,probably not,almost certain,It is probably not the case that either 'John went to the garden' or 'Yann is tired' but not both.,It is almost certain that either 'John went to the garden' or 'Yann is tired' but not both.,0,Either 'John went to the garden' or 'Yann is tired' but not both. It is highly unlikely that Julius is a rhino. It is certain that John discarded the apple. Chances are slight that Bernhard is green. It is certain that if 'Julius is a rhino and Bernhard is green' then Lily is yellow. We doubt that if 'Bernhard is green and John discarded the apple' then Mary is in the school. It is highly likely that if either 'Bernhard is green' or 'Julius is a rhino' but not both then Emily is a sheep.,It is almost certain that either 'John discarded the apple' or 'Julius is a rhino' but not both.," 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. 1.0::factB. 0.1::factC. %hop1 1.0::factX:-and(factA,factC). 0.2::factY:-and(factC,factB). 0.9::factZ:-xor(factC,factA). %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.95,0.998999799959992,test,almost certain,chances are slight,It is almost certain that either 'John discarded the apple' or 'Julius is a rhino' but not both.,Chances are slight that either 'John discarded the apple' or 'Julius is a rhino' but not both.,1,Either 'John discarded the apple' or 'Julius is a rhino' but not both. It is unlikely that Bernhard is a swan. There is almost no chance that John went to the kitchen. It is unlikely that Julius is gray. Chances are about even that if 'Julius is gray' or 'Bernhard is a swan' or both then Mary picked up the apple. It is likely that if 'Bernhard is a swan' or 'John went to the kitchen' or both then Brian is white. It is probably the case that if either 'Julius is gray' or 'John went to the kitchen' but not both then Greg is yellow.,It is likely that 'Brian is white and Greg is yellow'.," 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.02::factB. 0.2::factC. %hop1 0.5::factX:-or(factC,factA). 0.7::factY:-or(factA,factB). 0.7::factZ:-xor(factC,factB). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.02704799999999999,0.9405881176235247,test,almost no chance,likely,There is almost no chance that 'Brian is white and Greg is yellow'.,It is likely that 'Brian is white and Greg is yellow'.,0,'Brian is white and Greg is yellow'. It is improbable that Sandra took the apple. It is likely that Lily is a swan. There is a better than even chance that Brian is yellow. Chances are about even that if either 'Lily is a swan' or 'Brian is yellow' but not both then Greg is a lion. It is probable that if either 'Sandra took the apple' or 'Lily is a swan' but not both then Jessica is a wolf. It is probable that if either 'Lily is a swan' or 'Sandra took the apple' but not both then Mary dropped the milk.,It is improbable that 'Jessica is a wolf' or 'Brian is yellow' or both.," 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.7::factB. 0.6::factC. %hop1 0.5::factX:-xor(factB,factC). 0.7::factY:-xor(factA,factB). 0.7::factZ:-xor(factB,factA). %hop2 conclusion:-or(factY,factC). query(conclusion). ",0.7847999999999998,0.9469893978795759,test,very good chance,improbable,There is a very good chance that 'Jessica is a wolf' or 'Brian is yellow' or both.,It is improbable that 'Jessica is a wolf' or 'Brian is yellow' or both.,0,'Jessica is a wolf' or 'Brian is yellow' or both. It is unlikely that Emily is a sheep. We believe that Bernhard is white. It is impossible that Daniel left the apple. It is probably the case that if either 'Bernhard is white' or 'Emily is a sheep' but not both then John put down the milk. Chances are about even that if either 'Bernhard is white' or 'Emily is a sheep' but not both then Julius is a swan. We believe that if 'Daniel left the apple and Bernhard is white' then Jeff went to the garden.,It is highly unlikely that 'Bernhard is white' or 'Emily is a sheep' or both.," 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.75::factB. 0.0::factC. %hop1 0.7::factX:-xor(factB,factA). 0.5::factY:-xor(factB,factA). 0.75::factZ:-and(factC,factB). %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.8,0.9373874774954991,test,very good chance,highly unlikely,There is a very good chance that 'Bernhard is white' or 'Emily is a sheep' or both.,It is highly unlikely that 'Bernhard is white' or 'Emily is a sheep' or both.,0,'Bernhard is white' or 'Emily is a sheep' or both. It is likely that John moved to the garden. We believe that Lily is a rhino. We doubt that Mary got the apple. It is probably not the case that if either 'Lily is a rhino' or 'John moved to the garden' but not both then Julius is white. Chances are slight that if either 'Mary got the apple' or 'Lily is a rhino' but not both then Gertrude is a cat. We doubt that if 'Mary got the apple' or 'John moved to the garden' or both then Jeff discarded the milk.,It is impossible that 'Gertrude is a cat and Mary got the apple'.," 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.7::factA. 0.75::factB. 0.2::factC. %hop1 0.25::factX:-xor(factB,factA). 0.1::factY:-xor(factC,factB). 0.2::factZ:-or(factC,factA). %hop2 conclusion:-and(factY,factC). query(conclusion). ",0.005000000000000002,0.9447889577915584,test,impossible,better than even,It is impossible that 'Gertrude is a cat and Mary got the apple'.,There is a better than even chance that 'Gertrude is a cat and Mary got the apple'.,1,'Gertrude is a cat and Mary got the apple'. There is a better than even chance that John got the apple. We doubt that Bernhard is white. It is highly likely that Greg is gray. It is likely that if 'Bernhard is white' or 'John got the apple' or both then Jessica is a cat. It is probably the case that if 'John got the apple and Greg is gray' then Julius is a lion. There is a better than even chance that if either 'Greg is gray' or 'John got the apple' but not both then Brian is a frog.,It is impossible that 'Julius is a lion and Greg is gray'.," 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.2::factB. 0.9::factC. %hop1 0.7::factX:-or(factB,factA). 0.7::factY:-and(factA,factC). 0.6::factZ:-xor(factC,factA). %hop2 conclusion:-and(factY,factC). query(conclusion). ",0.37799999999999995,0.9977995599119824,test,about even,impossible,Chances are about even that 'Julius is a lion and Greg is gray'.,It is impossible that 'Julius is a lion and Greg is gray'.,0,'Julius is a lion and Greg is gray'. It is improbable that Julius is a frog. There is almost no chance that Mary picked up the milk. We believe that John went to the kitchen. There is a better than even chance that if 'John went to the kitchen' or 'Mary picked up the milk' or both then Jeff moved to the garden. There is little chance that if either 'Mary picked up the milk' or 'John went to the kitchen' but not both then Brian is yellow. It is impossible that if 'Julius is a frog' or 'Mary picked up the milk' or both then Daniel grabbed the apple.,It is almost certain that either 'Julius is a frog' or 'Daniel grabbed the apple' but not both.," 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.02::factB. 0.75::factC. %hop1 0.6::factX:-or(factC,factB). 0.1::factY:-xor(factB,factC). 0.0::factZ:-or(factA,factB). %hop2 conclusion:-xor(factA,factZ). query(conclusion). ",0.10000000000000002,0.9701940388077616,test,little chance,almost certain,There is little chance that either 'Julius is a frog' or 'Daniel grabbed the apple' but not both.,It is almost certain that either 'Julius is a frog' or 'Daniel grabbed the apple' but not both.,0,Either 'Julius is a frog' or 'Daniel grabbed the apple' but not both. There is a better than even chance that John went to the bedroom. It is highly unlikely that Jeff left the apple. It is probable that Fred dropped the apple. It is unlikely that if either 'John went to the bedroom' or 'Jeff left the apple' but not both then Mary moved to the office. It is certain that if 'John went to the bedroom' or 'Fred dropped the apple' or both then Bernhard is a lion. It is highly unlikely that if 'John went to the bedroom' or 'Fred dropped the apple' or both then Lily is white.,It is probably the case that either 'Jeff left the apple' or 'Fred dropped the apple' but not both.," 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.05::factB. 0.7::factC. %hop1 0.2::factX:-xor(factA,factB). 1.0::factY:-or(factA,factC). 0.05::factZ:-or(factA,factC). %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.6799999999999999,0.9981996399279855,test,probably,little chance,It is probably the case that either 'Jeff left the apple' or 'Fred dropped the apple' but not both.,There is little chance that either 'Jeff left the apple' or 'Fred dropped the apple' but not both.,1,Either 'Jeff left the apple' or 'Fred dropped the apple' but not both. There is almost no chance that Greg is a rhino. It is likely that Gertrude is a sheep. There is a better than even chance that John left the football. There is a very good chance that if 'Gertrude is a sheep and Greg is a rhino' then Sandra got the milk. It is probably the case that if either 'Gertrude is a sheep' or 'Greg is a rhino' but not both then Julius is yellow. There is a better than even chance that if 'John left the football and Greg is a rhino' then Mary went to the kitchen.,It is impossible that either 'Julius is yellow' or 'Greg is a rhino' but not both.," 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.02::factA. 0.7::factB. 0.6::factC. %hop1 0.8::factX:-and(factB,factA). 0.7::factY:-xor(factB,factA). 0.6::factZ:-and(factC,factA). %hop2 conclusion:-xor(factY,factA). query(conclusion). ",0.49599999999999994,0.9643928785757151,test,about even,impossible,Chances are about even that either 'Julius is yellow' or 'Greg is a rhino' but not both.,It is impossible that either 'Julius is yellow' or 'Greg is a rhino' but not both.,0,Either 'Julius is yellow' or 'Greg is a rhino' but not both. It is certain that John went to the kitchen. It is probable that Brian is white. It is highly likely that Greg is a swan. It is probably the case that if 'John went to the kitchen and Greg is a swan' then Jessica is a cat. It is improbable that if either 'Greg is a swan' or 'John went to the kitchen' but not both then Julius is a rhino. It is impossible that if 'John went to the kitchen' or 'Greg is a swan' or both then Sandra left the milk.,Chances are about even that either 'Brian is white' or 'Jessica is a cat' but not both.," 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 1.0::factA. 0.7::factB. 0.9::factC. %hop1 0.7::factX:-and(factA,factC). 0.1::factY:-xor(factC,factA). 0.0::factZ:-or(factA,factC). %hop2 conclusion:-xor(factB,factX). query(conclusion). ",0.44799999999999995,0.9159831966393279,test,about even,almost no chance,Chances are about even that either 'Brian is white' or 'Jessica is a cat' but not both.,There is almost no chance that either 'Brian is white' or 'Jessica is a cat' but not both.,1,Either 'Brian is white' or 'Jessica is a cat' but not both. There is little chance that John grabbed the apple. We believe that Mary left the football. It is highly unlikely that Bernhard is a swan. It is probably not the case that if either 'Mary left the football' or 'John grabbed the apple' but not both then Julius is a frog. We doubt that if either 'Mary left the football' or 'Bernhard is a swan' but not both then Lily is white. It is unlikely that if 'John grabbed the apple and Mary left the football' then Sandra got the milk.,It is probably the case that 'Sandra got the milk and Julius is a frog'.," 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.75::factB. 0.05::factC. %hop1 0.25::factX:-xor(factB,factA). 0.2::factY:-xor(factB,factC). 0.2::factZ:-and(factA,factB). %hop2 conclusion:-and(factZ,factX). query(conclusion). ",0.0,0.918383676735347,test,impossible,probably,It is impossible that 'Sandra got the milk and Julius is a frog'.,It is probably the case that 'Sandra got the milk and Julius is a frog'.,0,'Sandra got the milk and Julius is a frog'. It is likely that Jessica is a cat. It is probably the case that Julius is yellow. It is highly likely that Lily is a lion. It is probably not the case that if 'Lily is a lion' or 'Julius is yellow' or both then Mary went to the office. Chances are slight that if 'Julius is yellow' or 'Jessica is a cat' or both then Antoine is bored. It is unlikely that if either 'Lily is a lion' or 'Julius is yellow' but not both then Bernhard is green.,It is unlikely that 'Jessica is a cat and Mary went to the office'.," 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.7::factA. 0.7::factB. 0.9::factC. %hop1 0.25::factX:-or(factC,factB). 0.1::factY:-or(factB,factA). 0.2::factZ:-xor(factC,factB). %hop2 conclusion:-and(factA,factX). query(conclusion). ",0.16974999999999998,0.9255851170234047,test,unlikely,almost certain,It is unlikely that 'Jessica is a cat and Mary went to the office'.,It is almost certain that 'Jessica is a cat and Mary went to the office'.,1,'Jessica is a cat and Mary went to the office'. It is probable that Greg is green. It is improbable that Brian is yellow. Chances are about even that Sandra dropped the milk. It is certain that if 'Sandra dropped the milk and Brian is yellow' then Lily is a frog. There is almost no chance that if either 'Brian is yellow' or 'Sandra dropped the milk' but not both then Mary went to the kitchen. It is unlikely that if 'Brian is yellow' or 'Sandra dropped the milk' or both then John moved to the office.,There is a better than even chance that 'Lily is a frog and Greg 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.7::factA. 0.1::factB. 0.5::factC. %hop1 1.0::factX:-and(factC,factB). 0.02::factY:-xor(factB,factC). 0.2::factZ:-or(factB,factC). %hop2 conclusion:-and(factX,factA). query(conclusion). ",0.035,0.9737947589517904,test,highly unlikely,better than even,It is highly unlikely that 'Lily is a frog and Greg is green'.,There is a better than even chance that 'Lily is a frog and Greg is green'.,0,'Lily is a frog and Greg is green'. We doubt that Greg is yellow. It is certain that John put down the milk. We doubt that Mary went to the bedroom. It is likely that if 'Mary went to the bedroom' or 'John put down the milk' or both then Lily is a lion. We doubt that if 'Mary went to the bedroom and John put down the milk' then Bernhard is a frog. There is little chance that if either 'Mary went to the bedroom' or 'John put down the milk' but not both then Julius is a rhino.,Chances are slight that either 'Lily is a lion' or 'Greg is yellow' but not both.," 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. 1.0::factB. 0.2::factC. %hop1 0.7::factX:-or(factC,factB). 0.2::factY:-and(factC,factB). 0.1::factZ:-xor(factC,factB). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.62,0.9515903180636127,test,better than even,chances are slight,There is a better than even chance that either 'Lily is a lion' or 'Greg is yellow' but not both.,Chances are slight that either 'Lily is a lion' or 'Greg is yellow' but not both.,0,Either 'Lily is a lion' or 'Greg is yellow' but not both. It is highly likely that Fred moved to the office. Chances are about even that John took the apple. It is highly likely that Julius is green. It is impossible that if 'Fred moved to the office and John took the apple' then Jessica is a cat. Chances are about even that if 'Julius is green' or 'John took the apple' or both then Mary left the football. There is a better than even chance that if either 'Julius is green' or 'John took the apple' but not both then Brian is a swan.,It is impossible that 'Brian is a swan and Jessica 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.9::factA. 0.5::factB. 0.9::factC. %hop1 0.0::factX:-and(factA,factB). 0.5::factY:-or(factC,factB). 0.6::factZ:-xor(factC,factB). %hop2 conclusion:-and(factZ,factX). query(conclusion). ",0.0,0.9237847569513903,test,impossible,we believe,It is impossible that 'Brian is a swan and Jessica is a cat'.,We believe that 'Brian is a swan and Jessica is a cat'.,1,'Brian is a swan and Jessica is a cat'. There is little chance that Greg is a frog. There is a very good chance that Mary went to the bedroom. It is probably not the case that John left the football. It is unlikely that if 'John left the football' or 'Mary went to the bedroom' or both then Lily is a lion. It is probably the case that if 'Mary went to the bedroom' or 'John left the football' or both then Gertrude is a cat. It is highly unlikely that if either 'Greg is a frog' or 'Mary went to the bedroom' but not both then Bernhard is a swan.,There is almost no chance that 'Bernhard is a swan 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.1::factA. 0.8::factB. 0.25::factC. %hop1 0.2::factX:-or(factC,factB). 0.7::factY:-or(factB,factC). 0.05::factZ:-xor(factA,factB). %hop2 conclusion:-and(factZ,factY). query(conclusion). ",0.025375000000000005,0.9167833566713343,test,almost no chance,very good chance,There is almost no chance that 'Bernhard is a swan and Gertrude is a cat'.,There is a very good chance that 'Bernhard is a swan and Gertrude is a cat'.,1,'Bernhard is a swan and Gertrude is a cat'. There is a very good chance that Sandra dropped the milk. There is a better than even chance that Brian is white. There is a better than even chance that Greg is a rhino. We believe that if 'Brian is white and Sandra dropped the milk' then Mary went to the bedroom. It is certain that if 'Brian is white and Sandra dropped the milk' then Lily is a swan. Chances are about even that if either 'Sandra dropped the milk' or 'Brian is white' but not both then John put down the apple.,It is probably the case that 'John put down the apple' or 'Greg is a rhino' or both.," 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.8::factA. 0.6::factB. 0.6::factC. %hop1 0.75::factX:-and(factB,factA). 1.0::factY:-and(factB,factA). 0.5::factZ:-xor(factA,factB). %hop2 conclusion:-or(factZ,factC). query(conclusion). ",0.688,0.9069813962792559,test,probably,impossible,It is probably the case that 'John put down the apple' or 'Greg is a rhino' or both.,It is impossible that 'John put down the apple' or 'Greg is a rhino' or both.,1,'John put down the apple' or 'Greg is a rhino' or both. We believe that John moved to the garden. It is highly likely that Bernhard is a lion. We believe that Jessica is a cat. There is almost no chance that if either 'Jessica is a cat' or 'Bernhard is a lion' but not both then Greg is a rhino. It is probably not the case that if 'John moved to the garden' or 'Bernhard is a lion' or both then Winona is a sheep. It is impossible that if 'Bernhard is a lion' or 'John moved to the garden' or both then Bill went to the office.,It is probable that 'John moved to the garden and Winona 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.75::factA. 0.9::factB. 0.75::factC. %hop1 0.02::factX:-xor(factC,factB). 0.25::factY:-or(factA,factB). 0.0::factZ:-or(factB,factA). %hop2 conclusion:-and(factA,factY). query(conclusion). ",0.1875,0.9059811962392479,test,we doubt,probable,We doubt that 'John moved to the garden and Winona is a sheep'.,It is probable that 'John moved to the garden and Winona is a sheep'.,0,'John moved to the garden and Winona is a sheep'. It is certain that Lily is a swan. There is a better than even chance that Jeff left the apple. It is probably the case that Brian is a frog. It is probable that if 'Brian is a frog and Lily is a swan' then Bernhard is gray. There is little chance that if 'Lily is a swan and Jeff left the apple' then Antoine is thirsty. There is a better than even chance that if 'Lily is a swan and Jeff left the apple' then Mary went to the office.,It is highly likely that 'Brian is a frog' or 'Jeff left the apple' or both.," 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 1.0::factA. 0.6::factB. 0.7::factC. %hop1 0.7::factX:-and(factC,factA). 0.1::factY:-and(factA,factB). 0.6::factZ:-and(factA,factB). %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.88,0.9293858771754351,test,highly likely,chances are slight,It is highly likely that 'Brian is a frog' or 'Jeff left the apple' or both.,Chances are slight that 'Brian is a frog' or 'Jeff left the apple' or both.,1,'Brian is a frog' or 'Jeff left the apple' or both. There is almost no chance that Sandra left the milk. It is probably not the case that Brian is yellow. We doubt that Greg is green. There is almost no chance that if 'Greg is green and Brian is yellow' then Lily is a frog. It is certain that if either 'Brian is yellow' or 'Sandra left the milk' but not both then John went to the kitchen. It is unlikely that if 'Greg is green' or 'Brian is yellow' or both then Gertrude is a sheep.,It is probably the case that 'Gertrude is a sheep and Brian is yellow'.," 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.02::factA. 0.25::factB. 0.2::factC. %hop1 0.02::factX:-and(factC,factB). 1.0::factY:-xor(factB,factA). 0.2::factZ:-or(factC,factB). %hop2 conclusion:-and(factZ,factB). query(conclusion). ",0.05000000000000001,0.9519903980796159,test,highly unlikely,probably,It is highly unlikely that 'Gertrude is a sheep and Brian is yellow'.,It is probably the case that 'Gertrude is a sheep and Brian is yellow'.,0,'Gertrude is a sheep and Brian is yellow'. It is likely that Gertrude is a cat. There is almost no chance that Lily is a frog. We believe that Daniel dropped the apple. Chances are about even that if 'Gertrude is a cat' or 'Lily is a frog' or both then Julius is a lion. It is improbable that if 'Lily is a frog' or 'Daniel dropped the apple' or both then Mary left the milk. It is unlikely that if 'Daniel dropped the apple and Lily is a frog' then Greg is green.,There is little chance that either 'Greg is green' or 'Mary left the milk' but not both.," 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.7::factA. 0.02::factB. 0.75::factC. %hop1 0.5::factX:-or(factA,factB). 0.1::factY:-or(factB,factC). 0.2::factZ:-and(factC,factB). %hop2 conclusion:-xor(factZ,factY). query(conclusion). ",0.07790000000000004,0.9995999199839968,test,little chance,almost certain,There is little chance that either 'Greg is green' or 'Mary left the milk' but not both.,It is almost certain that either 'Greg is green' or 'Mary left the milk' but not both.,1,Either 'Greg is green' or 'Mary left the milk' but not both. It is likely that Greg is green. There is a better than even chance that Daniel put down the milk. It is probably not the case that Brian is yellow. Chances are slight that if 'Greg is green' or 'Brian is yellow' or both then Gertrude is a sheep. It is likely that if 'Brian is yellow' or 'Daniel put down the milk' or both then Lily is yellow. It is impossible that if 'Brian is yellow and Daniel put down the milk' then Mary got the football.,Chances are slight that either 'Gertrude is a sheep' or 'Mary got the football' but not both.," 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.7::factA. 0.6::factB. 0.25::factC. %hop1 0.1::factX:-or(factA,factC). 0.7::factY:-or(factC,factB). 0.0::factZ:-and(factC,factB). %hop2 conclusion:-xor(factX,factZ). query(conclusion). ",0.07750000000000003,0.9957991598319664,test,chances are slight,very good chance,Chances are slight that either 'Gertrude is a sheep' or 'Mary got the football' but not both.,There is a very good chance that either 'Gertrude is a sheep' or 'Mary got the football' but not both.,1,Either 'Gertrude is a sheep' or 'Mary got the football' but not both. It is highly unlikely that Lily is a rhino. It is highly unlikely that Brian is a lion. There is a very good chance that Greg is white. It is unlikely that if 'Greg is white and Brian is a lion' then Julius is a swan. It is probably the case that if 'Greg is white' or 'Lily is a rhino' or both then Mary went to the bedroom. It is probably not the case that if either 'Lily is a rhino' or 'Greg is white' but not both then Bernhard is a rhino.,There is a very good chance that 'Brian is a lion' or 'Bernhard is a rhino' or both.," 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.8::factC. %hop1 0.2::factX:-and(factC,factB). 0.7::factY:-or(factC,factA). 0.25::factZ:-xor(factA,factC). %hop2 conclusion:-or(factB,factZ). query(conclusion). ",0.23287500000000003,0.9845969193838767,test,probably not,very good chance,It is probably not the case that 'Brian is a lion' or 'Bernhard is a rhino' or both.,There is a very good chance that 'Brian is a lion' or 'Bernhard is a rhino' or both.,0,'Brian is a lion' or 'Bernhard is a rhino' or both. Chances are slight that Sandra left the milk. We believe that Jeff went to the bedroom. Chances are slight that Brian is a rhino. It is almost certain that if either 'Brian is a rhino' or 'Jeff went to the bedroom' but not both then Bernhard is a swan. Chances are slight that if 'Jeff went to the bedroom and Brian is a rhino' then Julius is white. Chances are about even that if 'Sandra left the milk and Brian is a rhino' then Emily is a sheep.,It is impossible that 'Jeff went to the bedroom' or 'Julius is white' or both.," 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.75::factB. 0.1::factC. %hop1 0.95::factX:-xor(factC,factB). 0.1::factY:-and(factB,factC). 0.5::factZ:-and(factA,factC). %hop2 conclusion:-or(factB,factY). query(conclusion). ",0.75,0.9779955991198239,test,we believe,impossible,We believe that 'Jeff went to the bedroom' or 'Julius is white' or both.,It is impossible that 'Jeff went to the bedroom' or 'Julius is white' or both.,0,'Jeff went to the bedroom' or 'Julius is white' or both. It is probable that Mary got the football. We believe that Sandra left the milk. It is probably the case that Greg is a rhino. It is probably not the case that if 'Mary got the football and Greg is a rhino' then John discarded the apple. There is almost no chance that if 'Sandra left the milk' or 'Greg is a rhino' or both then Bill went to the kitchen. We believe that if 'Mary got the football and Greg is a rhino' then Bernhard is a frog.,It is impossible that 'John discarded the apple' or 'Greg is a rhino' or both.," 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.7::factA. 0.75::factB. 0.7::factC. %hop1 0.25::factX:-and(factA,factC). 0.02::factY:-or(factB,factC). 0.75::factZ:-and(factA,factC). %hop2 conclusion:-or(factX,factC). query(conclusion). ",0.7,0.9055811162232447,test,probably,impossible,It is probably the case that 'John discarded the apple' or 'Greg is a rhino' or both.,It is impossible that 'John discarded the apple' or 'Greg is a rhino' or both.,0,'John discarded the apple' or 'Greg is a rhino' or both. We doubt that Mary went to the hallway. It is unlikely that Julius is white. It is highly unlikely that John moved to the office. It is highly unlikely that if 'Julius is white' or 'John moved to the office' or both then Brian is a swan. It is highly likely that if 'John moved to the office' or 'Mary went to the hallway' or both then Lily is gray. It is almost certain that if 'Julius is white and John moved to the office' then Greg is yellow.,It is highly likely that 'Mary went to the hallway' or 'Brian is a swan' or both.," 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.2::factB. 0.05::factC. %hop1 0.05::factX:-or(factB,factC). 0.9::factY:-or(factC,factA). 0.95::factZ:-and(factB,factC). %hop2 conclusion:-or(factA,factX). query(conclusion). ",0.2096,0.9585917183436687,test,unlikely,highly likely,It is unlikely that 'Mary went to the hallway' or 'Brian is a swan' or both.,It is highly likely that 'Mary went to the hallway' or 'Brian is a swan' or both.,0,'Mary went to the hallway' or 'Brian is a swan' or both. It is impossible that Mary left the football. Chances are about even that Jeff moved to the office. It is certain that Bill went to the kitchen. We doubt that if 'Jeff moved to the office and Mary left the football' then Lily is a rhino. We believe that if 'Bill went to the kitchen' or 'Mary left the football' or both then Daniel grabbed the milk. It is impossible that if either 'Bill went to the kitchen' or 'Jeff moved to the office' but not both then Julius is a frog.,It is almost certain that 'Lily is a rhino' or 'Julius is a frog' or both.," 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.0::factA. 0.5::factB. 1.0::factC. %hop1 0.2::factX:-and(factB,factA). 0.75::factY:-or(factC,factA). 0.0::factZ:-xor(factC,factB). %hop2 conclusion:-or(factX,factZ). query(conclusion). ",0.0,0.985997199439888,test,impossible,almost certain,It is impossible that 'Lily is a rhino' or 'Julius is a frog' or both.,It is almost certain that 'Lily is a rhino' or 'Julius is a frog' or both.,0,'Lily is a rhino' or 'Julius is a frog' or both. It is almost certain that Lily is yellow. There is almost no chance that Sandra dropped the milk. It is certain that Mary went to the office. Chances are slight that if either 'Lily is yellow' or 'Sandra dropped the milk' but not both then Winona is a sheep. We believe that if either 'Sandra dropped the milk' or 'Mary went to the office' but not both then John discarded the apple. It is improbable that if 'Sandra dropped the milk and Lily is yellow' then Greg is a swan.,There is almost no chance that either 'Greg is a swan' or 'Sandra dropped the milk' but not both.," 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.95::factA. 0.02::factB. 1.0::factC. %hop1 0.1::factX:-xor(factA,factB). 0.75::factY:-xor(factB,factC). 0.1::factZ:-and(factB,factA). %hop2 conclusion:-xor(factZ,factB). query(conclusion). ",0.018100000000000005,0.9223844768953791,test,almost no chance,very good chance,There is almost no chance that either 'Greg is a swan' or 'Sandra dropped the milk' but not both.,There is a very good chance that either 'Greg is a swan' or 'Sandra dropped the milk' but not both.,1,Either 'Greg is a swan' or 'Sandra dropped the milk' but not both. It is probably the case that Lily is a frog. It is improbable that Mary went to the office. There is almost no chance that Bernhard is a rhino. We believe that if 'Lily is a frog and Bernhard is a rhino' then Brian is white. We doubt that if 'Lily is a frog and Bernhard is a rhino' then Greg is a swan. There is a better than even chance that if 'Mary went to the office and Bernhard is a rhino' then Sandra put down the milk.,There is almost no chance that 'Bernhard is a rhino' or 'Brian is white' or both.," 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.7::factA. 0.1::factB. 0.02::factC. %hop1 0.75::factX:-and(factA,factC). 0.2::factY:-and(factA,factC). 0.6::factZ:-and(factB,factC). %hop2 conclusion:-or(factC,factX). query(conclusion). ",0.02,0.9545909181836367,test,almost no chance,certain,There is almost no chance that 'Bernhard is a rhino' or 'Brian is white' or both.,It is certain that 'Bernhard is a rhino' or 'Brian is white' or both.,1,'Bernhard is a rhino' or 'Brian is white' or both. We doubt that Lily is white. It is probably the case that Jeff moved to the garden. There is little chance that Mary went to the kitchen. It is probably not the case that if 'Jeff moved to the garden' or 'Lily is white' or both then John discarded the apple. It is probably not the case that if 'Lily is white and Jeff moved to the garden' then Bernhard is green. It is highly likely that if 'Mary went to the kitchen and Jeff moved to the garden' then Greg is a frog.,It is certain that either 'Lily is white' or 'Mary went to the kitchen' but not both.," 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.25::factX:-or(factB,factA). 0.25::factY:-and(factA,factB). 0.9::factZ:-and(factC,factB). %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.26,0.9137827565513102,test,probably not,certain,It is probably not the case that either 'Lily is white' or 'Mary went to the kitchen' but not both.,It is certain that either 'Lily is white' or 'Mary went to the kitchen' but not both.,0,Either 'Lily is white' or 'Mary went to the kitchen' but not both. There is a very good chance that Bernhard is a swan. There is almost no chance that Mary dropped the milk. It is highly unlikely that John got the football. It is probably not the case that if either 'Bernhard is a swan' or 'John got the football' but not both then Greg is white. There is almost no chance that if either 'John got the football' or 'Mary dropped the milk' but not both then Brian is yellow. It is probably the case that if 'John got the football' or 'Bernhard is a swan' or both then Emily is a wolf.,We doubt that 'Greg is white' or 'Brian is yellow' or both.," 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.8::factA. 0.02::factB. 0.05::factC. %hop1 0.25::factX:-xor(factA,factC). 0.02::factY:-xor(factC,factB). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-or(factX,factY). query(conclusion). ",0.193735,0.9305861172234446,test,we doubt,we believe,We doubt that 'Greg is white' or 'Brian is yellow' or both.,We believe that 'Greg is white' or 'Brian is yellow' or both.,1,'Greg is white' or 'Brian is yellow' or both. It is probably the case that Emily is a mouse. It is improbable that Sumit is hungry. We doubt that Julius is a frog. It is highly likely that if 'Julius is a frog' or 'Emily is a mouse' or both then Mary left the football. There is a very good chance that if 'Julius is a frog' or 'Sumit is hungry' or both then Bernhard is yellow. It is certain that if either 'Emily is a mouse' or 'Sumit is hungry' but not both then Sandra grabbed the milk.,It is likely that 'Sandra grabbed the milk and Bernhard is yellow'.," 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.7::factA. 0.1::factB. 0.2::factC. %hop1 0.9::factX:-or(factC,factA). 0.8::factY:-or(factC,factB). 1.0::factZ:-xor(factA,factB). %hop2 conclusion:-and(factZ,factY). query(conclusion). ",0.12480000000000004,0.9067813562712542,test,improbable,likely,It is improbable that 'Sandra grabbed the milk and Bernhard is yellow'.,It is likely that 'Sandra grabbed the milk and Bernhard is yellow'.,0,'Sandra grabbed the milk and Bernhard is yellow'. Chances are slight that Bernhard is green. There is a better than even chance that Greg is a rhino. It is certain that John put down the apple. There is a very good chance that if 'Greg is a rhino and Bernhard is green' then Brian is white. It is impossible that if 'John put down the apple' or 'Bernhard is green' or both then Sandra got the football. It is probable that if 'Greg is a rhino and John put down the apple' then Mary went to the bedroom.,Chances are about even that 'Greg is a rhino and Mary went to the bedroom'.," 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.6::factB. 1.0::factC. %hop1 0.8::factX:-and(factB,factA). 0.0::factY:-or(factC,factA). 0.7::factZ:-and(factB,factC). %hop2 conclusion:-and(factB,factZ). query(conclusion). ",0.41999999999999993,0.9435887177435487,test,about even,almost certain,Chances are about even that 'Greg is a rhino and Mary went to the bedroom'.,It is almost certain that 'Greg is a rhino and Mary went to the bedroom'.,1,'Greg is a rhino and Mary went to the bedroom'. It is highly likely that Brian is a frog. There is a very good chance that John went to the kitchen. It is probably the case that Lily is a rhino. Chances are about even that if either 'John went to the kitchen' or 'Brian is a frog' but not both then Daniel dropped the apple. We doubt that if 'John went to the kitchen' or 'Lily is a rhino' or both then Antoine is hungry. We believe that if 'Lily is a rhino' or 'John went to the kitchen' or both then Mary left the football.,There is little chance that 'John went to the kitchen' or 'Antoine is hungry' or both.," 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.8::factB. 0.7::factC. %hop1 0.5::factX:-xor(factB,factA). 0.2::factY:-or(factB,factC). 0.75::factZ:-or(factC,factB). %hop2 conclusion:-or(factB,factY). query(conclusion). ",0.8280000000000001,0.9975995199039808,test,very good chance,little chance,There is a very good chance that 'John went to the kitchen' or 'Antoine is hungry' or both.,There is little chance that 'John went to the kitchen' or 'Antoine is hungry' or both.,0,'John went to the kitchen' or 'Antoine is hungry' or both. It is highly likely that Lily is a lion. Chances are slight that Jeff moved to the garden. It is almost certain that Bernhard is a swan. It is likely that if 'Lily is a lion and Jeff moved to the garden' then Julius is white. Chances are about even that if 'Lily is a lion' or 'Jeff moved to the garden' or both then Mary left the milk. It is almost certain that if 'Jeff moved to the garden and Bernhard is a swan' then John went to the office.,It is highly unlikely that 'John went to the office and Julius is white'.," 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.1::factB. 0.95::factC. %hop1 0.7::factX:-and(factA,factB). 0.5::factY:-or(factA,factB). 0.95::factZ:-and(factB,factC). %hop2 conclusion:-and(factZ,factX). query(conclusion). ",0.0568575,0.9259851970394078,test,highly unlikely,probable,It is highly unlikely that 'John went to the office and Julius is white'.,It is probable that 'John went to the office and Julius is white'.,1,'John went to the office and Julius is white'. It is likely that Greg is a swan. We doubt that Jeff dropped the apple. It is unlikely that John took the football. There is a better than even chance that if 'Greg is a swan and Jeff dropped the apple' then Lily is a frog. It is certain that if 'John took the football' or 'Greg is a swan' or both then Jessica is a cat. There is a better than even chance that if either 'Greg is a swan' or 'Jeff dropped the apple' but not both then Bernhard is a swan.,Chances are about even that 'Bernhard is a swan' or 'Lily is a frog' or both.," 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.7::factA. 0.2::factB. 0.2::factC. %hop1 0.6::factX:-and(factA,factB). 1.0::factY:-or(factC,factA). 0.6::factZ:-xor(factA,factB). %hop2 conclusion:-or(factZ,factX). query(conclusion). ",0.45599999999999996,0.9697939587917583,test,about even,certain,Chances are about even that 'Bernhard is a swan' or 'Lily is a frog' or both.,It is certain that 'Bernhard is a swan' or 'Lily is a frog' or both.,1,'Bernhard is a swan' or 'Lily is a frog' or both. We doubt that Greg is white. It is certain that Mary dropped the apple. It is certain that Brian is yellow. It is almost certain that if either 'Mary dropped the apple' or 'Greg is white' but not both then Antoine is hungry. It is likely that if 'Mary dropped the apple and Brian is yellow' then Julius is green. It is highly likely that if either 'Mary dropped the apple' or 'Greg is white' but not both then Bernhard is a swan.,It is almost certain that 'Bernhard is a swan and Greg is white'.," 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. 1.0::factB. 1.0::factC. %hop1 0.95::factX:-xor(factB,factA). 0.7::factY:-and(factB,factC). 0.9::factZ:-xor(factB,factA). %hop2 conclusion:-and(factZ,factA). query(conclusion). ",0.0,0.9567913582716543,test,impossible,almost certain,It is impossible that 'Bernhard is a swan and Greg is white'.,It is almost certain that 'Bernhard is a swan and Greg is white'.,0,'Bernhard is a swan and Greg is white'. It is probably the case that Mary grabbed the milk. There is little chance that Brian is white. There is a better than even chance that Gertrude is a mouse. It is probable that if 'Gertrude is a mouse' or 'Brian is white' or both then Sumit is tired. It is probably the case that if 'Brian is white' or 'Mary grabbed the milk' or both then John dropped the apple. It is impossible that if 'Gertrude is a mouse' or 'Mary grabbed the milk' or both then Bernhard is yellow.,Chances are about even that 'Gertrude is a mouse and Sumit is tired'.," 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.7::factA. 0.1::factB. 0.6::factC. %hop1 0.7::factX:-or(factC,factB). 0.7::factY:-or(factB,factA). 0.0::factZ:-or(factC,factA). %hop2 conclusion:-and(factC,factX). query(conclusion). ",0.41999999999999993,0.9529905981196239,test,about even,highly unlikely,Chances are about even that 'Gertrude is a mouse and Sumit is tired'.,It is highly unlikely that 'Gertrude is a mouse and Sumit is tired'.,1,'Gertrude is a mouse and Sumit is tired'. It is certain that Bernhard is gray. It is improbable that Emily is a wolf. It is probably the case that Fred left the football. It is probably the case that if 'Fred left the football' or 'Emily is a wolf' or both then Winona is a sheep. It is certain that if either 'Bernhard is gray' or 'Fred left the football' but not both then John went to the hallway. It is certain that if either 'Bernhard is gray' or 'Emily is a wolf' but not both then Brian is a swan.,It is probably not the case that either 'John went to the hallway' or 'Emily is a wolf' but not both.," 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 1.0::factA. 0.1::factB. 0.7::factC. %hop1 0.7::factX:-or(factC,factB). 1.0::factY:-xor(factA,factC). 1.0::factZ:-xor(factA,factB). %hop2 conclusion:-xor(factY,factB). query(conclusion). ",0.3400000000000001,0.9473894778955791,test,probably not,probably,It is probably not the case that either 'John went to the hallway' or 'Emily is a wolf' but not both.,It is probably the case that either 'John went to the hallway' or 'Emily is a wolf' but not both.,1,Either 'John went to the hallway' or 'Emily is a wolf' but not both. It is improbable that Lily is gray. Chances are slight that Jeff dropped the apple. We doubt that John got the milk. Chances are about even that if 'John got the milk' or 'Lily is gray' or both then Gertrude is a mouse. There is a very good chance that if either 'Jeff dropped the apple' or 'John got the milk' but not both then Mary went to the hallway. We believe that if either 'John got the milk' or 'Jeff dropped the apple' but not both then Sandra left the football.,It is almost certain that 'Lily is gray' or 'Jeff dropped the apple' or both.," 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.1::factB. 0.2::factC. %hop1 0.5::factX:-or(factC,factA). 0.8::factY:-xor(factB,factC). 0.75::factZ:-xor(factC,factB). %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.19000000000000006,0.9745949189837968,test,unlikely,almost certain,It is unlikely that 'Lily is gray' or 'Jeff dropped the apple' or both.,It is almost certain that 'Lily is gray' or 'Jeff dropped the apple' or both.,0,'Lily is gray' or 'Jeff dropped the apple' or both. It is probably the case that Greg is white. It is impossible that Jason is tired. Chances are slight that Bernhard is a frog. It is probable that if either 'Jason is tired' or 'Greg is white' but not both then Lily is green. We believe that if 'Jason is tired and Greg is white' then Sandra left the apple. It is probable that if 'Greg is white and Jason is tired' then Mary went to the garden.,It is unlikely that either 'Greg is white' or 'Lily is green' but not both.," 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.7::factA. 0.0::factB. 0.1::factC. %hop1 0.7::factX:-xor(factB,factA). 0.75::factY:-and(factB,factA). 0.7::factZ:-and(factA,factB). %hop2 conclusion:-xor(factA,factX). query(conclusion). ",0.21,0.9607921584316863,test,unlikely,probably,It is unlikely that either 'Greg is white' or 'Lily is green' but not both.,It is probably the case that either 'Greg is white' or 'Lily is green' but not both.,1,Either 'Greg is white' or 'Lily is green' but not both. There is little chance that Mary left the football. It is highly unlikely that Julius is white. It is highly unlikely that Fred is in the office. Chances are about even that if 'Fred is in the office' or 'Julius is white' or both then Yann is thirsty. It is almost certain that if either 'Julius is white' or 'Mary left the football' but not both then Brian is a frog. It is highly unlikely that if 'Julius is white' or 'Fred is in the office' or both then Bernhard is gray.,It is improbable that either 'Yann is thirsty' or 'Brian is a frog' but not both.," 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.05::factB. 0.05::factC. %hop1 0.5::factX:-or(factC,factB). 0.95::factY:-xor(factB,factA). 0.05::factZ:-or(factB,factC). %hop2 conclusion:-xor(factX,factY). query(conclusion). ",0.1344875,0.9853970794158832,test,improbable,highly likely,It is improbable that either 'Yann is thirsty' or 'Brian is a frog' but not both.,It is highly likely that either 'Yann is thirsty' or 'Brian is a frog' but not both.,1,Either 'Yann is thirsty' or 'Brian is a frog' but not both. We believe that Jeff went to the garden. It is almost certain that Jason is bored. It is almost certain that Julius is a frog. It is certain that if 'Julius is a frog and Jason is bored' then John moved to the office. We believe that if either 'Julius is a frog' or 'Jason is bored' but not both then Gertrude is a cat. It is probable that if 'Julius is a frog' or 'Jeff went to the garden' or both then Bernhard is a swan.,We doubt that 'Jason is bored' or 'Bernhard is a swan' or both.," 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.75::factA. 0.95::factB. 0.95::factC. %hop1 1.0::factX:-and(factC,factB). 0.75::factY:-xor(factC,factB). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-or(factB,factZ). query(conclusion). ",0.9845625,0.9781956391278256,test,certain,we doubt,It is certain that 'Jason is bored' or 'Bernhard is a swan' or both.,We doubt that 'Jason is bored' or 'Bernhard is a swan' or both.,0,'Jason is bored' or 'Bernhard is a swan' or both. It is likely that Brian is green. There is a better than even chance that Emily is a mouse. There is almost no chance that John got the milk. It is probably the case that if either 'John got the milk' or 'Brian is green' but not both then Sandra left the apple. There is a very good chance that if either 'Brian is green' or 'Emily is a mouse' but not both then Bernhard is gray. Chances are about even that if either 'Emily is a mouse' or 'Brian is green' but not both then Julius is a swan.,There is a better than even chance that 'John got the milk and Julius is a swan'.," 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.7::factA. 0.6::factB. 0.02::factC. %hop1 0.7::factX:-xor(factC,factA). 0.8::factY:-xor(factA,factB). 0.5::factZ:-xor(factB,factA). %hop2 conclusion:-and(factC,factZ). query(conclusion). ",0.004600000000000001,0.9181836367273455,test,impossible,better than even,It is impossible that 'John got the milk and Julius is a swan'.,There is a better than even chance that 'John got the milk and Julius is a swan'.,0,'John got the milk and Julius is a swan'. It is highly unlikely that Lily is a swan. Chances are slight that John left the football. It is impossible that Sandra dropped the milk. Chances are about even that if 'Sandra dropped the milk and Lily is a swan' then Mary got the football. It is unlikely that if 'Lily is a swan and John left the football' then Fred went to the garden. It is probably the case that if either 'Lily is a swan' or 'John left the football' but not both then Brian is a rhino.,There is a very good chance that 'Fred went to the garden and John left the football'.," 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.1::factB. 0.0::factC. %hop1 0.5::factX:-and(factC,factA). 0.2::factY:-and(factA,factB). 0.7::factZ:-xor(factA,factB). %hop2 conclusion:-and(factY,factB). query(conclusion). ",0.0010000000000000002,0.910382076415283,test,impossible,very good chance,It is impossible that 'Fred went to the garden and John left the football'.,There is a very good chance that 'Fred went to the garden and John left the football'.,0,'Fred went to the garden and John left the football'. We believe that Greg is green. It is likely that Brian is yellow. It is highly unlikely that Mary moved to the garden. There is little chance that if 'Brian is yellow' or 'Mary moved to the garden' or both then John got the milk. It is highly likely that if either 'Brian is yellow' or 'Greg is green' but not both then Lily is a swan. It is unlikely that if 'Brian is yellow and Mary moved to the garden' then Fred left the football.,It is highly likely that 'Lily is a swan and Greg 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.75::factA. 0.7::factB. 0.05::factC. %hop1 0.1::factX:-or(factB,factC). 0.9::factY:-xor(factB,factA). 0.2::factZ:-and(factB,factC). %hop2 conclusion:-and(factY,factA). query(conclusion). ",0.20250000000000004,0.9477895579115824,test,unlikely,highly likely,It is unlikely that 'Lily is a swan and Greg is green'.,It is highly likely that 'Lily is a swan and Greg is green'.,0,'Lily is a swan and Greg is green'. It is certain that Mary took the football. It is highly unlikely that John discarded the milk. We doubt that Julius is yellow. There is a better than even chance that if 'Julius is yellow and John discarded the milk' then Brian is a rhino. It is impossible that if 'John discarded the milk' or 'Mary took the football' or both then Greg is white. It is probably the case that if 'Mary took the football' or 'John discarded the milk' or both then Antoine is hungry.,It is impossible that 'Julius is yellow and Greg is white'.," 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 1.0::factA. 0.05::factB. 0.2::factC. %hop1 0.6::factX:-and(factC,factB). 0.0::factY:-or(factB,factA). 0.7::factZ:-or(factA,factB). %hop2 conclusion:-and(factC,factY). query(conclusion). ",0.0,0.9707941588317663,test,impossible,very good chance,It is impossible that 'Julius is yellow and Greg is white'.,There is a very good chance that 'Julius is yellow and Greg is white'.,1,'Julius is yellow and Greg is white'. It is highly likely that Brian is a swan. There is little chance that Bernhard is gray. It is likely that Mary is in the bathroom. We believe that if 'Mary is in the bathroom and Bernhard is gray' then John moved to the office. It is unlikely that if either 'Mary is in the bathroom' or 'Brian is a swan' but not both then Greg is a lion. It is almost certain that if either 'Brian is a swan' or 'Bernhard is gray' but not both then Lily is a rhino.,It is certain that 'Brian is a swan and John moved to the office'.," 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.1::factB. 0.7::factC. %hop1 0.75::factX:-and(factC,factB). 0.2::factY:-xor(factC,factA). 0.95::factZ:-xor(factA,factB). %hop2 conclusion:-and(factA,factX). query(conclusion). ",0.047250000000000014,0.9309861972394479,test,highly unlikely,certain,It is highly unlikely that 'Brian is a swan and John moved to the office'.,It is certain that 'Brian is a swan and John moved to the office'.,0,'Brian is a swan and John moved to the office'. Chances are about even that Julius is gray. Chances are slight that Emily is a mouse. It is highly likely that Bernhard is gray. We doubt that if 'Julius is gray and Emily is a mouse' then Mary dropped the apple. It is certain that if either 'Emily is a mouse' or 'Bernhard is gray' but not both then Sandra got the football. It is improbable that if 'Emily is a mouse' or 'Bernhard is gray' or both then John went to the bedroom.,It is almost certain that 'Bernhard is gray' or 'Julius is gray' or both.," 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.5::factA. 0.1::factB. 0.9::factC. %hop1 0.2::factX:-and(factA,factB). 1.0::factY:-xor(factB,factC). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.95,0.9973994798959792,test,almost certain,impossible,It is almost certain that 'Bernhard is gray' or 'Julius is gray' or both.,It is impossible that 'Bernhard is gray' or 'Julius is gray' or both.,1,'Bernhard is gray' or 'Julius is gray' or both. It is highly unlikely that Jeff went to the garden. It is almost certain that Julius is white. We doubt that Lily is a swan. It is impossible that if 'Lily is a swan' or 'Julius is white' or both then Gertrude is a cat. We doubt that if 'Lily is a swan' or 'Julius is white' or both then John moved to the office. It is probably not the case that if 'Julius is white and Lily is a swan' then Brian is yellow.,We believe that 'John moved to the office' or 'Brian is yellow' or both.," 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.95::factB. 0.2::factC. %hop1 0.0::factX:-or(factC,factB). 0.2::factY:-or(factC,factB). 0.25::factZ:-and(factB,factC). %hop2 conclusion:-or(factY,factZ). query(conclusion). ",0.23000000000000004,0.9361872374474896,test,probably not,we believe,It is probably not the case that 'John moved to the office' or 'Brian is yellow' or both.,We believe that 'John moved to the office' or 'Brian is yellow' or both.,0,'John moved to the office' or 'Brian is yellow' or both. It is probable that Winona is a wolf. Chances are slight that Julius is a frog. It is probable that Bernhard is gray. It is probably not the case that if 'Julius is a frog and Winona is a wolf' then Brian is yellow. There is little chance that if either 'Winona is a wolf' or 'Julius is a frog' but not both then Mary left the milk. There is little chance that if either 'Bernhard is gray' or 'Winona is a wolf' but not both then Lily is white.,It is highly likely that 'Mary left the milk and Bernhard is gray'.," 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.7::factA. 0.1::factB. 0.7::factC. %hop1 0.25::factX:-and(factB,factA). 0.1::factY:-xor(factA,factB). 0.1::factZ:-xor(factC,factA). %hop2 conclusion:-and(factY,factC). query(conclusion). ",0.04620000000000001,0.9249849969993998,test,highly unlikely,highly likely,It is highly unlikely that 'Mary left the milk and Bernhard is gray'.,It is highly likely that 'Mary left the milk and Bernhard is gray'.,0,'Mary left the milk and Bernhard is gray'. It is certain that Mary picked up the milk. It is impossible that Gertrude is a mouse. There is a very good chance that Bernhard is a rhino. It is almost certain that if 'Mary picked up the milk and Bernhard is a rhino' then Jessica is a wolf. There is a very good chance that if 'Bernhard is a rhino and Mary picked up the milk' then Lily is a lion. It is likely that if 'Gertrude is a mouse and Mary picked up the milk' then Brian is gray.,We believe that 'Jessica is a wolf' or 'Brian is gray' or both.," 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 1.0::factA. 0.0::factB. 0.8::factC. %hop1 0.95::factX:-and(factA,factC). 0.8::factY:-and(factC,factA). 0.7::factZ:-and(factB,factA). %hop2 conclusion:-or(factX,factZ). query(conclusion). ",0.76,0.9383876775355071,test,we believe,chances are slight,We believe that 'Jessica is a wolf' or 'Brian is gray' or both.,Chances are slight that 'Jessica is a wolf' or 'Brian is gray' or both.,1,'Jessica is a wolf' or 'Brian is gray' or both. It is highly likely that Bernhard is a frog. It is likely that Winona is a cat. It is likely that John moved to the office. There is a better than even chance that if 'Bernhard is a frog' or 'John moved to the office' or both then Sandra took the apple. It is improbable that if 'Bernhard is a frog' or 'Winona is a cat' or both then Lily is a frog. We doubt that if either 'Winona is a cat' or 'Bernhard is a frog' but not both then Brian is a lion.,We believe that 'John moved to the office' or 'Lily is a frog' or both.," 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.6::factX:-or(factA,factC). 0.1::factY:-or(factA,factB). 0.2::factZ:-xor(factB,factA). %hop2 conclusion:-or(factC,factY). query(conclusion). ",0.7291,0.9263852770554111,test,we believe,unlikely,We believe that 'John moved to the office' or 'Lily is a frog' or both.,It is unlikely that 'John moved to the office' or 'Lily is a frog' or both.,1,'John moved to the office' or 'Lily is a frog' or both. It is probably not the case that Gertrude is a sheep. There is a better than even chance that Brian is a frog. There is a better than even chance that Sandra got the football. It is likely that if 'Brian is a frog and Sandra got the football' then Jeff moved to the office. There is a very good chance that if 'Gertrude is a sheep' or 'Brian is a frog' or both then Jason is bored. It is probably not the case that if 'Gertrude is a sheep' or 'Brian is a frog' or both then Bernhard is a rhino.,It is probably not the case that 'Bernhard is a rhino' or 'Jeff moved to the office' or both.," 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.25::factA. 0.6::factB. 0.6::factC. %hop1 0.7::factX:-and(factB,factC). 0.8::factY:-or(factA,factB). 0.25::factZ:-or(factA,factB). %hop2 conclusion:-or(factZ,factX). query(conclusion). ",0.36400000000000005,0.9481896379275855,test,probably not,probable,It is probably not the case that 'Bernhard is a rhino' or 'Jeff moved to the office' or both.,It is probable that 'Bernhard is a rhino' or 'Jeff moved to the office' or both.,1,'Bernhard is a rhino' or 'Jeff moved to the office' or both. There is a very good chance that Brian is white. Chances are slight that Julius is a frog. It is impossible that Bill went to the kitchen. We believe that if either 'Bill went to the kitchen' or 'Julius is a frog' but not both then Bernhard is yellow. It is almost certain that if 'Julius is a frog and Brian is white' then Daniel got the milk. We doubt that if 'Brian is white' or 'Bill went to the kitchen' or both then Mary moved to the office.,It is almost certain that either 'Mary moved to the office' or 'Daniel got the milk' but not both.," 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.8::factA. 0.1::factB. 0.0::factC. %hop1 0.75::factX:-xor(factC,factB). 0.95::factY:-and(factB,factA). 0.2::factZ:-or(factA,factC). %hop2 conclusion:-xor(factZ,factY). query(conclusion). ",0.20560000000000003,0.997999599919984,test,unlikely,almost certain,It is unlikely that either 'Mary moved to the office' or 'Daniel got the milk' but not both.,It is almost certain that either 'Mary moved to the office' or 'Daniel got the milk' but not both.,0,Either 'Mary moved to the office' or 'Daniel got the milk' but not both. It is probable that Julius is a frog. It is impossible that Daniel took the football. It is likely that Brian is green. It is probably not the case that if 'Daniel took the football and Julius is a frog' then Sandra dropped the apple. Chances are slight that if either 'Daniel took the football' or 'Brian is green' but not both then John picked up the milk. It is likely that if either 'Julius is a frog' or 'Daniel took the football' but not both then Lily is white.,Chances are slight that either 'Sandra dropped the apple' or 'Julius is a frog' but not both.," 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.7::factA. 0.0::factB. 0.7::factC. %hop1 0.25::factX:-and(factB,factA). 0.1::factY:-xor(factB,factC). 0.7::factZ:-xor(factA,factB). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.7,0.9019803960792159,test,probable,chances are slight,It is probable that either 'Sandra dropped the apple' or 'Julius is a frog' but not both.,Chances are slight that either 'Sandra dropped the apple' or 'Julius is a frog' but not both.,0,Either 'Sandra dropped the apple' or 'Julius is a frog' but not both. It is unlikely that Winona is a wolf. Chances are slight that Brian is a swan. It is probably the case that Bernhard is a frog. We believe that if 'Brian is a swan' or 'Bernhard is a frog' or both then Jason is tired. It is certain that if 'Brian is a swan and Bernhard is a frog' then Mary left the football. It is improbable that if 'Brian is a swan' or 'Winona is a wolf' or both then John got the milk.,We doubt that 'Winona is a wolf' or 'John got the milk' or both.," 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.1::factB. 0.7::factC. %hop1 0.75::factX:-or(factB,factC). 1.0::factY:-and(factB,factC). 0.1::factZ:-or(factB,factA). %hop2 conclusion:-or(factA,factZ). query(conclusion). ",0.20800000000000002,0.9813962792558512,test,we doubt,likely,We doubt that 'Winona is a wolf' or 'John got the milk' or both.,It is likely that 'Winona is a wolf' or 'John got the milk' or both.,1,'Winona is a wolf' or 'John got the milk' or both. It is almost certain that Greg is a frog. It is certain that Jessica is a cat. There is a better than even chance that Bernhard is a frog. There is little chance that if either 'Greg is a frog' or 'Bernhard is a frog' but not both then Emily is a wolf. There is a very good chance that if 'Bernhard is a frog and Jessica is a cat' then John picked up the apple. Chances are slight that if either 'Jessica is a cat' or 'Greg is a frog' but not both then Julius is a swan.,It is likely that 'Emily is a wolf' or 'Julius is a swan' or both.," 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.95::factA. 1.0::factB. 0.6::factC. %hop1 0.1::factX:-xor(factA,factC). 0.8::factY:-and(factC,factB). 0.1::factZ:-xor(factB,factA). %hop2 conclusion:-or(factX,factZ). query(conclusion). ",0.04570000000000002,0.9751950390078016,test,highly unlikely,likely,It is highly unlikely that 'Emily is a wolf' or 'Julius is a swan' or both.,It is likely that 'Emily is a wolf' or 'Julius is a swan' or both.,0,'Emily is a wolf' or 'Julius is a swan' or both. It is probable that Julius is green. We doubt that Bernhard is yellow. It is probably not the case that Fred is in the cinema. It is certain that if 'Bernhard is yellow' or 'Julius is green' or both then Lily is gray. It is almost certain that if 'Julius is green' or 'Bernhard is yellow' or both then Emily is a cat. Chances are slight that if 'Fred is in the cinema' or 'Bernhard is yellow' or both then John left the football.,Chances are slight that 'Bernhard is yellow' or 'Julius is green' or both.," 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.7::factA. 0.2::factB. 0.25::factC. %hop1 1.0::factX:-or(factB,factA). 0.95::factY:-or(factA,factB). 0.1::factZ:-or(factC,factB). %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.76,0.9017803560712142,test,we believe,chances are slight,We believe that 'Bernhard is yellow' or 'Julius is green' or both.,Chances are slight that 'Bernhard is yellow' or 'Julius is green' or both.,0,'Bernhard is yellow' or 'Julius is green' or both. We believe that Lily is a lion. It is probable that Winona is a sheep. It is likely that Brian is a frog. We believe that if either 'Brian is a frog' or 'Winona is a sheep' but not both then Mary dropped the apple. It is probably not the case that if 'Brian is a frog' or 'Winona is a sheep' or both then Bernhard is white. It is highly likely that if 'Brian is a frog and Winona is a sheep' then Daniel put down the milk.,There is little chance that 'Bernhard is white and Daniel put down the milk'.," 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.75::factA. 0.7::factB. 0.7::factC. %hop1 0.75::factX:-xor(factC,factB). 0.25::factY:-or(factC,factB). 0.9::factZ:-and(factC,factB). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.11025000000000001,0.988997799559912,test,little chance,highly likely,There is little chance that 'Bernhard is white and Daniel put down the milk'.,It is highly likely that 'Bernhard is white and Daniel put down the milk'.,1,'Bernhard is white and Daniel put down the milk'. It is improbable that John went to the kitchen. It is probable that Greg is a rhino. There is a very good chance that Mary left the football. There is a very good chance that if 'John went to the kitchen' or 'Greg is a rhino' or both then Emily is a wolf. There is almost no chance that if either 'John went to the kitchen' or 'Mary left the football' but not both then Lily is a lion. It is probably not the case that if 'John went to the kitchen and Mary left the football' then Julius is a swan.,It is probable that 'Julius is a swan' or 'Lily is a lion' or both.," 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.7::factB. 0.8::factC. %hop1 0.8::factX:-or(factA,factB). 0.02::factY:-xor(factA,factC). 0.25::factZ:-and(factA,factC). %hop2 conclusion:-or(factZ,factY). query(conclusion). ",0.03480000000000002,0.9317863572714543,test,almost no chance,probable,There is almost no chance that 'Julius is a swan' or 'Lily is a lion' or both.,It is probable that 'Julius is a swan' or 'Lily is a lion' or both.,0,'Julius is a swan' or 'Lily is a lion' or both. It is probably not the case that Bernhard is yellow. It is almost certain that Fred is in the cinema. It is likely that Brian is a swan. It is highly unlikely that if 'Fred is in the cinema and Bernhard is yellow' then Bill moved to the office. It is likely that if either 'Bernhard is yellow' or 'Fred is in the cinema' but not both then Sandra took the football. Chances are slight that if 'Bernhard is yellow' or 'Fred is in the cinema' or both then John grabbed the apple.,It is probably not the case that either 'Fred is in the cinema' or 'Brian is a swan' but not both.," 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.25::factA. 0.95::factB. 0.7::factC. %hop1 0.05::factX:-and(factB,factA). 0.7::factY:-xor(factA,factB). 0.1::factZ:-or(factA,factB). %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.32000000000000006,0.9625925185037008,test,probably not,certain,It is probably not the case that either 'Fred is in the cinema' or 'Brian is a swan' but not both.,It is certain that either 'Fred is in the cinema' or 'Brian is a swan' but not both.,1,Either 'Fred is in the cinema' or 'Brian is a swan' but not both. It is almost certain that Mary went to the hallway. It is probably the case that John discarded the apple. It is impossible that Julius is a frog. It is certain that if 'Mary went to the hallway' or 'John discarded the apple' or both then Emily is a sheep. It is unlikely that if either 'John discarded the apple' or 'Julius is a frog' but not both then Greg is gray. It is unlikely that if 'Mary went to the hallway' or 'Julius is a frog' or both then Brian is yellow.,It is certain that 'Emily is a sheep' or 'Brian is yellow' or both.," 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.95::factA. 0.7::factB. 0.0::factC. %hop1 1.0::factX:-or(factA,factB). 0.2::factY:-xor(factB,factC). 0.2::factZ:-or(factA,factC). %hop2 conclusion:-or(factX,factZ). query(conclusion). ",0.985,0.9493898779755952,test,certain,almost no chance,It is certain that 'Emily is a sheep' or 'Brian is yellow' or both.,There is almost no chance that 'Emily is a sheep' or 'Brian is yellow' or both.,1,'Emily is a sheep' or 'Brian is yellow' or both. We believe that Sandra took the football. It is highly unlikely that Bill moved to the office. It is improbable that Julius is gray. It is impossible that if 'Sandra took the football and Julius is gray' then Gertrude is a sheep. It is certain that if 'Sandra took the football' or 'Julius is gray' or both then Bernhard is a swan. It is likely that if 'Bill moved to the office' or 'Julius is gray' or both then John went to the kitchen.,It is probable that 'John went to the kitchen and Gertrude 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.75::factA. 0.05::factB. 0.1::factC. %hop1 0.0::factX:-and(factA,factC). 1.0::factY:-or(factA,factC). 0.7::factZ:-or(factB,factC). %hop2 conclusion:-and(factZ,factX). query(conclusion). ",0.0,0.9391878375675135,test,impossible,probable,It is impossible that 'John went to the kitchen and Gertrude is a sheep'.,It is probable that 'John went to the kitchen and Gertrude is a sheep'.,0,'John went to the kitchen and Gertrude is a sheep'. There is almost no chance that Emily is a sheep. Chances are slight that Julius is a swan. Chances are about even that Bernhard is a rhino. It is probably the case that if either 'Julius is a swan' or 'Emily is a sheep' but not both then Lily is green. It is likely that if 'Emily is a sheep' or 'Bernhard is a rhino' or both then Greg is a frog. There is little chance that if 'Julius is a swan' or 'Bernhard is a rhino' or both then John left the football.,Chances are slight that 'Lily is green' or 'Julius is a swan' or both.," 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.02::factA. 0.1::factB. 0.5::factC. %hop1 0.7::factX:-xor(factB,factA). 0.7::factY:-or(factA,factC). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-or(factX,factB). query(conclusion). ",0.11260000000000003,0.9561912382476495,test,chances are slight,probably,Chances are slight that 'Lily is green' or 'Julius is a swan' or both.,It is probably the case that 'Lily is green' or 'Julius is a swan' or both.,1,'Lily is green' or 'Julius is a swan' or both. There is a very good chance that Sandra left the football. It is probably the case that Bernhard is yellow. We doubt that Mary moved to the office. There is a better than even chance that if 'Sandra left the football' or 'Bernhard is yellow' or both then Fred is in the school. It is highly unlikely that if either 'Mary moved to the office' or 'Bernhard is yellow' but not both then Greg is a frog. It is probably the case that if 'Mary moved to the office' or 'Bernhard is yellow' or both then Lily is a rhino.,It is improbable that 'Mary moved to the office and Lily 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.8::factA. 0.7::factB. 0.2::factC. %hop1 0.6::factX:-or(factA,factB). 0.05::factY:-xor(factC,factB). 0.7::factZ:-or(factC,factB). %hop2 conclusion:-and(factC,factZ). query(conclusion). ",0.14,0.9149829965993199,test,improbable,almost certain,It is improbable that 'Mary moved to the office and Lily is a rhino'.,It is almost certain that 'Mary moved to the office and Lily is a rhino'.,1,'Mary moved to the office and Lily is a rhino'. There is almost no chance that John got the football. It is probable that Bernhard is a rhino. It is probably not the case that Greg is a lion. There is almost no chance that if either 'John got the football' or 'Greg is a lion' but not both then Emily is a wolf. It is probably the case that if 'Bernhard is a rhino and John got the football' then Mary went to the kitchen. It is impossible that if either 'Greg is a lion' or 'John got the football' but not both then Julius is yellow.,There is a very good chance that 'Greg is a lion' or 'Julius is yellow' or both.," 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.02::factA. 0.7::factB. 0.25::factC. %hop1 0.02::factX:-xor(factA,factC). 0.7::factY:-and(factB,factA). 0.0::factZ:-xor(factC,factA). %hop2 conclusion:-or(factC,factZ). query(conclusion). ",0.25,0.9303860772154431,test,probably not,very good chance,It is probably not the case that 'Greg is a lion' or 'Julius is yellow' or both.,There is a very good chance that 'Greg is a lion' or 'Julius is yellow' or both.,0,'Greg is a lion' or 'Julius is yellow' or both. It is highly likely that Bernhard is white. It is probably the case that Julius is yellow. There is a better than even chance that Lily is a frog. There is a very good chance that if either 'Bernhard is white' or 'Julius is yellow' but not both then Emily is a cat. We believe that if 'Bernhard is white' or 'Julius is yellow' or both then Mary left the football. Chances are slight that if 'Lily is a frog and Julius is yellow' then Brian is a lion.,Chances are about even that 'Julius is yellow and Lily is a frog'.," 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.6::factC. %hop1 0.8::factX:-xor(factA,factB). 0.75::factY:-or(factA,factB). 0.1::factZ:-and(factC,factB). %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.41999999999999993,0.905381076215243,test,about even,almost no chance,Chances are about even that 'Julius is yellow and Lily is a frog'.,There is almost no chance that 'Julius is yellow and Lily is a frog'.,1,'Julius is yellow and Lily is a frog'. Chances are slight that John got the milk. Chances are slight that Julius is yellow. It is improbable that Emily is a wolf. It is highly likely that if 'Emily is a wolf and John got the milk' then Greg is a lion. It is probably not the case that if either 'Emily is a wolf' or 'John got the milk' but not both then Bernhard is gray. It is highly likely that if 'Julius is yellow' or 'Emily is a wolf' or both then Mary went to the kitchen.,There is almost no chance that 'Bernhard is gray and Emily is a wolf'.," 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.1::factB. 0.1::factC. %hop1 0.9::factX:-and(factC,factA). 0.25::factY:-xor(factC,factA). 0.9::factZ:-or(factB,factC). %hop2 conclusion:-and(factY,factC). query(conclusion). ",0.0225,0.96999399879976,test,almost no chance,probable,There is almost no chance that 'Bernhard is gray and Emily is a wolf'.,It is probable that 'Bernhard is gray and Emily is a wolf'.,1,'Bernhard is gray and Emily is a wolf'. There is a better than even chance that Greg is a swan. There is a very good chance that Sandra got the milk. It is highly likely that Mary dropped the milk. There is a very good chance that if 'Sandra got the milk' or 'Mary dropped the milk' or both then John took the apple. It is probable that if either 'Greg is a swan' or 'Mary dropped the milk' but not both then Bernhard is gray. Chances are about even that if 'Mary dropped the milk and Sandra got the milk' then Lily is yellow.,There is little chance that 'Lily is yellow' or 'John took the apple' or both.," 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.8::factB. 0.9::factC. %hop1 0.8::factX:-or(factB,factC). 0.7::factY:-xor(factA,factC). 0.5::factZ:-and(factC,factB). %hop2 conclusion:-or(factZ,factX). query(conclusion). ",0.8560000000000001,0.9503900780156032,test,highly likely,little chance,It is highly likely that 'Lily is yellow' or 'John took the apple' or both.,There is little chance that 'Lily is yellow' or 'John took the apple' or both.,0,'Lily is yellow' or 'John took the apple' or both. It is probably the case that Mary moved to the office. It is almost certain that Greg is a rhino. It is impossible that Julius is white. There is a very good chance that if either 'Greg is a rhino' or 'Julius is white' but not both then Jessica is a mouse. It is unlikely that if 'Julius is white' or 'Greg is a rhino' or both then Daniel left the milk. It is likely that if either 'Julius is white' or 'Greg is a rhino' but not both then Bernhard is a swan.,It is impossible that 'Jessica is a mouse and Bernhard is a swan'.," 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.7::factA. 0.95::factB. 0.0::factC. %hop1 0.8::factX:-xor(factB,factC). 0.2::factY:-or(factC,factB). 0.7::factZ:-xor(factC,factB). %hop2 conclusion:-and(factX,factZ). query(conclusion). ",0.5319999999999999,0.9009801960392079,test,about even,impossible,Chances are about even that 'Jessica is a mouse and Bernhard is a swan'.,It is impossible that 'Jessica is a mouse and Bernhard is a swan'.,0,'Jessica is a mouse and Bernhard is a swan'. We doubt that Bernhard is yellow. Chances are slight that Yann is thirsty. It is impossible that John went to the office. It is probably the case that if 'John went to the office' or 'Yann is thirsty' or both then Brian is a frog. It is probable that if 'Bernhard is yellow' or 'Yann is thirsty' or both then Mary left the milk. There is little chance that if either 'Yann is thirsty' or 'Bernhard is yellow' but not both then Greg is a swan.,There is a very good chance that 'Mary left the milk' or 'Yann is thirsty' or both.," 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.1::factB. 0.0::factC. %hop1 0.7::factX:-or(factC,factB). 0.7::factY:-or(factA,factB). 0.1::factZ:-xor(factB,factA). %hop2 conclusion:-or(factY,factB). query(conclusion). ",0.22600000000000003,0.9449889977995599,test,probably not,very good chance,It is probably not the case that 'Mary left the milk' or 'Yann is thirsty' or both.,There is a very good chance that 'Mary left the milk' or 'Yann is thirsty' or both.,0,'Mary left the milk' or 'Yann is thirsty' or both. There is little chance that Emily is a mouse. It is highly unlikely that Lily is a lion. We doubt that Daniel dropped the milk. It is certain that if either 'Emily is a mouse' or 'Lily is a lion' but not both then Mary went to the office. It is likely that if either 'Emily is a mouse' or 'Daniel dropped the milk' but not both then Brian is white. It is likely that if 'Lily is a lion' or 'Daniel dropped the milk' or both then John got the apple.,There is a very good chance that 'Emily is a mouse' or 'Mary went to the office' or both.," 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.05::factB. 0.2::factC. %hop1 1.0::factX:-xor(factA,factB). 0.7::factY:-xor(factA,factC). 0.7::factZ:-or(factB,factC). %hop2 conclusion:-or(factA,factX). query(conclusion). ",0.14500000000000005,0.9947989597919584,test,chances are slight,very good chance,Chances are slight that 'Emily is a mouse' or 'Mary went to the office' or both.,There is a very good chance that 'Emily is a mouse' or 'Mary went to the office' or both.,0,'Emily is a mouse' or 'Mary went to the office' or both. It is almost certain that John moved to the garden. It is unlikely that Bernhard is a swan. There is little chance that Lily is gray. Chances are slight that if 'Lily is gray' or 'Bernhard is a swan' or both then Bill went to the bedroom. We doubt that if 'John moved to the garden' or 'Lily is gray' or both then Jeff discarded the milk. There is a very good chance that if 'Lily is gray' or 'John moved to the garden' or both then Yann is hungry.,It is likely that 'Jeff discarded the milk and Lily is gray'.," 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.95::factA. 0.2::factB. 0.1::factC. %hop1 0.1::factX:-or(factC,factB). 0.2::factY:-or(factA,factC). 0.8::factZ:-or(factC,factA). %hop2 conclusion:-and(factY,factC). query(conclusion). ",0.02000000000000001,0.919383876775355,test,almost no chance,likely,There is almost no chance that 'Jeff discarded the milk and Lily is gray'.,It is likely that 'Jeff discarded the milk and Lily is gray'.,0,'Jeff discarded the milk and Lily is gray'. There is a very good chance that Brian is green. Chances are about even that Mary went to the office. There is a very good chance that Julius is a frog. Chances are about even that if 'Brian is green' or 'Julius is a frog' or both then Gertrude is a cat. It is probable that if 'Julius is a frog' or 'Mary went to the office' or both then Fred is in the cinema. It is highly unlikely that if 'Brian is green' or 'Mary went to the office' or both then John left the milk.,It is highly unlikely that 'Mary went to the office' or 'Julius is a frog' or both.," 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.8::factA. 0.5::factB. 0.8::factC. %hop1 0.5::factX:-or(factA,factC). 0.7::factY:-or(factC,factB). 0.05::factZ:-or(factA,factB). %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.9,0.9349869973994799,test,highly likely,highly unlikely,It is highly likely that 'Mary went to the office' or 'Julius is a frog' or both.,It is highly unlikely that 'Mary went to the office' or 'Julius is a frog' or both.,0,'Mary went to the office' or 'Julius is a frog' or both. It is improbable that Bernhard is white. It is highly likely that Winona is a mouse. It is probably not the case that Brian is yellow. It is likely that if either 'Winona is a mouse' or 'Brian is yellow' but not both then Sandra put down the milk. There is a very good chance that if 'Brian is yellow and Bernhard is white' then Jason is tired. It is likely that if either 'Winona is a mouse' or 'Brian is yellow' but not both then Fred went to the garden.,It is almost certain that either 'Bernhard is white' or 'Fred went to the garden' but not both.," 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.9::factB. 0.25::factC. %hop1 0.7::factX:-xor(factB,factC). 0.8::factY:-and(factC,factA). 0.7::factZ:-xor(factB,factC). %hop2 conclusion:-xor(factA,factZ). query(conclusion). ",0.492,0.9873974794958992,test,about even,almost certain,Chances are about even that either 'Bernhard is white' or 'Fred went to the garden' but not both.,It is almost certain that either 'Bernhard is white' or 'Fred went to the garden' but not both.,0,Either 'Bernhard is white' or 'Fred went to the garden' but not both. There is a very good chance that Mary left the football. We believe that Greg is yellow. There is little chance that Brian is white. It is highly likely that if 'Greg is yellow and Brian is white' then Bill moved to the office. There is almost no chance that if 'Brian is white and Greg is yellow' then Jeff went to the garden. It is almost certain that if either 'Greg is yellow' or 'Mary left the football' but not both then John grabbed the apple.,We believe that either 'Bill moved to the office' or 'Mary left the football' but not both.," 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.8::factA. 0.75::factB. 0.1::factC. %hop1 0.9::factX:-and(factB,factC). 0.02::factY:-and(factC,factB). 0.95::factZ:-xor(factB,factA). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.7595000000000001,0.9127825565113022,test,we believe,unlikely,We believe that either 'Bill moved to the office' or 'Mary left the football' but not both.,It is unlikely that either 'Bill moved to the office' or 'Mary left the football' but not both.,1,Either 'Bill moved to the office' or 'Mary left the football' but not both. There is a very good chance that Winona is a wolf. There is little chance that Brian is white. It is certain that John put down the apple. It is certain that if 'Brian is white and Winona is a wolf' then Greg is yellow. There is a better than even chance that if either 'Winona is a wolf' or 'John put down the apple' but not both then Julius is yellow. It is likely that if 'Brian is white and Winona is a wolf' then Mary left the football.,We believe that 'Winona is a wolf and Julius is yellow'.," 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.8::factA. 0.1::factB. 1.0::factC. %hop1 1.0::factX:-and(factB,factA). 0.6::factY:-xor(factA,factC). 0.7::factZ:-and(factB,factA). %hop2 conclusion:-and(factA,factY). query(conclusion). ",0.0,0.9421884376875375,test,impossible,we believe,It is impossible that 'Winona is a wolf and Julius is yellow'.,We believe that 'Winona is a wolf and Julius is yellow'.,0,'Winona is a wolf and Julius is yellow'. There is almost no chance that Julius is a rhino. There is a very good chance that Lily is a swan. It is probably the case that Greg is a frog. We believe that if 'Julius is a rhino and Lily is a swan' then Sandra grabbed the apple. It is probably not the case that if either 'Julius is a rhino' or 'Greg is a frog' but not both then John moved to the office. It is almost certain that if 'Lily is a swan and Julius is a rhino' then Bernhard is green.,We doubt that either 'Lily is a swan' or 'John moved to the office' but not both.," 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.02::factA. 0.8::factB. 0.7::factC. %hop1 0.75::factX:-and(factA,factB). 0.25::factY:-xor(factA,factC). 0.95::factZ:-and(factB,factA). %hop2 conclusion:-xor(factB,factY). query(conclusion). ",0.6962,0.9577915583116623,test,probable,we doubt,It is probable that either 'Lily is a swan' or 'John moved to the office' but not both.,We doubt that either 'Lily is a swan' or 'John moved to the office' but not both.,0,Either 'Lily is a swan' or 'John moved to the office' but not both. It is probable that Winona is a mouse. It is highly likely that Greg is a rhino. There is a better than even chance that Jessica is a wolf. It is probable that if 'Greg is a rhino and Winona is a mouse' then John got the football. It is almost certain that if 'Winona is a mouse and Jessica is a wolf' then Bernhard is white. It is impossible that if either 'Jessica is a wolf' or 'Greg is a rhino' but not both then Antoine is hungry.,There is almost no chance that 'Jessica is a wolf and Winona is a mouse'.," 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.7::factA. 0.9::factB. 0.6::factC. %hop1 0.7::factX:-and(factB,factA). 0.95::factY:-and(factA,factC). 0.0::factZ:-xor(factC,factB). %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.41999999999999993,0.9623924784956991,test,about even,almost no chance,Chances are about even that 'Jessica is a wolf and Winona is a mouse'.,There is almost no chance that 'Jessica is a wolf and Winona is a mouse'.,0,'Jessica is a wolf and Winona is a mouse'. It is highly likely that Greg is gray. There is a better than even chance that Brian is a rhino. We believe that Lily is green. It is highly unlikely that if 'Brian is a rhino and Lily is green' then John moved to the garden. We believe that if 'Greg is gray' or 'Brian is a rhino' or both then Mary dropped the milk. It is highly unlikely that if 'Brian is a rhino' or 'Lily is green' or both then Julius is a lion.,It is almost certain that 'Greg is gray' or 'Mary dropped the milk' or both.," 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.6::factB. 0.75::factC. %hop1 0.05::factX:-and(factB,factC). 0.75::factY:-or(factA,factB). 0.05::factZ:-or(factB,factC). %hop2 conclusion:-or(factA,factY). query(conclusion). ",0.9450000000000001,0.9821964392878576,test,almost certain,improbable,It is almost certain that 'Greg is gray' or 'Mary dropped the milk' or both.,It is improbable that 'Greg is gray' or 'Mary dropped the milk' or both.,1,'Greg is gray' or 'Mary dropped the milk' or both. It is highly likely that Mary left the apple. It is highly likely that Lily is white. There is a better than even chance that Greg is a swan. We believe that if either 'Greg is a swan' or 'Mary left the apple' but not both then Sandra took the football. It is certain that if 'Mary left the apple' or 'Lily is white' or both then John went to the garden. It is probable that if either 'Greg is a swan' or 'Mary left the apple' but not both then Winona is a cat.,It is almost certain that 'Winona is a cat' or 'Mary left the apple' or both.," 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.9::factB. 0.6::factC. %hop1 0.75::factX:-xor(factC,factA). 1.0::factY:-or(factA,factB). 0.7::factZ:-xor(factC,factA). %hop2 conclusion:-or(factZ,factA). query(conclusion). ",0.9420000000000001,0.921384276855371,test,almost certain,highly unlikely,It is almost certain that 'Winona is a cat' or 'Mary left the apple' or both.,It is highly unlikely that 'Winona is a cat' or 'Mary left the apple' or both.,1,'Winona is a cat' or 'Mary left the apple' or both. It is likely that Bernhard is gray. It is likely that Brian is a rhino. It is probably the case that Mary left the football. There is almost no chance that if either 'Bernhard is gray' or 'Brian is a rhino' but not both then Jessica is a sheep. It is highly likely that if 'Brian is a rhino' or 'Bernhard is gray' or both then Greg is yellow. It is certain that if either 'Mary left the football' or 'Bernhard is gray' but not both then Julius is gray.,It is unlikely that either 'Bernhard is gray' or 'Julius is gray' but not both.," 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.7::factA. 0.7::factB. 0.7::factC. %hop1 0.02::factX:-xor(factA,factB). 0.9::factY:-or(factB,factA). 1.0::factZ:-xor(factC,factA). %hop2 conclusion:-xor(factA,factZ). query(conclusion). ",0.7,0.9965993198639728,test,probably,unlikely,It is probably the case that either 'Bernhard is gray' or 'Julius is gray' but not both.,It is unlikely that either 'Bernhard is gray' or 'Julius is gray' but not both.,0,Either 'Bernhard is gray' or 'Julius is gray' but not both. It is probably the case that Greg is white. Chances are slight that Jessica is a mouse. There is almost no chance that Julius is gray. There is little chance that if either 'Jessica is a mouse' or 'Julius is gray' but not both then Bernhard is a frog. Chances are about even that if either 'Julius is gray' or 'Greg is white' but not both then Lily is a swan. There is almost no chance that if either 'Jessica is a mouse' or 'Julius is gray' but not both then Brian is a rhino.,It is improbable that 'Greg is white' or 'Jessica is a mouse' or both.," 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.7::factA. 0.1::factB. 0.02::factC. %hop1 0.1::factX:-xor(factB,factC). 0.5::factY:-xor(factC,factA). 0.02::factZ:-xor(factB,factC). %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.73,0.9043808761752351,test,we believe,improbable,We believe that 'Greg is white' or 'Jessica is a mouse' or both.,It is improbable that 'Greg is white' or 'Jessica is a mouse' or both.,0,'Greg is white' or 'Jessica is a mouse' or both. There is a better than even chance that John went to the hallway. Chances are slight that Brian is a frog. Chances are about even that Sandra dropped the apple. It is almost certain that if either 'Sandra dropped the apple' or 'Brian is a frog' but not both then Bernhard is white. There is almost no chance that if either 'John went to the hallway' or 'Brian is a frog' but not both then Julius is gray. It is almost certain that if 'Sandra dropped the apple' or 'John went to the hallway' or both then Mary left the milk.,There is almost no chance that either 'Bernhard is white' or 'John went to the hallway' but not both.," 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.1::factB. 0.5::factC. %hop1 0.95::factX:-xor(factC,factB). 0.02::factY:-xor(factA,factB). 0.95::factZ:-or(factC,factA). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.505,0.9007801560312062,test,about even,almost no chance,Chances are about even that either 'Bernhard is white' or 'John went to the hallway' but not both.,There is almost no chance that either 'Bernhard is white' or 'John went to the hallway' but not both.,0,Either 'Bernhard is white' or 'John went to the hallway' but not both. It is impossible that John put down the apple. Chances are slight that Lily is a lion. There is a better than even chance that Jason is tired. It is probably the case that if 'John put down the apple and Jason is tired' then Fred dropped the milk. Chances are slight that if 'Jason is tired and John put down the apple' then Julius is gray. It is highly likely that if 'Lily is a lion and Jason is tired' then Mary is in the school.,There is a better than even chance that 'Julius is gray' or 'Lily is a lion' or both.," 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.0::factA. 0.1::factB. 0.6::factC. %hop1 0.7::factX:-and(factA,factC). 0.1::factY:-and(factC,factA). 0.9::factZ:-and(factB,factC). %hop2 conclusion:-or(factY,factB). query(conclusion). ",0.10000000000000002,0.9823964792958592,test,chances are slight,better than even,Chances are slight that 'Julius is gray' or 'Lily is a lion' or both.,There is a better than even chance that 'Julius is gray' or 'Lily is a lion' or both.,0,'Julius is gray' or 'Lily is a lion' or both. There is a better than even chance that Brian is white. There is almost no chance that Daniel grabbed the milk. It is certain that Mary went to the garden. It is almost certain that if 'Daniel grabbed the milk and Mary went to the garden' then Fred left the football. We doubt that if either 'Mary went to the garden' or 'Daniel grabbed the milk' but not both then Greg is a lion. It is probably not the case that if 'Daniel grabbed the milk' or 'Brian is white' or both then Julius is a swan.,It is certain that 'Daniel grabbed the milk' or 'Fred left the football' or both.," 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. 1.0::factC. %hop1 0.95::factX:-and(factB,factC). 0.2::factY:-xor(factC,factB). 0.25::factZ:-or(factB,factA). %hop2 conclusion:-or(factB,factX). query(conclusion). ",0.02,0.9773954790958191,test,almost no chance,certain,There is almost no chance that 'Daniel grabbed the milk' or 'Fred left the football' or both.,It is certain that 'Daniel grabbed the milk' or 'Fred left the football' or both.,0,'Daniel grabbed the milk' or 'Fred left the football' or both. Chances are about even that Sandra is in the kitchen. There is almost no chance that Bernhard is a frog. It is likely that Gertrude is a sheep. We doubt that if 'Gertrude is a sheep and Bernhard is a frog' then Lily is a lion. It is unlikely that if 'Bernhard is a frog and Gertrude is a sheep' then John went to the garden. It is almost certain that if 'Sandra is in the kitchen and Gertrude is a sheep' then Julius is gray.,There is almost no chance that either 'Bernhard is a frog' or 'Lily is a lion' but not both.," 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.5::factA. 0.02::factB. 0.7::factC. %hop1 0.2::factX:-and(factC,factB). 0.2::factY:-and(factB,factC). 0.95::factZ:-and(factA,factC). %hop2 conclusion:-xor(factB,factX). query(conclusion). ",0.01720000000000001,0.9923984796959392,test,almost no chance,likely,There is almost no chance that either 'Bernhard is a frog' or 'Lily is a lion' but not both.,It is likely that either 'Bernhard is a frog' or 'Lily is a lion' but not both.,1,Either 'Bernhard is a frog' or 'Lily is a lion' but not both. There is little chance that Daniel grabbed the apple. It is unlikely that Sandra left the milk. It is probable that John went to the garden. There is little chance that if either 'John went to the garden' or 'Sandra left the milk' but not both then Brian is yellow. Chances are about even that if 'John went to the garden and Sandra left the milk' then Bernhard is a swan. There is a very good chance that if 'John went to the garden and Daniel grabbed the apple' then Julius is a lion.,It is probably not the case that either 'Sandra left the milk' or 'Julius is a lion' but not both.," 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.1::factX:-xor(factC,factB). 0.5::factY:-and(factC,factB). 0.8::factZ:-and(factC,factA). %hop2 conclusion:-xor(factB,factZ). query(conclusion). ",0.2336,0.9523904780956192,test,probably not,highly likely,It is probably not the case that either 'Sandra left the milk' or 'Julius is a lion' but not both.,It is highly likely that either 'Sandra left the milk' or 'Julius is a lion' but not both.,1,Either 'Sandra left the milk' or 'Julius is a lion' but not both. There is little chance that Mary went to the bedroom. There is a very good chance that Gertrude is a cat. We believe that Julius is a rhino. There is a very good chance that if either 'Gertrude is a cat' or 'Mary went to the bedroom' but not both then Lily is yellow. There is a very good chance that if either 'Mary went to the bedroom' or 'Julius is a rhino' but not both then Greg is yellow. It is almost certain that if either 'Mary went to the bedroom' or 'Julius is a rhino' but not both then John picked up the milk.,It is highly likely that 'Gertrude is a cat' or 'Greg is yellow' or both.," 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.8::factB. 0.75::factC. %hop1 0.8::factX:-xor(factB,factA). 0.8::factY:-xor(factA,factC). 0.95::factZ:-xor(factA,factC). %hop2 conclusion:-or(factB,factY). query(conclusion). ",0.912,0.9431886377275455,test,highly likely,chances are slight,It is highly likely that 'Gertrude is a cat' or 'Greg is yellow' or both.,Chances are slight that 'Gertrude is a cat' or 'Greg is yellow' or both.,1,'Gertrude is a cat' or 'Greg is yellow' or both. We believe that Sandra grabbed the apple. We doubt that Julius is a swan. There is little chance that Brian is yellow. It is certain that if 'Brian is yellow and Sandra grabbed the apple' then Mary dropped the milk. Chances are about even that if 'Julius is a swan' or 'Brian is yellow' or both then Jessica is a cat. There is a very good chance that if either 'Sandra grabbed the apple' or 'Julius is a swan' but not both then John went to the bedroom.,It is almost certain that 'Julius is a swan and John went to the bedroom'.," 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.75::factA. 0.2::factB. 0.1::factC. %hop1 1.0::factX:-and(factC,factA). 0.5::factY:-or(factB,factC). 0.8::factZ:-xor(factA,factB). %hop2 conclusion:-and(factB,factZ). query(conclusion). ",0.04000000000000001,0.9095819163832767,test,highly unlikely,almost certain,It is highly unlikely that 'Julius is a swan and John went to the bedroom'.,It is almost certain that 'Julius is a swan and John went to the bedroom'.,0,'Julius is a swan and John went to the bedroom'. We believe that Winona is a cat. It is certain that Brian is a lion. It is unlikely that Gertrude is a sheep. It is probably not the case that if either 'Winona is a cat' or 'Gertrude is a sheep' but not both then Mary moved to the garden. It is unlikely that if 'Winona is a cat' or 'Gertrude is a sheep' or both then Greg is a frog. There is a better than even chance that if 'Winona is a cat and Gertrude is a sheep' then John put down the milk.,It is probably not the case that 'Greg is a frog' or 'John put down the milk' or both.," 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.75::factA. 1.0::factB. 0.2::factC. %hop1 0.25::factX:-xor(factA,factC). 0.2::factY:-or(factA,factC). 0.6::factZ:-and(factA,factC). %hop2 conclusion:-or(factY,factZ). query(conclusion). ",0.23199999999999998,0.9819963992798559,test,probably not,almost certain,It is probably not the case that 'Greg is a frog' or 'John put down the milk' or both.,It is almost certain that 'Greg is a frog' or 'John put down the milk' or both.,1,'Greg is a frog' or 'John put down the milk' or both. It is unlikely that Greg is a frog. It is impossible that John left the football. There is almost no chance that Winona is a mouse. We believe that if 'Greg is a frog' or 'John left the football' or both then Brian is a rhino. There is a very good chance that if 'John left the football and Winona is a mouse' then Lily is green. It is likely that if 'Winona is a mouse and Greg is a frog' then Sandra grabbed the milk.,It is impossible that 'John left the football and Winona is a mouse'.," 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.0::factB. 0.02::factC. %hop1 0.75::factX:-or(factA,factB). 0.8::factY:-and(factB,factC). 0.7::factZ:-and(factC,factA). %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.0,0.9915983196639327,test,impossible,likely,It is impossible that 'John left the football and Winona is a mouse'.,It is likely that 'John left the football and Winona is a mouse'.,1,'John left the football and Winona is a mouse'. We believe that Gertrude is a wolf. It is likely that Lily is a lion. It is unlikely that Bernhard is green. It is probably the case that if 'Gertrude is a wolf' or 'Lily is a lion' or both then John picked up the milk. There is a very good chance that if either 'Lily is a lion' or 'Gertrude is a wolf' but not both then Greg is a rhino. It is improbable that if 'Bernhard is green' or 'Lily is a lion' or both then Julius is white.,We believe that 'Gertrude is a wolf' or 'Julius is white' or both.," 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.75::factA. 0.7::factB. 0.2::factC. %hop1 0.7::factX:-or(factA,factB). 0.8::factY:-xor(factB,factA). 0.1::factZ:-or(factC,factB). %hop2 conclusion:-or(factA,factZ). query(conclusion). ",0.769,0.953990798159632,test,we believe,almost no chance,We believe that 'Gertrude is a wolf' or 'Julius is white' or both.,There is almost no chance that 'Gertrude is a wolf' or 'Julius is white' or both.,1,'Gertrude is a wolf' or 'Julius is white' or both. It is probably the case that Winona is a wolf. It is unlikely that Mary moved to the garden. It is almost certain that Julius is yellow. It is almost certain that if 'Mary moved to the garden and Julius is yellow' then John grabbed the milk. It is probably the case that if 'Julius is yellow' or 'Winona is a wolf' or both then Jessica is a cat. It is highly unlikely that if 'Winona is a wolf' or 'Mary moved to the garden' or both then Emily is a sheep.,It is highly likely that 'Winona is a wolf' or 'Jessica is a cat' or both.," 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.7::factA. 0.2::factB. 0.95::factC. %hop1 0.95::factX:-and(factB,factC). 0.7::factY:-or(factC,factA). 0.05::factZ:-or(factA,factB). %hop2 conclusion:-or(factA,factY). query(conclusion). ",0.8995,0.9035807161432287,test,highly likely,little chance,It is highly likely that 'Winona is a wolf' or 'Jessica is a cat' or both.,There is little chance that 'Winona is a wolf' or 'Jessica is a cat' or both.,1,'Winona is a wolf' or 'Jessica is a cat' or both. It is probably not the case that Julius is a frog. It is highly unlikely that Mary left the football. It is certain that John went to the office. There is a better than even chance that if 'Mary left the football and John went to the office' then Lily is green. There is a very good chance that if 'Julius is a frog and Mary left the football' then Greg is white. There is a better than even chance that if 'John went to the office and Julius is a frog' then Winona is a sheep.,It is almost certain that either 'John went to the office' or 'Mary left the football' but not both.," 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.25::factA. 0.05::factB. 1.0::factC. %hop1 0.6::factX:-and(factB,factC). 0.8::factY:-and(factA,factB). 0.6::factZ:-and(factC,factA). %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.95,0.9935987197439488,test,almost certain,almost no chance,It is almost certain that either 'John went to the office' or 'Mary left the football' but not both.,There is almost no chance that either 'John went to the office' or 'Mary left the football' but not both.,1,Either 'John went to the office' or 'Mary left the football' but not both. It is improbable that Mary put down the apple. Chances are about even that Lily is green. It is likely that Brian is a swan. It is highly unlikely that if either 'Lily is green' or 'Mary put down the apple' but not both then Julius is gray. It is highly unlikely that if 'Lily is green' or 'Mary put down the apple' or both then Bernhard is a frog. We believe that if 'Brian is a swan and Mary put down the apple' then Jeff left the apple.,It is certain that 'Mary put down the apple and Jeff left the apple'.," 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.5::factB. 0.7::factC. %hop1 0.05::factX:-xor(factB,factA). 0.05::factY:-or(factB,factA). 0.75::factZ:-and(factC,factA). %hop2 conclusion:-and(factA,factZ). query(conclusion). ",0.05250000000000002,0.9191838367673535,test,highly unlikely,certain,It is highly unlikely that 'Mary put down the apple and Jeff left the apple'.,It is certain that 'Mary put down the apple and Jeff left the apple'.,0,'Mary put down the apple and Jeff left the apple'. There is little chance that Brian is yellow. It is almost certain that Sandra left the milk. We believe that Lily is green. It is highly unlikely that if either 'Lily is green' or 'Brian is yellow' but not both then John took the football. It is probably not the case that if 'Sandra left the milk and Lily is green' then Greg is gray. It is likely that if 'Sandra left the milk' or 'Brian is yellow' or both then Mary got the apple.,There is a better than even chance that either 'Brian is yellow' or 'Mary got the apple' but not both.," 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.95::factB. 0.75::factC. %hop1 0.05::factX:-xor(factC,factA). 0.25::factY:-and(factB,factC). 0.7::factZ:-or(factB,factA). %hop2 conclusion:-xor(factA,factZ). query(conclusion). ",0.6285,0.9733946789357871,test,better than even,improbable,There is a better than even chance that either 'Brian is yellow' or 'Mary got the apple' but not both.,It is improbable that either 'Brian is yellow' or 'Mary got the apple' but not both.,1,Either 'Brian is yellow' or 'Mary got the apple' but not both. Chances are about even that Greg is a lion. There is almost no chance that Sandra left the apple. There is a very good chance that Mary went to the office. Chances are about even that if 'Mary went to the office' or 'Sandra left the apple' or both then John got the milk. It is almost certain that if 'Sandra left the apple' or 'Mary went to the office' or both then Antoine is hungry. It is improbable that if 'Greg is a lion' or 'Sandra left the apple' or both then Jessica is a cat.,It is certain that either 'Greg is a lion' or 'Jessica is a cat' but not both.," 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.5::factA. 0.02::factB. 0.8::factC. %hop1 0.5::factX:-or(factC,factB). 0.95::factY:-or(factB,factC). 0.1::factZ:-or(factA,factB). %hop2 conclusion:-xor(factA,factZ). query(conclusion). ",0.45099999999999996,0.9681936387277456,test,about even,certain,Chances are about even that either 'Greg is a lion' or 'Jessica is a cat' but not both.,It is certain that either 'Greg is a lion' or 'Jessica is a cat' but not both.,0,Either 'Greg is a lion' or 'Jessica is a cat' but not both. Chances are about even that Bernhard is gray. It is almost certain that Winona is a mouse. It is certain that Brian is yellow. It is certain that if 'Brian is yellow and Bernhard is gray' then Mary left the football. It is unlikely that if 'Winona is a mouse and Brian is yellow' then Greg is a frog. It is unlikely that if either 'Bernhard is gray' or 'Winona is a mouse' but not both then John discarded the apple.,It is almost certain that 'Bernhard is gray' or 'Winona is a mouse' or both.," 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.5::factA. 0.95::factB. 1.0::factC. %hop1 1.0::factX:-and(factC,factA). 0.2::factY:-and(factB,factC). 0.2::factZ:-xor(factA,factB). %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.975,0.9735947189437888,test,almost certain,impossible,It is almost certain that 'Bernhard is gray' or 'Winona is a mouse' or both.,It is impossible that 'Bernhard is gray' or 'Winona is a mouse' or both.,1,'Bernhard is gray' or 'Winona is a mouse' or both. It is highly unlikely that Julius is a frog. It is highly likely that Mary went to the kitchen. It is almost certain that Greg is a lion. Chances are about even that if either 'Mary went to the kitchen' or 'Julius is a frog' but not both then Bernhard is yellow. There is a better than even chance that if 'Greg is a lion and Julius is a frog' then Lily is a swan. There is little chance that if 'Julius is a frog and Mary went to the kitchen' then John put down the milk.,It is highly likely that 'Lily is a swan' or 'Mary went to the kitchen' or both.," 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.9::factB. 0.95::factC. %hop1 0.5::factX:-xor(factB,factA). 0.6::factY:-and(factC,factA). 0.1::factZ:-and(factA,factB). %hop2 conclusion:-or(factY,factB). query(conclusion). ",0.90285,0.9463892778555711,test,highly likely,we doubt,It is highly likely that 'Lily is a swan' or 'Mary went to the kitchen' or both.,We doubt that 'Lily is a swan' or 'Mary went to the kitchen' or both.,1,'Lily is a swan' or 'Mary went to the kitchen' or both. Chances are about even that Mary discarded the milk. Chances are slight that Julius is a lion. There is little chance that Sandra is in the kitchen. It is highly likely that if 'Mary discarded the milk and Sandra is in the kitchen' then Emily is a sheep. It is almost certain that if 'Sandra is in the kitchen and Julius is a lion' then John moved to the office. Chances are about even that if 'Mary discarded the milk and Sandra is in the kitchen' then Brian is green.,Chances are about even that 'Mary discarded the milk' or 'John moved to the office' or both.," 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.5::factA. 0.1::factB. 0.1::factC. %hop1 0.9::factX:-and(factA,factC). 0.95::factY:-and(factC,factB). 0.5::factZ:-and(factA,factC). %hop2 conclusion:-or(factA,factY). query(conclusion). ",0.50475,0.9911982396479296,test,about even,impossible,Chances are about even that 'Mary discarded the milk' or 'John moved to the office' or both.,It is impossible that 'Mary discarded the milk' or 'John moved to the office' or both.,1,'Mary discarded the milk' or 'John moved to the office' or both. There is a better than even chance that Yann is tired. It is certain that Mary dropped the apple. It is probable that John got the milk. It is unlikely that if 'Yann is tired' or 'Mary dropped the apple' or both then Fred went to the garden. It is unlikely that if 'Yann is tired and Mary dropped the apple' then Jason is bored. There is little chance that if either 'John got the milk' or 'Yann is tired' but not both then Brian is a frog.,Chances are about even that 'Yann is tired and John got the milk'.," 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. 1.0::factB. 0.7::factC. %hop1 0.2::factX:-or(factA,factB). 0.2::factY:-and(factA,factB). 0.1::factZ:-xor(factC,factA). %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.41999999999999993,0.9507901580316063,test,about even,almost no chance,Chances are about even that 'Yann is tired and John got the milk'.,There is almost no chance that 'Yann is tired and John got the milk'.,1,'Yann is tired and John got the milk'. There is a better than even chance that Sumit is thirsty. It is highly likely that Lily is a frog. It is impossible that Brian is a rhino. It is probably the case that if either 'Brian is a rhino' or 'Sumit is thirsty' but not both then Greg is a lion. It is highly likely that if 'Sumit is thirsty and Brian is a rhino' then John went to the office. It is improbable that if 'Lily is a frog and Brian is a rhino' then Julius is white.,It is impossible that 'Julius is white 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.9::factB. 0.0::factC. %hop1 0.7::factX:-xor(factC,factA). 0.9::factY:-and(factA,factC). 0.1::factZ:-and(factB,factC). %hop2 conclusion:-and(factZ,factC). query(conclusion). ",0.0,0.9941988397679536,test,impossible,certain,It is impossible that 'Julius is white and Brian is a rhino'.,It is certain that 'Julius is white and Brian is a rhino'.,1,'Julius is white and Brian is a rhino'. It is highly likely that Lily is white. It is almost certain that Julius is gray. Chances are about even that Mary went to the office. It is unlikely that if either 'Mary went to the office' or 'Lily is white' but not both then Gertrude is a wolf. It is certain that if either 'Julius is gray' or 'Lily is white' but not both then John got the football. It is improbable that if 'Mary went to the office and Julius is gray' then Emily is a sheep.,There is a better than even chance that 'Mary went to the office' or 'John got the football' or both.," 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.95::factB. 0.5::factC. %hop1 0.2::factX:-xor(factC,factA). 1.0::factY:-xor(factB,factA). 0.1::factZ:-and(factC,factB). %hop2 conclusion:-or(factC,factY). query(conclusion). ",0.5700000000000001,0.9769953990798159,test,better than even,impossible,There is a better than even chance that 'Mary went to the office' or 'John got the football' or both.,It is impossible that 'Mary went to the office' or 'John got the football' or both.,1,'Mary went to the office' or 'John got the football' or both. Chances are slight that Lily is yellow. It is probably the case that Greg is a swan. It is improbable that Julius is gray. It is almost certain that if 'Julius is gray' or 'Lily is yellow' or both then Sandra left the milk. We believe that if 'Greg is a swan and Lily is yellow' then John went to the hallway. There is almost no chance that if 'Greg is a swan and Lily is yellow' then Daniel got the football.,There is a better than even chance that either 'Sandra left the milk' or 'Greg is a swan' but not both.," 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.7::factB. 0.1::factC. %hop1 0.95::factX:-or(factC,factA). 0.75::factY:-and(factB,factA). 0.02::factZ:-and(factB,factA). %hop2 conclusion:-xor(factX,factB). query(conclusion). ",0.6278,0.9395879175835167,test,better than even,chances are slight,There is a better than even chance that either 'Sandra left the milk' or 'Greg is a swan' but not both.,Chances are slight that either 'Sandra left the milk' or 'Greg is a swan' but not both.,1,Either 'Sandra left the milk' or 'Greg is a swan' but not both. There is almost no chance that Emily is a mouse. It is almost certain that Daniel took the apple. It is probably not the case that Brian is yellow. It is highly likely that if 'Brian is yellow and Emily is a mouse' then John moved to the garden. It is highly likely that if either 'Emily is a mouse' or 'Brian is yellow' but not both then Julius is yellow. There is almost no chance that if either 'Daniel took the apple' or 'Emily is a mouse' but not both then Bernhard is a frog.,It is probable that 'Julius is yellow' or 'Emily is a mouse' or both.," 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.02::factA. 0.95::factB. 0.25::factC. %hop1 0.9::factX:-and(factC,factA). 0.9::factY:-xor(factA,factC). 0.02::factZ:-xor(factB,factA). %hop2 conclusion:-or(factY,factA). query(conclusion). ",0.24050000000000002,0.99499899979996,test,probably not,probable,It is probably not the case that 'Julius is yellow' or 'Emily is a mouse' or both.,It is probable that 'Julius is yellow' or 'Emily is a mouse' or both.,0,'Julius is yellow' or 'Emily is a mouse' or both. It is probable that Julius is a lion. It is highly unlikely that Winona is a cat. We believe that Lily is gray. There is a very good chance that if 'Lily is gray' or 'Winona is a cat' or both then Greg is yellow. We believe that if 'Julius is a lion and Lily is gray' then John went to the garden. It is highly unlikely that if 'Julius is a lion' or 'Winona is a cat' or both then Bernhard is green.,It is impossible that 'Winona is a cat' or 'John went to the garden' or both.," 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.7::factA. 0.05::factB. 0.75::factC. %hop1 0.8::factX:-or(factC,factB). 0.75::factY:-and(factA,factC). 0.05::factZ:-or(factA,factB). %hop2 conclusion:-or(factB,factY). query(conclusion). ",0.42406249999999995,0.9525905181036207,test,about even,impossible,Chances are about even that 'Winona is a cat' or 'John went to the garden' or both.,It is impossible that 'Winona is a cat' or 'John went to the garden' or both.,0,'Winona is a cat' or 'John went to the garden' or both. It is probably the case that Daniel dropped the apple. It is unlikely that Winona is a sheep. There is a better than even chance that Sandra took the milk. We believe that if 'Daniel dropped the apple and Sandra took the milk' then Greg is gray. It is improbable that if either 'Sandra took the milk' or 'Daniel dropped the apple' but not both then Lily is a lion. It is probably the case that if 'Daniel dropped the apple' or 'Sandra took the milk' or both then John moved to the garden.,There is almost no chance that 'Lily is a lion and Sandra took the milk'.," 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.7::factA. 0.2::factB. 0.6::factC. %hop1 0.75::factX:-and(factA,factC). 0.1::factY:-xor(factC,factA). 0.7::factZ:-or(factA,factC). %hop2 conclusion:-and(factY,factC). query(conclusion). ",0.018000000000000002,0.9683936787357471,test,almost no chance,probably,There is almost no chance that 'Lily is a lion and Sandra took the milk'.,It is probably the case that 'Lily is a lion and Sandra took the milk'.,1,'Lily is a lion and Sandra took the milk'. Chances are slight that Mary discarded the milk. We doubt that Brian is yellow. It is probably not the case that Julius is gray. There is little chance that if 'Mary discarded the milk and Brian is yellow' then Lily is a lion. We doubt that if 'Mary discarded the milk and Julius is gray' then John went to the garden. We doubt that if 'Mary discarded the milk' or 'Julius is gray' or both then Jeff left the apple.,There is almost no chance that 'Brian is yellow and Mary discarded the milk'.," 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.25::factC. %hop1 0.1::factX:-and(factA,factB). 0.2::factY:-and(factA,factC). 0.2::factZ:-or(factA,factC). %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.02000000000000001,0.9747949589917984,test,almost no chance,likely,There is almost no chance that 'Brian is yellow and Mary discarded the milk'.,It is likely that 'Brian is yellow and Mary discarded the milk'.,1,'Brian is yellow and Mary discarded the milk'. It is almost certain that John moved to the office. It is certain that Bernhard is a swan. It is likely that Mary discarded the milk. It is probably the case that if 'John moved to the office' or 'Mary discarded the milk' or both then Lily is green. It is highly unlikely that if 'John moved to the office and Bernhard is a swan' then Julius is a rhino. It is probably the case that if either 'Mary discarded the milk' or 'John moved to the office' but not both then Jason is bored.,There is little chance that 'Jason is bored' or 'Bernhard is a swan' or both.," 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.95::factA. 1.0::factB. 0.7::factC. %hop1 0.7::factX:-or(factA,factC). 0.05::factY:-and(factA,factB). 0.7::factZ:-xor(factC,factA). %hop2 conclusion:-or(factZ,factB). query(conclusion). ",1.0,0.9711942388477696,test,certain,little chance,It is certain that 'Jason is bored' or 'Bernhard is a swan' or both.,There is little chance that 'Jason is bored' or 'Bernhard is a swan' or both.,0,'Jason is bored' or 'Bernhard is a swan' or both. It is certain that Greg is white. It is improbable that Bernhard is green. There is a very good chance that Sumit is thirsty. It is probably the case that if 'Greg is white and Sumit is thirsty' then Mary went to the bedroom. There is almost no chance that if 'Greg is white and Bernhard is green' then Julius is white. Chances are about even that if either 'Bernhard is green' or 'Sumit is thirsty' but not both then Lily is green.,There is a very good chance that 'Sumit is thirsty' or 'Mary went to the bedroom' or both.," 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 1.0::factA. 0.1::factB. 0.8::factC. %hop1 0.7::factX:-and(factA,factC). 0.02::factY:-and(factA,factB). 0.5::factZ:-xor(factB,factC). %hop2 conclusion:-or(factC,factX). query(conclusion). ",0.8,0.9727945589117823,test,very good chance,chances are slight,There is a very good chance that 'Sumit is thirsty' or 'Mary went to the bedroom' or both.,Chances are slight that 'Sumit is thirsty' or 'Mary went to the bedroom' or both.,1,'Sumit is thirsty' or 'Mary went to the bedroom' or both. Chances are about even that Jessica is a mouse. It is probable that John discarded the apple. Chances are about even that Brian is a rhino. It is highly likely that if either 'John discarded the apple' or 'Brian is a rhino' but not both then Sumit is tired. It is probably the case that if 'John discarded the apple and Jessica is a mouse' then Mary went to the bedroom. It is probable that if 'Brian is a rhino and John discarded the apple' then Greg is a swan.,It is probable that either 'Brian is a rhino' or 'Greg is a swan' but not both.," 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.5::factA. 0.7::factB. 0.5::factC. %hop1 0.9::factX:-xor(factB,factC). 0.7::factY:-and(factB,factA). 0.7::factZ:-and(factC,factB). %hop2 conclusion:-xor(factC,factZ). query(conclusion). ",0.25499999999999995,0.9675935187037408,test,probably not,probable,It is probably not the case that either 'Brian is a rhino' or 'Greg is a swan' but not both.,It is probable that either 'Brian is a rhino' or 'Greg is a swan' but not both.,0,Either 'Brian is a rhino' or 'Greg is a swan' but not both. There is almost no chance that Julius is a lion. It is probable that Mary went to the kitchen. It is unlikely that Daniel left the apple. It is highly likely that if 'Mary went to the kitchen and Daniel left the apple' then Brian is white. It is almost certain that if 'Mary went to the kitchen' or 'Julius is a lion' or both then Greg is gray. We doubt that if 'Julius is a lion and Mary went to the kitchen' then Jeff moved to the office.,It is impossible that 'Jeff moved to the office and Mary went to the kitchen'.," 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.02::factA. 0.7::factB. 0.2::factC. %hop1 0.9::factX:-and(factB,factC). 0.95::factY:-or(factB,factA). 0.2::factZ:-and(factA,factB). %hop2 conclusion:-and(factZ,factB). query(conclusion). ",0.002800000000000001,0.9827965593118624,test,impossible,we believe,It is impossible that 'Jeff moved to the office and Mary went to the kitchen'.,We believe that 'Jeff moved to the office and Mary went to the kitchen'.,1,'Jeff moved to the office and Mary went to the kitchen'. Chances are slight that Julius is a swan. We believe that Lily is a lion. It is highly likely that Mary left the football. It is probably the case that if either 'Lily is a lion' or 'Julius is a swan' but not both then Winona is a mouse. We doubt that if 'Lily is a lion and Mary left the football' then Sandra took the apple. It is probable that if either 'Julius is a swan' or 'Lily is a lion' but not both then Emily is a wolf.,There is almost no chance that 'Emily is a wolf' or 'Julius is a swan' or both.," 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.75::factB. 0.9::factC. %hop1 0.7::factX:-xor(factB,factA). 0.2::factY:-and(factB,factC). 0.7::factZ:-xor(factA,factB). %hop2 conclusion:-or(factZ,factA). query(conclusion). ",0.5724999999999999,0.9809961992398479,test,better than even,almost no chance,There is a better than even chance that 'Emily is a wolf' or 'Julius is a swan' or both.,There is almost no chance that 'Emily is a wolf' or 'Julius is a swan' or both.,0,'Emily is a wolf' or 'Julius is a swan' or both. It is highly unlikely that Greg is a rhino. Chances are about even that John left the football. We believe that Mary went to the hallway. We believe that if 'Greg is a rhino and John left the football' then Sandra got the football. It is highly unlikely that if 'Greg is a rhino and John left the football' then Jessica is a cat. It is unlikely that if 'Greg is a rhino' or 'Mary went to the hallway' or both then Bernhard is a lion.,It is impossible that 'Sandra got the football and Jessica 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.05::factA. 0.5::factB. 0.75::factC. %hop1 0.75::factX:-and(factA,factB). 0.05::factY:-and(factA,factB). 0.2::factZ:-or(factA,factC). %hop2 conclusion:-and(factX,factY). query(conclusion). ",0.0009375000000000003,0.9179835967193438,test,impossible,almost certain,It is impossible that 'Sandra got the football and Jessica is a cat'.,It is almost certain that 'Sandra got the football and Jessica is a cat'.,1,'Sandra got the football and Jessica is a cat'. There is almost no chance that Brian is a lion. It is improbable that Bernhard is green. There is little chance that Lily is white. It is probably not the case that if 'Lily is white' or 'Bernhard is green' or both then Daniel dropped the apple. We doubt that if either 'Lily is white' or 'Bernhard is green' but not both then Gertrude is a mouse. It is probably not the case that if 'Brian is a lion' or 'Lily is white' or both then John went to the kitchen.,There is a very good chance that 'Gertrude is a mouse and Daniel dropped the apple'.," 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.02::factA. 0.1::factB. 0.1::factC. %hop1 0.25::factX:-or(factC,factB). 0.2::factY:-xor(factC,factB). 0.25::factZ:-or(factA,factC). %hop2 conclusion:-and(factY,factX). query(conclusion). ",0.009000000000000008,0.9037807561512302,test,impossible,very good chance,It is impossible that 'Gertrude is a mouse and Daniel dropped the apple'.,There is a very good chance that 'Gertrude is a mouse and Daniel dropped the apple'.,0,'Gertrude is a mouse and Daniel dropped the apple'. Chances are slight that Bernhard is gray. It is probably not the case that Greg is yellow. There is almost no chance that Mary dropped the apple. It is probably not the case that if 'Bernhard is gray and Greg is yellow' then Jason is tired. It is probably the case that if either 'Bernhard is gray' or 'Mary dropped the apple' but not both then Brian is a frog. It is unlikely that if 'Greg is yellow' or 'Bernhard is gray' or both then Lily is gray.,It is certain that 'Lily is gray' or 'Brian is a frog' or both.," 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.25::factB. 0.02::factC. %hop1 0.25::factX:-and(factA,factB). 0.7::factY:-xor(factA,factC). 0.2::factZ:-or(factB,factA). %hop2 conclusion:-or(factZ,factY). query(conclusion). ",0.13185,0.957991598319664,test,little chance,certain,There is little chance that 'Lily is gray' or 'Brian is a frog' or both.,It is certain that 'Lily is gray' or 'Brian is a frog' or both.,0,'Lily is gray' or 'Brian is a frog' or both. Chances are slight that Julius is yellow. It is probably not the case that John dropped the apple. Chances are about even that Lily is a rhino. There is almost no chance that if either 'John dropped the apple' or 'Lily is a rhino' but not both then Bernhard is a swan. It is likely that if either 'Julius is yellow' or 'John dropped the apple' but not both then Winona is a sheep. It is probably the case that if 'Lily is a rhino' or 'Julius is yellow' or both then Greg is gray.,It is probable that 'Greg is gray and Winona 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.1::factA. 0.25::factB. 0.5::factC. %hop1 0.02::factX:-xor(factB,factC). 0.7::factY:-xor(factA,factB). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-and(factZ,factY). query(conclusion). ",0.09187499999999998,0.9233846769353871,test,little chance,probable,There is little chance that 'Greg is gray and Winona is a sheep'.,It is probable that 'Greg is gray and Winona is a sheep'.,0,'Greg is gray and Winona is a sheep'. It is impossible that John went to the kitchen. It is likely that Jessica is a mouse. It is impossible that Yann is tired. It is probable that if 'John went to the kitchen and Jessica is a mouse' then Julius is white. There is little chance that if 'John went to the kitchen' or 'Yann is tired' or both then Greg is gray. It is certain that if 'John went to the kitchen' or 'Jessica is a mouse' or both then Daniel took the milk.,It is impossible that 'Julius is white and Jessica is a mouse'.," 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.0::factA. 0.7::factB. 0.0::factC. %hop1 0.7::factX:-and(factA,factB). 0.1::factY:-or(factA,factC). 1.0::factZ:-or(factA,factB). %hop2 conclusion:-and(factX,factB). query(conclusion). ",0.0,0.9387877575515103,test,impossible,probably,It is impossible that 'Julius is white and Jessica is a mouse'.,It is probably the case that 'Julius is white and Jessica is a mouse'.,1,'Julius is white and Jessica is a mouse'. It is certain that Sumit is thirsty. It is improbable that Lily is green. It is probable that Brian is white. There is almost no chance that if either 'Lily is green' or 'Sumit is thirsty' but not both then Greg is a rhino. We believe that if 'Sumit is thirsty and Brian is white' then Bernhard is green. There is almost no chance that if either 'Brian is white' or 'Lily is green' but not both then Julius is yellow.,It is likely that 'Lily is green and Brian is white'.," 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 1.0::factA. 0.1::factB. 0.7::factC. %hop1 0.02::factX:-xor(factB,factA). 0.75::factY:-and(factA,factC). 0.02::factZ:-xor(factC,factB). %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.07,0.9831966393278656,test,highly unlikely,likely,It is highly unlikely that 'Lily is green and Brian is white'.,It is likely that 'Lily is green and Brian is white'.,0,'Lily is green and Brian is white'. It is unlikely that Brian is a rhino. We believe that Gertrude is a sheep. It is impossible that John moved to the office. There is little chance that if either 'Brian is a rhino' or 'John moved to the office' but not both then Bernhard is green. Chances are about even that if 'Brian is a rhino' or 'Gertrude is a sheep' or both then Emily is a wolf. There is almost no chance that if 'Brian is a rhino and Gertrude is a sheep' then Lily is a rhino.,There is a very good chance that 'Bernhard is green' or 'Brian is a rhino' or both.," 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.75::factB. 0.0::factC. %hop1 0.1::factX:-xor(factA,factC). 0.5::factY:-or(factA,factB). 0.02::factZ:-and(factA,factB). %hop2 conclusion:-or(factX,factA). query(conclusion). ",0.2,0.9135827165433087,test,we doubt,very good chance,We doubt that 'Bernhard is green' or 'Brian is a rhino' or both.,There is a very good chance that 'Bernhard is green' or 'Brian is a rhino' or both.,0,'Bernhard is green' or 'Brian is a rhino' or both. We believe that Sandra dropped the milk. Chances are about even that Lily is white. It is almost certain that Jessica is a cat. It is highly unlikely that if 'Lily is white' or 'Jessica is a cat' or both then Brian is white. There is almost no chance that if 'Lily is white' or 'Sandra dropped the milk' or both then Jeff moved to the office. We doubt that if 'Sandra dropped the milk' or 'Lily is white' or both then Mary went to the garden.,It is impossible that 'Lily is white' or 'Brian is white' or both.," 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.75::factA. 0.5::factB. 0.95::factC. %hop1 0.05::factX:-or(factB,factC). 0.02::factY:-or(factB,factA). 0.2::factZ:-or(factA,factB). %hop2 conclusion:-or(factB,factX). query(conclusion). ",0.52375,0.9119823964792959,test,about even,impossible,Chances are about even that 'Lily is white' or 'Brian is white' or both.,It is impossible that 'Lily is white' or 'Brian is white' or both.,0,'Lily is white' or 'Brian is white' or both. It is unlikely that Lily is a rhino. There is a very good chance that Sumit is thirsty. There is a very good chance that Greg is green. It is highly likely that if either 'Greg is green' or 'Lily is a rhino' but not both then Bernhard is a frog. It is likely that if either 'Greg is green' or 'Lily is a rhino' but not both then Fred put down the apple. We believe that if either 'Greg is green' or 'Lily is a rhino' but not both then John went to the hallway.,It is probably not the case that either 'Bernhard is a frog' or 'Greg is green' but not both.," 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.8::factB. 0.8::factC. %hop1 0.9::factX:-xor(factC,factA). 0.7::factY:-xor(factC,factA). 0.75::factZ:-xor(factC,factA). %hop2 conclusion:-xor(factX,factC). query(conclusion). ",0.25999999999999995,0.9741948389677936,test,probably not,certain,It is probably not the case that either 'Bernhard is a frog' or 'Greg is green' but not both.,It is certain that either 'Bernhard is a frog' or 'Greg is green' but not both.,1,Either 'Bernhard is a frog' or 'Greg is green' but not both. It is highly likely that Sandra left the milk. There is little chance that Julius is a swan. There is a better than even chance that Brian is a lion. We believe that if 'Julius is a swan' or 'Sandra left the milk' or both then Jessica is a cat. It is likely that if 'Brian is a lion' or 'Julius is a swan' or both then John moved to the office. It is certain that if 'Sandra left the milk' or 'Brian is a lion' or both then Bernhard is a frog.,We believe that either 'Jessica is a cat' or 'Bernhard is a frog' but not both.," 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.1::factB. 0.6::factC. %hop1 0.75::factX:-or(factB,factA). 0.7::factY:-or(factC,factB). 1.0::factZ:-or(factA,factC). %hop2 conclusion:-xor(factX,factZ). query(conclusion). ",0.2834999999999999,0.9363872774554911,test,probably not,we believe,It is probably not the case that either 'Jessica is a cat' or 'Bernhard is a frog' but not both.,We believe that either 'Jessica is a cat' or 'Bernhard is a frog' but not both.,0,Either 'Jessica is a cat' or 'Bernhard is a frog' but not both. We doubt that Mary grabbed the milk. Chances are about even that Jessica is a mouse. It is certain that Greg is a swan. Chances are about even that if 'Mary grabbed the milk' or 'Jessica is a mouse' or both then John put down the apple. There is a very good chance that if 'Mary grabbed the milk' or 'Jessica is a mouse' or both then Julius is a frog. Chances are about even that if either 'Greg is a swan' or 'Jessica is a mouse' but not both then Brian is a rhino.,It is certain that 'Mary grabbed the milk' or 'Greg is a swan' or both.," 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.5::factB. 1.0::factC. %hop1 0.5::factX:-or(factA,factB). 0.8::factY:-or(factA,factB). 0.5::factZ:-xor(factC,factB). %hop2 conclusion:-or(factA,factC). query(conclusion). ",1.0,0.9321864372874575,test,certain,little chance,It is certain that 'Mary grabbed the milk' or 'Greg is a swan' or both.,There is little chance that 'Mary grabbed the milk' or 'Greg is a swan' or both.,1,'Mary grabbed the milk' or 'Greg is a swan' or both. It is probably the case that Gertrude is a sheep. It is probably the case that Julius is a frog. We doubt that Mary went to the office. It is probable that if 'Julius is a frog and Mary went to the office' then Winona is a wolf. There is a very good chance that if either 'Gertrude is a sheep' or 'Mary went to the office' but not both then Bernhard is green. Chances are slight that if 'Mary went to the office' or 'Gertrude is a sheep' or both then Brian is gray.,There is a very good chance that 'Gertrude is a sheep and Mary went to the office'.," 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.7::factA. 0.7::factB. 0.2::factC. %hop1 0.7::factX:-and(factB,factC). 0.8::factY:-xor(factA,factC). 0.1::factZ:-or(factC,factA). %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.14,0.9299859971994399,test,improbable,very good chance,It is improbable that 'Gertrude is a sheep and Mary went to the office'.,There is a very good chance that 'Gertrude is a sheep and Mary went to the office'.,0,'Gertrude is a sheep and Mary went to the office'. There is little chance that Bernhard is a rhino. It is certain that Sandra got the milk. We doubt that Mary discarded the milk. It is highly likely that if either 'Bernhard is a rhino' or 'Mary discarded the milk' but not both then John picked up the apple. Chances are about even that if 'Mary discarded the milk and Sandra got the milk' then Brian is white. We doubt that if 'Bernhard is a rhino and Sandra got the milk' then Jeff left the football.,There is little chance that 'Bernhard is a rhino' or 'Jeff left the football' or both.," 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. 1.0::factB. 0.2::factC. %hop1 0.9::factX:-xor(factA,factC). 0.5::factY:-and(factC,factB). 0.2::factZ:-and(factA,factB). %hop2 conclusion:-or(factA,factZ). query(conclusion). ",0.10000000000000002,0.970994198839768,test,little chance,certain,There is little chance that 'Bernhard is a rhino' or 'Jeff left the football' or both.,It is certain that 'Bernhard is a rhino' or 'Jeff left the football' or both.,1,'Bernhard is a rhino' or 'Jeff left the football' or both. Chances are slight that Antoine is bored. It is certain that Winona is a mouse. There is almost no chance that Bernhard is yellow. It is improbable that if either 'Bernhard is yellow' or 'Winona is a mouse' but not both then Greg is a lion. It is likely that if either 'Winona is a mouse' or 'Antoine is bored' but not both then Bill moved to the office. It is improbable that if either 'Antoine is bored' or 'Winona is a mouse' but not both then Julius is a swan.,There is almost no chance that 'Winona is a mouse' or 'Bill moved to the office' or both.," 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. 1.0::factB. 0.02::factC. %hop1 0.1::factX:-xor(factC,factB). 0.7::factY:-xor(factB,factA). 0.1::factZ:-xor(factA,factB). %hop2 conclusion:-or(factB,factY). query(conclusion). ",1.0,0.920384076815363,test,certain,almost no chance,It is certain that 'Winona is a mouse' or 'Bill moved to the office' or both.,There is almost no chance that 'Winona is a mouse' or 'Bill moved to the office' or both.,0,'Winona is a mouse' or 'Bill moved to the office' or both. There is little chance that Julius is yellow. There is a very good chance that Jessica is a sheep. There is a very good chance that Greg is green. There is little chance that if 'Greg is green' or 'Jessica is a sheep' or both then Bernhard is gray. There is a very good chance that if either 'Greg is green' or 'Jessica is a sheep' but not both then Lily is a rhino. We doubt that if 'Greg is green and Julius is yellow' then Sandra put down the milk.,It is probably not the case that 'Bernhard is gray' or 'Lily is a rhino' or both.," 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.8::factB. 0.8::factC. %hop1 0.1::factX:-or(factC,factB). 0.8::factY:-xor(factC,factB). 0.2::factZ:-and(factC,factA). %hop2 conclusion:-or(factX,factY). query(conclusion). ",0.3264,0.9187837567513503,test,probably not,probably,It is probably not the case that 'Bernhard is gray' or 'Lily is a rhino' or both.,It is probably the case that 'Bernhard is gray' or 'Lily is a rhino' or both.,1,'Bernhard is gray' or 'Lily is a rhino' or both. Chances are slight that Winona is a mouse. It is highly likely that Lily is a lion. It is highly likely that Julius is yellow. There is a very good chance that if either 'Lily is a lion' or 'Julius is yellow' but not both then Mary went to the office. It is likely that if 'Winona is a mouse and Julius is yellow' then John took the football. It is impossible that if 'Lily is a lion' or 'Winona is a mouse' or both then Greg is white.,We believe that 'Mary went to the office and Winona is a mouse'.," 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.9::factB. 0.9::factC. %hop1 0.8::factX:-xor(factB,factC). 0.7::factY:-and(factA,factC). 0.0::factZ:-or(factB,factA). %hop2 conclusion:-and(factX,factA). query(conclusion). ",0.014400000000000001,0.9357871574314863,test,almost no chance,we believe,There is almost no chance that 'Mary went to the office and Winona is a mouse'.,We believe that 'Mary went to the office and Winona is a mouse'.,0,'Mary went to the office and Winona is a mouse'. It is highly unlikely that Mary is in the hallway. There is a better than even chance that Fred put down the apple. It is improbable that Sandra took the football. There is a better than even chance that if 'Sandra took the football' or 'Mary is in the hallway' or both then Daniel got the milk. It is probable that if 'Fred put down the apple and Mary is in the hallway' then Brian is a frog. It is probable that if 'Fred put down the apple and Mary is in the hallway' then Bernhard is green.,Chances are slight that 'Daniel got the milk' or 'Brian is a frog' or both.," 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.6::factB. 0.1::factC. %hop1 0.6::factX:-or(factC,factA). 0.7::factY:-and(factB,factA). 0.7::factZ:-and(factB,factA). %hop2 conclusion:-or(factX,factY). query(conclusion). ",0.09540000000000004,0.9415883176635327,test,chances are slight,certain,Chances are slight that 'Daniel got the milk' or 'Brian is a frog' or both.,It is certain that 'Daniel got the milk' or 'Brian is a frog' or both.,1,'Daniel got the milk' or 'Brian is a frog' or both. It is unlikely that Antoine is thirsty. It is probable that Greg is green. It is certain that Bernhard is yellow. It is probably the case that if either 'Greg is green' or 'Antoine is thirsty' but not both then Gertrude is a cat. It is probably not the case that if either 'Antoine is thirsty' or 'Bernhard is yellow' but not both then Jason is tired. It is almost certain that if 'Bernhard is yellow and Greg is green' then John discarded the milk.,Chances are about even that 'Jason is tired' or 'Antoine is thirsty' or both.," 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. 1.0::factC. %hop1 0.7::factX:-xor(factB,factA). 0.25::factY:-xor(factA,factC). 0.95::factZ:-and(factC,factB). %hop2 conclusion:-or(factY,factA). query(conclusion). ",0.4,0.9805961192238448,test,about even,certain,Chances are about even that 'Jason is tired' or 'Antoine is thirsty' or both.,It is certain that 'Jason is tired' or 'Antoine is thirsty' or both.,1,'Jason is tired' or 'Antoine is thirsty' or both. It is likely that Julius is white. It is likely that Greg is yellow. It is probable that Lily is green. We doubt that if 'Lily is green and Greg is yellow' then Fred is in the school. We believe that if 'Greg is yellow' or 'Julius is white' or both then Brian is gray. There is a very good chance that if 'Greg is yellow' or 'Lily is green' or both then John went to the kitchen.,It is likely that either 'John went to the kitchen' or 'Lily is green' but not both.," 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.7::factA. 0.7::factB. 0.7::factC. %hop1 0.2::factX:-and(factC,factB). 0.75::factY:-or(factB,factA). 0.8::factZ:-or(factB,factC). %hop2 conclusion:-xor(factZ,factC). query(conclusion). ",0.308,0.9693938787757551,test,probably not,likely,It is probably not the case that either 'John went to the kitchen' or 'Lily is green' but not both.,It is likely that either 'John went to the kitchen' or 'Lily is green' but not both.,0,Either 'John went to the kitchen' or 'Lily is green' but not both. It is highly unlikely that Mary left the football. It is probably not the case that John picked up the apple. It is almost certain that Julius is a frog. It is highly unlikely that if 'Mary left the football' or 'John picked up the apple' or both then Lily is a lion. Chances are about even that if 'John picked up the apple' or 'Mary left the football' or both then Sandra took the football. It is improbable that if 'John picked up the apple' or 'Julius is a frog' or both then Bernhard is green.,It is almost certain that 'Sandra took the football' or 'Julius is a frog' or both.," 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.25::factB. 0.95::factC. %hop1 0.05::factX:-or(factA,factB). 0.5::factY:-or(factB,factA). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-or(factY,factC). query(conclusion). ",0.9571874999999999,0.986997399479896,test,almost certain,highly unlikely,It is almost certain that 'Sandra took the football' or 'Julius is a frog' or both.,It is highly unlikely that 'Sandra took the football' or 'Julius is a frog' or both.,1,'Sandra took the football' or 'Julius is a frog' or both. It is almost certain that Julius is a lion. It is likely that Jessica is a sheep. It is unlikely that Mary went to the kitchen. Chances are slight that if 'Jessica is a sheep and Mary went to the kitchen' then Bill left the football. It is highly unlikely that if 'Jessica is a sheep and Julius is a lion' then Lily is white. We doubt that if 'Mary went to the kitchen and Jessica is a sheep' then Brian is green.,It is unlikely that either 'Mary went to the kitchen' or 'Lily is white' but not both.," 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.95::factA. 0.7::factB. 0.2::factC. %hop1 0.1::factX:-and(factB,factC). 0.05::factY:-and(factB,factA). 0.2::factZ:-and(factC,factB). %hop2 conclusion:-xor(factC,factY). query(conclusion). ",0.21995000000000003,0.9215843168633727,test,unlikely,probably,It is unlikely that either 'Mary went to the kitchen' or 'Lily is white' but not both.,It is probably the case that either 'Mary went to the kitchen' or 'Lily is white' but not both.,1,Either 'Mary went to the kitchen' or 'Lily is white' but not both. It is unlikely that Mary picked up the milk. It is likely that Bernhard is gray. It is probably the case that John discarded the apple. Chances are slight that if 'Bernhard is gray and Mary picked up the milk' then Lily is a swan. It is almost certain that if either 'Bernhard is gray' or 'Mary picked up the milk' but not both then Jeff moved to the garden. It is probable that if either 'John discarded the apple' or 'Bernhard is gray' but not both then Brian is a frog.,It is probably not the case that 'Brian is a frog' or 'Jeff moved to the garden' or both.," 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.7::factC. %hop1 0.1::factX:-and(factB,factA). 0.95::factY:-xor(factB,factA). 0.7::factZ:-xor(factC,factB). %hop2 conclusion:-or(factZ,factY). query(conclusion). ",0.74335,0.9277855571114223,test,we believe,probably not,We believe that 'Brian is a frog' or 'Jeff moved to the garden' or both.,It is probably not the case that 'Brian is a frog' or 'Jeff moved to the garden' or both.,0,'Brian is a frog' or 'Jeff moved to the garden' or both. There is almost no chance that Julius is gray. There is little chance that Mary discarded the milk. It is certain that Jessica is a mouse. There is a very good chance that if either 'Jessica is a mouse' or 'Mary discarded the milk' but not both then Gertrude is a sheep. It is probable that if either 'Mary discarded the milk' or 'Jessica is a mouse' but not both then Brian is yellow. There is almost no chance that if 'Jessica is a mouse' or 'Mary discarded the milk' or both then Sandra dropped the milk.,There is a better than even chance that 'Brian is yellow' or 'Julius is gray' or both.," 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.02::factA. 0.1::factB. 1.0::factC. %hop1 0.8::factX:-xor(factC,factB). 0.7::factY:-xor(factB,factC). 0.02::factZ:-or(factC,factB). %hop2 conclusion:-or(factY,factA). query(conclusion). ",0.6374,0.9933986797359472,test,better than even,impossible,There is a better than even chance that 'Brian is yellow' or 'Julius is gray' or both.,It is impossible that 'Brian is yellow' or 'Julius is gray' or both.,1,'Brian is yellow' or 'Julius is gray' or both. Chances are slight that John went to the kitchen. It is impossible that Bernhard is gray. We believe that Brian is a frog. There is a better than even chance that if 'John went to the kitchen' or 'Bernhard is gray' or both then Greg is white. We believe that if 'Brian is a frog' or 'Bernhard is gray' or both then Lily is yellow. There is little chance that if 'John went to the kitchen and Bernhard is gray' then Julius is a swan.,There is a better than even chance that 'Bernhard is gray' or 'Lily is yellow' or both.," 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.0::factB. 0.75::factC. %hop1 0.6::factX:-or(factA,factB). 0.75::factY:-or(factC,factB). 0.1::factZ:-and(factA,factB). %hop2 conclusion:-or(factB,factY). query(conclusion). ",0.5625,0.9175835167033407,test,better than even,improbable,There is a better than even chance that 'Bernhard is gray' or 'Lily is yellow' or both.,It is improbable that 'Bernhard is gray' or 'Lily is yellow' or both.,1,'Bernhard is gray' or 'Lily is yellow' or both. It is probable that Greg is a rhino. Chances are about even that John went to the garden. It is highly likely that Jason is tired. There is almost no chance that if 'Greg is a rhino' or 'John went to the garden' or both then Julius is a lion. Chances are about even that if 'Greg is a rhino' or 'Jason is tired' or both then Daniel dropped the apple. There is a better than even chance that if 'John went to the garden' or 'Greg is a rhino' or both then Brian is a swan.,There is a very good chance that 'Greg is a rhino' or 'Daniel dropped the apple' or both.," 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.7::factA. 0.5::factB. 0.9::factC. %hop1 0.02::factX:-or(factA,factB). 0.5::factY:-or(factA,factC). 0.6::factZ:-or(factB,factA). %hop2 conclusion:-or(factA,factY). query(conclusion). ",0.835,0.9201840368073615,test,very good chance,little chance,There is a very good chance that 'Greg is a rhino' or 'Daniel dropped the apple' or both.,There is little chance that 'Greg is a rhino' or 'Daniel dropped the apple' or both.,1,'Greg is a rhino' or 'Daniel dropped the apple' or both. It is likely that Daniel put down the milk. It is probably the case that Bernhard is green. There is a very good chance that Greg is a rhino. It is impossible that if 'Greg is a rhino' or 'Daniel put down the milk' or both then Sumit is bored. It is unlikely that if 'Bernhard is green and Greg is a rhino' then Yann is thirsty. It is certain that if 'Daniel put down the milk' or 'Bernhard is green' or both then Lily is a swan.,It is probable that either 'Sumit is bored' or 'Bernhard is green' but not both.," 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.7::factA. 0.7::factB. 0.8::factC. %hop1 0.0::factX:-or(factC,factA). 0.2::factY:-and(factB,factC). 1.0::factZ:-or(factA,factB). %hop2 conclusion:-xor(factX,factB). query(conclusion). ",0.7,0.9071814362872574,test,probable,highly unlikely,It is probable that either 'Sumit is bored' or 'Bernhard is green' but not both.,It is highly unlikely that either 'Sumit is bored' or 'Bernhard is green' but not both.,1,Either 'Sumit is bored' or 'Bernhard is green' but not both. There is little chance that Brian is a swan. There is little chance that Greg is a frog. It is likely that John got the apple. It is almost certain that if 'Brian is a swan and Greg is a frog' then Bill left the milk. It is improbable that if either 'John got the apple' or 'Greg is a frog' but not both then Mary went to the bedroom. It is certain that if 'Greg is a frog' or 'John got the apple' or both then Bernhard is white.,There is little chance that 'Bernhard is white' or 'John got the apple' or both.," 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.1::factB. 0.7::factC. %hop1 0.95::factX:-and(factA,factB). 0.1::factY:-xor(factC,factB). 1.0::factZ:-or(factB,factC). %hop2 conclusion:-or(factZ,factC). query(conclusion). ",0.73,0.9325865173034606,test,we believe,little chance,We believe that 'Bernhard is white' or 'John got the apple' or both.,There is little chance that 'Bernhard is white' or 'John got the apple' or both.,0,'Bernhard is white' or 'John got the apple' or both. We doubt that Lily is a lion. It is improbable that Bernhard is yellow. It is highly likely that Brian is a rhino. There is almost no chance that if 'Bernhard is yellow and Brian is a rhino' then John went to the office. It is unlikely that if 'Lily is a lion and Bernhard is yellow' then Greg is yellow. It is probably not the case that if 'Bernhard is yellow and Lily is a lion' then Mary picked up the milk.,It is almost certain that 'Bernhard is yellow' or 'Lily is a lion' or both.," 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.1::factB. 0.9::factC. %hop1 0.02::factX:-and(factB,factC). 0.2::factY:-and(factA,factB). 0.25::factZ:-and(factB,factA). %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.28,0.9729945989197839,test,probably not,almost certain,It is probably not the case that 'Bernhard is yellow' or 'Lily is a lion' or both.,It is almost certain that 'Bernhard is yellow' or 'Lily is a lion' or both.,0,'Bernhard is yellow' or 'Lily is a lion' or both. It is probable that Mary left the milk. It is probably the case that Julius is a lion. It is probably the case that Emily is a mouse. There is little chance that if 'Julius is a lion and Emily is a mouse' then Brian is a swan. It is likely that if either 'Julius is a lion' or 'Emily is a mouse' but not both then John went to the hallway. It is highly likely that if 'Julius is a lion' or 'Mary left the milk' or both then Lily is white.,It is probably not the case that 'Lily is white' or 'Brian is a swan' or both.," 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.7::factA. 0.7::factB. 0.7::factC. %hop1 0.1::factX:-and(factB,factC). 0.7::factY:-xor(factB,factC). 0.9::factZ:-or(factB,factA). %hop2 conclusion:-or(factZ,factX). query(conclusion). ",0.8239,0.9065813162632527,test,very good chance,probably not,There is a very good chance that 'Lily is white' or 'Brian is a swan' or both.,It is probably not the case that 'Lily is white' or 'Brian is a swan' or both.,0,'Lily is white' or 'Brian is a swan' or both. It is probably the case that Winona is a sheep. It is unlikely that Greg is gray. There is almost no chance that John dropped the milk. There is little chance that if 'Greg is gray and Winona is a sheep' then Lily is yellow. There is little chance that if 'Greg is gray and John dropped the milk' then Mary went to the garden. It is probable that if 'Winona is a sheep and Greg is gray' then Yann is hungry.,It is probable that either 'John dropped the milk' or 'Lily is yellow' but not both.," 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.7::factA. 0.2::factB. 0.02::factC. %hop1 0.1::factX:-and(factB,factA). 0.1::factY:-and(factB,factC). 0.7::factZ:-and(factA,factB). %hop2 conclusion:-xor(factC,factX). query(conclusion). ",0.033440000000000004,0.9245849169833967,test,almost no chance,probable,There is almost no chance that either 'John dropped the milk' or 'Lily is yellow' but not both.,It is probable that either 'John dropped the milk' or 'Lily is yellow' but not both.,0,Either 'John dropped the milk' or 'Lily is yellow' but not both. There is little chance that Greg is a swan. It is highly unlikely that Brian is gray. There is almost no chance that John left the football. It is almost certain that if 'Brian is gray' or 'Greg is a swan' or both then Lily is a rhino. Chances are slight that if 'Greg is a swan and Brian is gray' then Winona is a mouse. It is impossible that if 'Brian is gray and Greg is a swan' then Julius is a lion.,It is highly unlikely that 'Brian is gray' or 'Winona is a mouse' or both.," 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.05::factB. 0.02::factC. %hop1 0.95::factX:-or(factB,factA). 0.1::factY:-and(factA,factB). 0.0::factZ:-and(factB,factA). %hop2 conclusion:-or(factB,factY). query(conclusion). ",0.05000000000000001,0.9533906781356272,test,highly unlikely,highly likely,It is highly unlikely that 'Brian is gray' or 'Winona is a mouse' or both.,It is highly likely that 'Brian is gray' or 'Winona is a mouse' or both.,1,'Brian is gray' or 'Winona is a mouse' or both. There is little chance that John put down the apple. It is probably not the case that Bill left the milk. It is probable that Emily is a sheep. There is a very good chance that if 'Bill left the milk and John put down the apple' then Fred is in the school. It is improbable that if 'John put down the apple' or 'Bill left the milk' or both then Jessica is a mouse. It is likely that if either 'John put down the apple' or 'Bill left the milk' but not both then Lily is white.,It is probably the case that either 'Jessica is a mouse' or 'Lily is white' but not both.," 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.25::factB. 0.7::factC. %hop1 0.8::factX:-and(factB,factA). 0.1::factY:-or(factA,factB). 0.7::factZ:-xor(factA,factB). %hop2 conclusion:-xor(factY,factZ). query(conclusion). ",0.2005,0.9243848769753951,test,unlikely,probably,It is unlikely that either 'Jessica is a mouse' or 'Lily is white' but not both.,It is probably the case that either 'Jessica is a mouse' or 'Lily is white' but not both.,0,Either 'Jessica is a mouse' or 'Lily is white' but not both. There is little chance that John left the apple. It is improbable that Greg is a frog. Chances are about even that Lily is white. It is almost certain that if 'Greg is a frog and Lily is white' then Brian is gray. It is likely that if 'Greg is a frog and Lily is white' then Bernhard is a lion. It is unlikely that if either 'John left the apple' or 'Greg is a frog' but not both then Julius is a rhino.,Chances are about even that either 'Julius is a rhino' or 'Brian is gray' but not both.," 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.1::factB. 0.5::factC. %hop1 0.95::factX:-and(factB,factC). 0.7::factY:-and(factB,factC). 0.2::factZ:-xor(factA,factB). %hop2 conclusion:-xor(factZ,factX). query(conclusion). ",0.06640000000000001,0.9171834366873375,test,highly unlikely,about even,It is highly unlikely that either 'Julius is a rhino' or 'Brian is gray' but not both.,Chances are about even that either 'Julius is a rhino' or 'Brian is gray' but not both.,0,Either 'Julius is a rhino' or 'Brian is gray' but not both. There is a very good chance that Jeff went to the bedroom. It is probably not the case that Bill moved to the office. It is almost certain that Bernhard is green. We doubt that if 'Bernhard is green and Jeff went to the bedroom' then John put down the apple. We doubt that if either 'Bill moved to the office' or 'Jeff went to the bedroom' but not both then Brian is a lion. It is almost certain that if 'Bill moved to the office and Jeff went to the bedroom' then Mary left the apple.,There is a better than even chance that either 'Jeff went to the bedroom' or 'Mary left the apple' but not both.," 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.8::factA. 0.25::factB. 0.95::factC. %hop1 0.2::factX:-and(factC,factA). 0.2::factY:-xor(factB,factA). 0.95::factZ:-and(factB,factA). %hop2 conclusion:-xor(factA,factZ). query(conclusion). ",0.6100000000000001,0.9057811562312462,test,better than even,almost no chance,There is a better than even chance that either 'Jeff went to the bedroom' or 'Mary left the apple' but not both.,There is almost no chance that either 'Jeff went to the bedroom' or 'Mary left the apple' but not both.,1,Either 'Jeff went to the bedroom' or 'Mary left the apple' but not both. It is probable that Gertrude is a sheep. It is unlikely that John moved to the garden. It is certain that Bernhard is a frog. We believe that if either 'Bernhard is a frog' or 'John moved to the garden' but not both then Fred dropped the apple. It is improbable that if 'Bernhard is a frog' or 'Gertrude is a sheep' or both then Winona is a mouse. It is likely that if 'Bernhard is a frog' or 'John moved to the garden' or both then Julius is a lion.,Chances are about even that either 'Gertrude is a sheep' or 'Fred dropped the apple' but not both.," 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.7::factA. 0.2::factB. 1.0::factC. %hop1 0.75::factX:-xor(factC,factB). 0.1::factY:-or(factC,factA). 0.7::factZ:-or(factC,factB). %hop2 conclusion:-xor(factA,factX). query(conclusion). ",0.45999999999999996,0.9117823564712942,test,about even,almost no chance,Chances are about even that either 'Gertrude is a sheep' or 'Fred dropped the apple' but not both.,There is almost no chance that either 'Gertrude is a sheep' or 'Fred dropped the apple' but not both.,1,Either 'Gertrude is a sheep' or 'Fred dropped the apple' but not both. Chances are about even that Mary went to the office. There is almost no chance that John dropped the apple. We believe that Jessica is a cat. It is likely that if 'Jessica is a cat' or 'John dropped the apple' or both then Julius is a swan. We believe that if 'John dropped the apple and Mary went to the office' then Daniel took the milk. It is unlikely that if 'Jessica is a cat' or 'John dropped the apple' or both then Yann is bored.,Chances are slight that 'Yann is bored and Julius is a swan'.," 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.5::factA. 0.02::factB. 0.75::factC. %hop1 0.7::factX:-or(factC,factB). 0.75::factY:-and(factB,factA). 0.2::factZ:-or(factC,factB). %hop2 conclusion:-and(factZ,factX). query(conclusion). ",0.10570000000000002,0.9271854370874175,test,chances are slight,almost certain,Chances are slight that 'Yann is bored and Julius is a swan'.,It is almost certain that 'Yann is bored and Julius is a swan'.,1,'Yann is bored and Julius is a swan'. There is a better than even chance that Daniel dropped the apple. Chances are about even that Brian is a frog. We believe that Julius is a swan. We believe that if 'Daniel dropped the apple' or 'Brian is a frog' or both then John went to the office. It is improbable that if 'Julius is a swan and Brian is a frog' then Bernhard is yellow. We doubt that if 'Daniel dropped the apple' or 'Julius is a swan' or both then Mary left the football.,It is certain that 'Mary left the football and Julius is a swan'.," 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.5::factB. 0.75::factC. %hop1 0.75::factX:-or(factA,factB). 0.1::factY:-and(factC,factB). 0.2::factZ:-or(factA,factC). %hop2 conclusion:-and(factZ,factC). query(conclusion). ",0.15,0.9121824364872975,test,chances are slight,certain,Chances are slight that 'Mary left the football and Julius is a swan'.,It is certain that 'Mary left the football and Julius is a swan'.,0,'Mary left the football and Julius is a swan'. There is a very good chance that Mary took the milk. It is highly unlikely that Bernhard is a swan. We doubt that Julius is white. It is certain that if either 'Julius is white' or 'Mary took the milk' but not both then Jessica is a cat. It is highly unlikely that if 'Bernhard is a swan and Mary took the milk' then Fred went to the garden. There is almost no chance that if 'Julius is white' or 'Bernhard is a swan' or both then Sandra dropped the apple.,We believe that either 'Julius is white' or 'Sandra dropped the apple' but not both.," 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.8::factA. 0.05::factB. 0.2::factC. %hop1 1.0::factX:-xor(factC,factA). 0.05::factY:-and(factB,factA). 0.02::factZ:-or(factC,factB). %hop2 conclusion:-xor(factC,factZ). query(conclusion). ",0.19679999999999997,0.9161832366473295,test,we doubt,we believe,We doubt that either 'Julius is white' or 'Sandra dropped the apple' but not both.,We believe that either 'Julius is white' or 'Sandra dropped the apple' but not both.,0,Either 'Julius is white' or 'Sandra dropped the apple' but not both. It is highly unlikely that Jessica is a cat. Chances are about even that Bernhard is a frog. There is a better than even chance that Mary moved to the office. It is certain that if 'Jessica is a cat' or 'Bernhard is a frog' or both then Daniel took the apple. It is probable that if 'Bernhard is a frog' or 'Jessica is a cat' or both then John got the milk. There is a very good chance that if 'Mary moved to the office and Bernhard is a frog' then Greg is a swan.,There is almost no chance that 'Bernhard is a frog' or 'Daniel took the apple' or both.," 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.5::factB. 0.6::factC. %hop1 1.0::factX:-or(factA,factB). 0.7::factY:-or(factB,factA). 0.8::factZ:-and(factC,factB). %hop2 conclusion:-or(factB,factX). query(conclusion). ",0.525,0.967993598719744,test,about even,almost no chance,Chances are about even that 'Bernhard is a frog' or 'Daniel took the apple' or both.,There is almost no chance that 'Bernhard is a frog' or 'Daniel took the apple' or both.,0,'Bernhard is a frog' or 'Daniel took the apple' or both. It is highly unlikely that Daniel got the apple. It is highly likely that Sandra left the milk. There is little chance that Julius is a frog. It is probably not the case that if either 'Julius is a frog' or 'Sandra left the milk' but not both then John moved to the garden. Chances are about even that if 'Sandra left the milk and Julius is a frog' then Greg is white. Chances are slight that if either 'Julius is a frog' or 'Sandra left the milk' but not both then Mary grabbed the milk.,It is likely that 'John moved to the garden and Daniel got the apple'.," 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.9::factB. 0.1::factC. %hop1 0.25::factX:-xor(factC,factB). 0.5::factY:-and(factB,factC). 0.1::factZ:-xor(factC,factB). %hop2 conclusion:-and(factX,factA). query(conclusion). ",0.010250000000000002,0.9595919183836767,test,almost no chance,likely,There is almost no chance that 'John moved to the garden and Daniel got the apple'.,It is likely that 'John moved to the garden and Daniel got the apple'.,0,'John moved to the garden and Daniel got the apple'. It is probably the case that Jeff dropped the apple. It is probably the case that Jessica is a sheep. It is highly unlikely that Bernhard is a rhino. It is probably the case that if 'Jessica is a sheep and Bernhard is a rhino' then Fred went to the garden. There is almost no chance that if 'Jeff dropped the apple and Bernhard is a rhino' then Emily is a mouse. There is little chance that if 'Jessica is a sheep' or 'Jeff dropped the apple' or both then Brian is a swan.,It is unlikely that 'Jessica is a sheep' or 'Fred went to the garden' or both.," 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.7::factA. 0.7::factB. 0.05::factC. %hop1 0.7::factX:-and(factB,factC). 0.02::factY:-and(factA,factC). 0.1::factZ:-or(factB,factA). %hop2 conclusion:-or(factB,factX). query(conclusion). ",0.7,0.9953990798159632,test,probable,unlikely,It is probable that 'Jessica is a sheep' or 'Fred went to the garden' or both.,It is unlikely that 'Jessica is a sheep' or 'Fred went to the garden' or both.,0,'Jessica is a sheep' or 'Fred went to the garden' or both. It is impossible that Mary got the apple. Chances are slight that Bernhard is a swan. We doubt that Greg is a rhino. We doubt that if either 'Greg is a rhino' or 'Mary got the apple' but not both then Yann is tired. It is probably not the case that if 'Mary got the apple' or 'Greg is a rhino' or both then John moved to the garden. We believe that if 'Greg is a rhino' or 'Bernhard is a swan' or both then Julius is a frog.,We doubt that 'Greg is a rhino' or 'Yann is tired' or both.," 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.0::factA. 0.1::factB. 0.2::factC. %hop1 0.2::factX:-xor(factC,factA). 0.25::factY:-or(factA,factC). 0.75::factZ:-or(factC,factB). %hop2 conclusion:-or(factC,factX). query(conclusion). ",0.2,0.9437887577515504,test,we doubt,very good chance,We doubt that 'Greg is a rhino' or 'Yann is tired' or both.,There is a very good chance that 'Greg is a rhino' or 'Yann is tired' or both.,1,'Greg is a rhino' or 'Yann is tired' or both. There is a better than even chance that Jeff moved to the office. There is a very good chance that Mary went to the hallway. It is highly likely that Julius is a swan. Chances are slight that if 'Julius is a swan' or 'Jeff moved to the office' or both then John got the milk. It is almost certain that if 'Jeff moved to the office and Mary went to the hallway' then Greg is gray. It is improbable that if 'Julius is a swan and Mary went to the hallway' then Bernhard is yellow.,We doubt that either 'Julius is a swan' or 'Bernhard is yellow' but not both.," 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.8::factB. 0.9::factC. %hop1 0.1::factX:-or(factC,factA). 0.95::factY:-and(factA,factB). 0.1::factZ:-and(factC,factB). %hop2 conclusion:-xor(factC,factZ). query(conclusion). ",0.828,0.9029805961192239,test,very good chance,we doubt,There is a very good chance that either 'Julius is a swan' or 'Bernhard is yellow' but not both.,We doubt that either 'Julius is a swan' or 'Bernhard is yellow' but not both.,0,Either 'Julius is a swan' or 'Bernhard is yellow' but not both. There is a better than even chance that Julius is white. It is highly likely that Gertrude is a mouse. There is a very good chance that Lily is green. There is little chance that if 'Lily is green and Julius is white' then Mary left the football. There is almost no chance that if 'Lily is green and Gertrude is a mouse' then Greg is gray. We believe that if 'Gertrude is a mouse and Lily is green' then Brian is white.,It is probable that 'Brian is white and Mary left the football'.," 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.9::factB. 0.8::factC. %hop1 0.1::factX:-and(factC,factA). 0.02::factY:-and(factC,factB). 0.75::factZ:-and(factB,factC). %hop2 conclusion:-and(factZ,factX). query(conclusion). ",0.032400000000000005,0.9847969593918784,test,almost no chance,probable,There is almost no chance that 'Brian is white and Mary left the football'.,It is probable that 'Brian is white and Mary left the football'.,0,'Brian is white and Mary left the football'. We believe that John picked up the milk. There is a very good chance that Lily is a lion. It is unlikely that Mary got the football. We doubt that if 'Mary got the football and Lily is a lion' then Greg is yellow. There is almost no chance that if 'Mary got the football' or 'John picked up the milk' or both then Antoine is bored. It is highly likely that if 'Mary got the football' or 'Lily is a lion' or both then Brian is a rhino.,It is highly unlikely that 'Lily is a lion' or 'John picked up the milk' or both.," 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.75::factA. 0.8::factB. 0.2::factC. %hop1 0.2::factX:-and(factC,factB). 0.02::factY:-or(factC,factA). 0.9::factZ:-or(factC,factB). %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.9500000000000001,0.9703940788157631,test,almost certain,highly unlikely,It is almost certain that 'Lily is a lion' or 'John picked up the milk' or both.,It is highly unlikely that 'Lily is a lion' or 'John picked up the milk' or both.,0,'Lily is a lion' or 'John picked up the milk' or both. We doubt that Julius is a frog. It is impossible that Brian is green. There is little chance that John went to the bedroom. We believe that if either 'John went to the bedroom' or 'Julius is a frog' but not both then Sandra left the apple. It is likely that if 'John went to the bedroom and Julius is a frog' then Greg is a swan. There is little chance that if 'John went to the bedroom' or 'Brian is green' or both then Bernhard is green.,It is impossible that 'Sandra left the apple 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.2::factA. 0.0::factB. 0.1::factC. %hop1 0.75::factX:-xor(factC,factA). 0.7::factY:-and(factC,factA). 0.1::factZ:-or(factC,factB). %hop2 conclusion:-and(factX,factZ). query(conclusion). ",0.006000000000000004,0.9501900380076015,test,impossible,probably,It is impossible that 'Sandra left the apple and Bernhard is green'.,It is probably the case that 'Sandra left the apple and Bernhard is green'.,1,'Sandra left the apple and Bernhard is green'. It is impossible that Greg is a swan. There is little chance that Fred moved to the office. It is probably not the case that John grabbed the apple. It is unlikely that if either 'Fred moved to the office' or 'Greg is a swan' but not both then Mary went to the bedroom. It is highly unlikely that if 'Fred moved to the office and John grabbed the apple' then Lily is gray. Chances are slight that if 'John grabbed the apple and Fred moved to the office' then Sandra got the football.,It is likely that either 'Fred moved to the office' or 'John grabbed the apple' but not both.," 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.0::factA. 0.1::factB. 0.25::factC. %hop1 0.2::factX:-xor(factB,factA). 0.05::factY:-and(factB,factC). 0.1::factZ:-and(factC,factB). %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.30000000000000004,0.966993398679736,test,probably not,likely,It is probably not the case that either 'Fred moved to the office' or 'John grabbed the apple' but not both.,It is likely that either 'Fred moved to the office' or 'John grabbed the apple' but not both.,0,Either 'Fred moved to the office' or 'John grabbed the apple' but not both. We believe that Jason is tired. Chances are about even that Emily is a mouse. It is certain that Mary dropped the milk. We believe that if 'Mary dropped the milk and Jason is tired' then Winona is a sheep. Chances are slight that if 'Mary dropped the milk and Emily is a mouse' then Lily is a rhino. It is probably the case that if 'Emily is a mouse' or 'Mary dropped the milk' or both then John left the football.,There is almost no chance that 'Jason is tired and John left the football'.," 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.75::factA. 0.5::factB. 1.0::factC. %hop1 0.75::factX:-and(factC,factA). 0.1::factY:-and(factC,factB). 0.7::factZ:-or(factB,factC). %hop2 conclusion:-and(factA,factZ). query(conclusion). ",0.525,0.9485897179435887,test,about even,almost no chance,Chances are about even that 'Jason is tired and John left the football'.,There is almost no chance that 'Jason is tired and John left the football'.,0,'Jason is tired and John left the football'. It is probably not the case that Bill moved to the office. It is likely that Bernhard is white. We believe that Mary dropped the milk. It is highly likely that if either 'Bernhard is white' or 'Mary dropped the milk' but not both then Brian is yellow. There is a better than even chance that if 'Mary dropped the milk' or 'Bill moved to the office' or both then Lily is white. Chances are slight that if 'Bill moved to the office' or 'Mary dropped the milk' or both then John went to the garden.,Chances are slight that 'Lily is white' or 'Bill moved to the office' or both.," 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.25::factA. 0.7::factB. 0.75::factC. %hop1 0.9::factX:-xor(factB,factC). 0.6::factY:-or(factC,factA). 0.1::factZ:-or(factA,factC). %hop2 conclusion:-or(factY,factA). query(conclusion). ",0.5875,0.95499099819964,test,better than even,chances are slight,There is a better than even chance that 'Lily is white' or 'Bill moved to the office' or both.,Chances are slight that 'Lily is white' or 'Bill moved to the office' or both.,0,'Lily is white' or 'Bill moved to the office' or both. We believe that Sandra dropped the milk. Chances are about even that Sumit is bored. It is highly likely that John got the milk. We believe that if 'Sandra dropped the milk' or 'Sumit is bored' or both then Julius is a rhino. It is highly likely that if 'Sumit is bored and Sandra dropped the milk' then Bernhard is yellow. We believe that if either 'Sandra dropped the milk' or 'John got the milk' but not both then Greg is a frog.,Chances are about even that either 'John got the milk' or 'Sumit is bored' but not both.," 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.75::factA. 0.5::factB. 0.9::factC. %hop1 0.75::factX:-or(factA,factB). 0.9::factY:-and(factB,factA). 0.75::factZ:-xor(factA,factC). %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.5,0.9963992798559712,test,about even,certain,Chances are about even that either 'John got the milk' or 'Sumit is bored' but not both.,It is certain that either 'John got the milk' or 'Sumit is bored' but not both.,1,Either 'John got the milk' or 'Sumit is bored' but not both. It is almost certain that Sandra got the football. It is improbable that Brian is a rhino. There is little chance that Daniel put down the milk. There is a better than even chance that if either 'Sandra got the football' or 'Brian is a rhino' but not both then Jeff moved to the garden. It is highly likely that if 'Sandra got the football and Daniel put down the milk' then Mary went to the kitchen. There is a very good chance that if 'Brian is a rhino' or 'Daniel put down the milk' or both then Winona is a wolf.,There is little chance that 'Brian is a rhino and Sandra got the football'.," 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.95::factA. 0.1::factB. 0.1::factC. %hop1 0.6::factX:-xor(factA,factB). 0.9::factY:-and(factA,factC). 0.8::factZ:-or(factB,factC). %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.09500000000000001,0.958991798359672,test,little chance,almost certain,There is little chance that 'Brian is a rhino and Sandra got the football'.,It is almost certain that 'Brian is a rhino and Sandra got the football'.,1,'Brian is a rhino and Sandra got the football'. We believe that John took the football. It is impossible that Bill went to the kitchen. It is highly likely that Greg is a swan. It is highly unlikely that if 'Bill went to the kitchen and John took the football' then Brian is white. It is improbable that if 'John took the football' or 'Greg is a swan' or both then Bernhard is a frog. Chances are slight that if 'John took the football and Bill went to the kitchen' then Lily is gray.,There is little chance that either 'Greg is a swan' or 'Bill went to the kitchen' but not both.," 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.75::factA. 0.0::factB. 0.9::factC. %hop1 0.05::factX:-and(factB,factA). 0.1::factY:-or(factA,factC). 0.1::factZ:-and(factA,factB). %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.9,0.9945989197839568,test,highly likely,little chance,It is highly likely that either 'Greg is a swan' or 'Bill went to the kitchen' but not both.,There is little chance that either 'Greg is a swan' or 'Bill went to the kitchen' but not both.,0,Either 'Greg is a swan' or 'Bill went to the kitchen' but not both. There is little chance that Brian is a swan. It is impossible that Julius is a swan. It is probably not the case that Gertrude is a mouse. There is a better than even chance that if either 'Brian is a swan' or 'Gertrude is a mouse' but not both then Bernhard is yellow. It is impossible that if either 'Gertrude is a mouse' or 'Julius is a swan' but not both then Mary took the football. It is likely that if either 'Brian is a swan' or 'Gertrude is a mouse' but not both then Greg is a frog.,It is impossible that 'Mary took the football and Bernhard is yellow'.," 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.0::factB. 0.25::factC. %hop1 0.6::factX:-xor(factA,factC). 0.0::factY:-xor(factC,factB). 0.7::factZ:-xor(factA,factC). %hop2 conclusion:-and(factY,factX). query(conclusion). ",0.0,0.9047809561912382,test,impossible,very good chance,It is impossible that 'Mary took the football and Bernhard is yellow'.,There is a very good chance that 'Mary took the football and Bernhard is yellow'.,1,'Mary took the football and Bernhard is yellow'. It is almost certain that Brian is a rhino. It is unlikely that John took the apple. It is probably the case that Julius is a frog. There is almost no chance that if 'John took the apple' or 'Brian is a rhino' or both then Bill went to the office. There is a very good chance that if 'Brian is a rhino and John took the apple' then Jessica is a mouse. We doubt that if 'John took the apple' or 'Brian is a rhino' or both then Emily is a cat.,It is improbable that 'Jessica is a mouse' or 'Brian is a rhino' or both.," 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.95::factA. 0.2::factB. 0.7::factC. %hop1 0.02::factX:-or(factB,factA). 0.8::factY:-and(factA,factB). 0.2::factZ:-or(factB,factA). %hop2 conclusion:-or(factY,factA). query(conclusion). ",0.95,0.9925985197039408,test,almost certain,improbable,It is almost certain that 'Jessica is a mouse' or 'Brian is a rhino' or both.,It is improbable that 'Jessica is a mouse' or 'Brian is a rhino' or both.,0,'Jessica is a mouse' or 'Brian is a rhino' or both. There is almost no chance that Lily is a rhino. There is almost no chance that Jason is tired. It is likely that Mary moved to the garden. It is unlikely that if 'Mary moved to the garden and Jason is tired' then Bernhard is gray. There is almost no chance that if either 'Lily is a rhino' or 'Jason is tired' but not both then Julius is a lion. It is unlikely that if 'Mary moved to the garden' or 'Lily is a rhino' or both then Sandra got the football.,It is probable that 'Julius is a lion and Bernhard is gray'.," 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.02::factA. 0.02::factB. 0.7::factC. %hop1 0.2::factX:-and(factC,factB). 0.02::factY:-xor(factA,factB). 0.2::factZ:-or(factC,factA). %hop2 conclusion:-and(factY,factX). query(conclusion). ",5.4880000000000044e-05,0.9801960392078416,test,impossible,probable,It is impossible that 'Julius is a lion and Bernhard is gray'.,It is probable that 'Julius is a lion and Bernhard is gray'.,0,'Julius is a lion and Bernhard is gray'. There is almost no chance that Jessica is a wolf. It is impossible that Lily is a rhino. It is likely that John went to the office. It is almost certain that if 'Jessica is a wolf and John went to the office' then Brian is white. It is likely that if either 'John went to the office' or 'Jessica is a wolf' but not both then Emily is a cat. It is highly unlikely that if 'Jessica is a wolf and Lily is a rhino' then Greg is a swan.,It is certain that 'Greg is a swan and Jessica is a wolf'.," 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.02::factA. 0.0::factB. 0.7::factC. %hop1 0.95::factX:-and(factA,factC). 0.7::factY:-xor(factC,factA). 0.05::factZ:-and(factA,factB). %hop2 conclusion:-and(factZ,factA). query(conclusion). ",0.0,0.9825965193038608,test,impossible,certain,It is impossible that 'Greg is a swan and Jessica is a wolf'.,It is certain that 'Greg is a swan and Jessica is a wolf'.,0,'Greg is a swan and Jessica is a wolf'. We believe that Lily is a rhino. It is highly unlikely that Bernhard is yellow. It is highly unlikely that Mary went to the hallway. It is probable that if 'Mary went to the hallway' or 'Bernhard is yellow' or both then Sandra is in the kitchen. It is unlikely that if 'Lily is a rhino' or 'Mary went to the hallway' or both then John grabbed the apple. It is almost certain that if either 'Bernhard is yellow' or 'Lily is a rhino' but not both then Sumit is thirsty.,It is probable that either 'Sandra is in the kitchen' or 'Lily is a rhino' but not both.," 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.75::factA. 0.05::factB. 0.05::factC. %hop1 0.7::factX:-or(factC,factB). 0.2::factY:-or(factA,factC). 0.95::factZ:-xor(factB,factA). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.715875,0.9289857971594319,test,probable,impossible,It is probable that either 'Sandra is in the kitchen' or 'Lily is a rhino' but not both.,It is impossible that either 'Sandra is in the kitchen' or 'Lily is a rhino' but not both.,1,Either 'Sandra is in the kitchen' or 'Lily is a rhino' but not both. It is almost certain that Winona is a mouse. It is certain that Bernhard is yellow. There is a better than even chance that Lily is a frog. Chances are slight that if 'Winona is a mouse and Lily is a frog' then Julius is white. It is unlikely that if 'Winona is a mouse' or 'Lily is a frog' or both then Mary went to the office. It is highly likely that if 'Lily is a frog and Winona is a mouse' then Sandra dropped the milk.,It is almost certain that 'Winona is a mouse and Bernhard is yellow'.," 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.95::factA. 1.0::factB. 0.6::factC. %hop1 0.1::factX:-and(factA,factC). 0.2::factY:-or(factA,factC). 0.9::factZ:-and(factC,factA). %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.95,0.9905981196239247,test,almost certain,we doubt,It is almost certain that 'Winona is a mouse and Bernhard is yellow'.,We doubt that 'Winona is a mouse and Bernhard is yellow'.,1,'Winona is a mouse and Bernhard is yellow'. It is highly unlikely that Bernhard is white. It is probably not the case that Greg is green. It is probably not the case that Jeff went to the garden. We believe that if 'Bernhard is white and Greg is green' then Mary is in the bathroom. There is a better than even chance that if either 'Greg is green' or 'Bernhard is white' but not both then Brian is white. Chances are slight that if either 'Jeff went to the garden' or 'Bernhard is white' but not both then Fred left the football.,It is probably the case that 'Jeff went to the garden' or 'Mary is in the bathroom' or both.," 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.25::factB. 0.25::factC. %hop1 0.75::factX:-and(factA,factB). 0.6::factY:-xor(factB,factA). 0.1::factZ:-xor(factC,factA). %hop2 conclusion:-or(factC,factX). query(conclusion). ",0.25703125,0.9881976395279056,test,probably not,probably,It is probably not the case that 'Jeff went to the garden' or 'Mary is in the bathroom' or both.,It is probably the case that 'Jeff went to the garden' or 'Mary is in the bathroom' or both.,0,'Jeff went to the garden' or 'Mary is in the bathroom' or both. We doubt that Brian is a swan. It is likely that Sandra left the milk. There is a better than even chance that Mary took the milk. It is highly unlikely that if 'Sandra left the milk and Brian is a swan' then Lily is white. Chances are about even that if either 'Brian is a swan' or 'Sandra left the milk' but not both then Julius is a frog. It is almost certain that if 'Brian is a swan' or 'Sandra left the milk' or both then Bernhard is a lion.,Chances are about even that either 'Sandra left the milk' or 'Julius is a frog' but not both.," 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.6::factC. %hop1 0.05::factX:-and(factB,factA). 0.5::factY:-xor(factA,factB). 0.95::factZ:-or(factA,factB). %hop2 conclusion:-xor(factB,factY). query(conclusion). ",0.45,0.9513902780556112,test,about even,certain,Chances are about even that either 'Sandra left the milk' or 'Julius is a frog' but not both.,It is certain that either 'Sandra left the milk' or 'Julius is a frog' but not both.,1,Either 'Sandra left the milk' or 'Julius is a frog' but not both. It is probable that Bernhard is a swan. It is improbable that Brian is a rhino. There is a better than even chance that Julius is a swan. It is certain that if 'Brian is a rhino and Bernhard is a swan' then John moved to the garden. It is probably the case that if either 'Brian is a rhino' or 'Julius is a swan' but not both then Emily is a sheep. Chances are about even that if either 'Brian is a rhino' or 'Bernhard is a swan' but not both then Gertrude is a cat.,There is little chance that either 'Julius is a swan' or 'Brian is a rhino' but not both.," 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.7::factA. 0.1::factB. 0.6::factC. %hop1 1.0::factX:-and(factB,factA). 0.7::factY:-xor(factB,factC). 0.5::factZ:-xor(factB,factA). %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.58,0.9557911582316463,test,better than even,little chance,There is a better than even chance that either 'Julius is a swan' or 'Brian is a rhino' but not both.,There is little chance that either 'Julius is a swan' or 'Brian is a rhino' but not both.,0,Either 'Julius is a swan' or 'Brian is a rhino' but not both. It is probably the case that John went to the office. Chances are about even that Bernhard is a swan. We believe that Mary got the milk. It is certain that if 'Bernhard is a swan and John went to the office' then Emily is a mouse. It is unlikely that if 'John went to the office and Mary got the milk' then Brian is green. It is probable that if either 'Mary got the milk' or 'John went to the office' but not both then Greg is a lion.,There is a better than even chance that 'Greg is a lion and Emily is a mouse'.," 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.7::factA. 0.5::factB. 0.75::factC. %hop1 1.0::factX:-and(factB,factA). 0.2::factY:-and(factA,factC). 0.7::factZ:-xor(factC,factA). %hop2 conclusion:-and(factZ,factX). query(conclusion). ",0.06124999999999998,0.9441888377675535,test,highly unlikely,better than even,It is highly unlikely that 'Greg is a lion and Emily is a mouse'.,There is a better than even chance that 'Greg is a lion and Emily is a mouse'.,0,'Greg is a lion and Emily is a mouse'. It is probably not the case that Bernhard is green. There is little chance that Bill left the milk. It is likely that Julius is a rhino. It is probable that if 'Bill left the milk' or 'Julius is a rhino' or both then Lily is a lion. There is a better than even chance that if 'Julius is a rhino' or 'Bill left the milk' or both then John discarded the apple. It is unlikely that if 'Bill left the milk and Bernhard is green' then Brian is gray.,It is impossible that 'Bernhard is green and Brian is gray'.," 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.25::factA. 0.1::factB. 0.7::factC. %hop1 0.7::factX:-or(factB,factC). 0.6::factY:-or(factC,factB). 0.2::factZ:-and(factB,factA). %hop2 conclusion:-and(factA,factZ). query(conclusion). ",0.005000000000000002,0.9197839567913583,test,impossible,likely,It is impossible that 'Bernhard is green and Brian is gray'.,It is likely that 'Bernhard is green and Brian is gray'.,1,'Bernhard is green and Brian is gray'. There is almost no chance that Julius is white. There is almost no chance that John dropped the apple. It is unlikely that Mary went to the kitchen. It is certain that if 'Julius is white' or 'John dropped the apple' or both then Daniel got the milk. It is almost certain that if 'Mary went to the kitchen and Julius is white' then Greg is a swan. There is a very good chance that if either 'Mary went to the kitchen' or 'John dropped the apple' but not both then Lily is a frog.,It is highly unlikely that 'Greg is a swan' or 'Daniel got the milk' or both.," 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.02::factA. 0.02::factB. 0.2::factC. %hop1 1.0::factX:-or(factA,factB). 0.95::factY:-and(factC,factA). 0.8::factZ:-xor(factC,factB). %hop2 conclusion:-or(factY,factX). query(conclusion). ",0.0396,0.9339867973594719,test,highly unlikely,almost certain,It is highly unlikely that 'Greg is a swan' or 'Daniel got the milk' or both.,It is almost certain that 'Greg is a swan' or 'Daniel got the milk' or both.,1,'Greg is a swan' or 'Daniel got the milk' or both. It is improbable that Greg is a swan. It is probably not the case that Sumit is thirsty. It is probably the case that Julius is a rhino. It is impossible that if either 'Greg is a swan' or 'Sumit is thirsty' but not both then Lily is a frog. It is almost certain that if either 'Sumit is thirsty' or 'Greg is a swan' but not both then Jessica is a mouse. It is almost certain that if 'Greg is a swan' or 'Julius is a rhino' or both then Fred is in the office.,There is almost no chance that 'Jessica is a mouse' or 'Julius is a rhino' or both.," 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.25::factB. 0.7::factC. %hop1 0.0::factX:-xor(factA,factB). 0.95::factY:-xor(factB,factA). 0.95::factZ:-or(factA,factC). %hop2 conclusion:-or(factY,factC). query(conclusion). ",0.7854999999999999,0.9381876375275056,test,very good chance,almost no chance,There is a very good chance that 'Jessica is a mouse' or 'Julius is a rhino' or both.,There is almost no chance that 'Jessica is a mouse' or 'Julius is a rhino' or both.,0,'Jessica is a mouse' or 'Julius is a rhino' or both. Chances are slight that Lily is a rhino. It is impossible that Brian is white. It is likely that John dropped the milk. We believe that if 'Lily is a rhino and Brian is white' then Emily is a mouse. It is certain that if 'John dropped the milk' or 'Lily is a rhino' or both then Mary is in the hallway. It is probable that if either 'Lily is a rhino' or 'John dropped the milk' but not both then Greg is a swan.,It is improbable that 'Lily is a rhino' or 'Brian is white' or both.," 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.0::factB. 0.7::factC. %hop1 0.75::factX:-and(factA,factB). 1.0::factY:-or(factC,factA). 0.7::factZ:-xor(factA,factC). %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.10000000000000002,0.9713942788557711,test,improbable,probably,It is improbable that 'Lily is a rhino' or 'Brian is white' or both.,It is probably the case that 'Lily is a rhino' or 'Brian is white' or both.,1,'Lily is a rhino' or 'Brian is white' or both. It is impossible that Brian is a frog. There is a very good chance that Mary picked up the milk. There is almost no chance that Jeff left the apple. Chances are slight that if 'Mary picked up the milk' or 'Jeff left the apple' or both then Jessica is a cat. It is almost certain that if either 'Mary picked up the milk' or 'Jeff left the apple' but not both then Lily is green. It is almost certain that if either 'Brian is a frog' or 'Mary picked up the milk' but not both then Bernhard is a rhino.,It is impossible that 'Brian is a frog and Jeff left the apple'.," 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.0::factA. 0.8::factB. 0.02::factC. %hop1 0.1::factX:-or(factB,factC). 0.95::factY:-xor(factB,factC). 0.95::factZ:-xor(factA,factB). %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.0,0.9921984396879376,test,impossible,probable,It is impossible that 'Brian is a frog and Jeff left the apple'.,It is probable that 'Brian is a frog and Jeff left the apple'.,1,'Brian is a frog and Jeff left the apple'. Chances are about even that Julius is a rhino. It is improbable that Emily is a mouse. There is almost no chance that Brian is white. It is highly unlikely that if either 'Emily is a mouse' or 'Julius is a rhino' but not both then Lily is a lion. We believe that if either 'Brian is white' or 'Julius is a rhino' but not both then Sandra dropped the milk. It is certain that if 'Emily is a mouse and Brian is white' then Gertrude is a sheep.,It is almost certain that 'Brian is white and Lily is a lion'.," 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.5::factA. 0.1::factB. 0.02::factC. %hop1 0.05::factX:-xor(factB,factA). 0.75::factY:-xor(factC,factA). 1.0::factZ:-and(factB,factC). %hop2 conclusion:-and(factC,factX). query(conclusion). ",0.0005000000000000001,0.9777955591118224,test,impossible,almost certain,It is impossible that 'Brian is white and Lily is a lion'.,It is almost certain that 'Brian is white and Lily is a lion'.,0,'Brian is white and Lily is a lion'. It is probably not the case that Mary got the apple. We doubt that Bernhard is a swan. It is improbable that Julius is yellow. Chances are about even that if either 'Julius is yellow' or 'Bernhard is a swan' but not both then Brian is a frog. There is little chance that if 'Mary got the apple and Julius is yellow' then Jessica is a sheep. There is almost no chance that if 'Julius is yellow' or 'Mary got the apple' or both then Lily is green.,There is a very good chance that either 'Brian is a frog' or 'Mary got the apple' but not both.," 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.25::factA. 0.2::factB. 0.1::factC. %hop1 0.5::factX:-xor(factC,factB). 0.1::factY:-and(factA,factC). 0.02::factZ:-or(factC,factA). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.315,0.9101820364072815,test,probably not,very good chance,It is probably not the case that either 'Brian is a frog' or 'Mary got the apple' but not both.,There is a very good chance that either 'Brian is a frog' or 'Mary got the apple' but not both.,0,Either 'Brian is a frog' or 'Mary got the apple' but not both. It is likely that Lily is a lion. It is almost certain that John took the apple. Chances are about even that Gertrude is a sheep. It is probably the case that if 'Lily is a lion and Gertrude is a sheep' then Julius is white. There is almost no chance that if either 'Gertrude is a sheep' or 'John took the apple' but not both then Jeff moved to the office. We doubt that if 'Lily is a lion' or 'John took the apple' or both then Greg is yellow.,It is almost certain that 'John took the apple' or 'Greg is yellow' or both.," 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.7::factA. 0.95::factB. 0.5::factC. %hop1 0.7::factX:-and(factA,factC). 0.02::factY:-xor(factC,factB). 0.2::factZ:-or(factA,factB). %hop2 conclusion:-or(factB,factZ). query(conclusion). ",0.957,0.9723944788957791,test,almost certain,impossible,It is almost certain that 'John took the apple' or 'Greg is yellow' or both.,It is impossible that 'John took the apple' or 'Greg is yellow' or both.,1,'John took the apple' or 'Greg is yellow' or both. There is a very good chance that John took the football. Chances are about even that Brian is yellow. There is little chance that Bernhard is green. It is highly likely that if 'Bernhard is green' or 'Brian is yellow' or both then Julius is a swan. It is impossible that if either 'Bernhard is green' or 'Brian is yellow' but not both then Jessica is a mouse. It is probable that if 'John took the football and Bernhard is green' then Lily is white.,There is little chance that 'John took the football 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.8::factA. 0.5::factB. 0.1::factC. %hop1 0.9::factX:-or(factC,factB). 0.0::factY:-xor(factC,factB). 0.7::factZ:-and(factA,factC). %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.08000000000000002,0.9651930386077215,test,little chance,probable,There is little chance that 'John took the football and Bernhard is green'.,It is probable that 'John took the football and Bernhard is green'.,1,'John took the football and Bernhard is green'. There is little chance that Greg is a lion. There is a better than even chance that Lily is a swan. It is probably the case that Daniel dropped the apple. It is highly likely that if 'Greg is a lion and Daniel dropped the apple' then Brian is white. It is probably not the case that if 'Lily is a swan and Greg is a lion' then Jessica is a sheep. It is certain that if 'Lily is a swan' or 'Greg is a lion' or both then Gertrude is a mouse.,There is a very good chance that 'Greg is a lion and Lily is a swan'.," 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.6::factB. 0.7::factC. %hop1 0.9::factX:-and(factA,factC). 0.25::factY:-and(factB,factA). 1.0::factZ:-or(factB,factA). %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.06,0.9783956791358271,test,highly unlikely,very good chance,It is highly unlikely that 'Greg is a lion and Lily is a swan'.,There is a very good chance that 'Greg is a lion and Lily is a swan'.,0,'Greg is a lion and Lily is a swan'. Chances are slight that Mary picked up the apple. We believe that Antoine is thirsty. There is a very good chance that Julius is white. It is likely that if 'Julius is white' or 'Mary picked up the apple' or both then Emily is a sheep. It is likely that if 'Antoine is thirsty and Mary picked up the apple' then Sandra dropped the milk. It is highly unlikely that if 'Antoine is thirsty and Julius is white' then John left the milk.,It is highly unlikely that 'Sandra dropped the milk and Antoine is thirsty'.," 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.75::factB. 0.8::factC. %hop1 0.7::factX:-or(factC,factA). 0.7::factY:-and(factB,factA). 0.05::factZ:-and(factB,factC). %hop2 conclusion:-and(factY,factB). query(conclusion). ",0.05250000000000002,0.9399879975995199,test,highly unlikely,certain,It is highly unlikely that 'Sandra dropped the milk and Antoine is thirsty'.,It is certain that 'Sandra dropped the milk and Antoine is thirsty'.,1,'Sandra dropped the milk and Antoine is thirsty'. It is improbable that John went to the garden. It is probably the case that Greg is a rhino. There is a very good chance that Brian is a lion. It is unlikely that if either 'John went to the garden' or 'Greg is a rhino' but not both then Bernhard is a swan. It is probably not the case that if either 'John went to the garden' or 'Brian is a lion' but not both then Lily is white. Chances are about even that if 'Brian is a lion and John went to the garden' then Gertrude is a cat.,It is improbable that either 'Brian is a lion' or 'Gertrude is a cat' but not both.," 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.7::factB. 0.8::factC. %hop1 0.2::factX:-xor(factA,factB). 0.25::factY:-xor(factA,factC). 0.5::factZ:-and(factC,factA). %hop2 conclusion:-xor(factC,factZ). query(conclusion). ",0.76,0.9893978795759152,test,we believe,improbable,We believe that either 'Brian is a lion' or 'Gertrude is a cat' but not both.,It is improbable that either 'Brian is a lion' or 'Gertrude is a cat' but not both.,0,Either 'Brian is a lion' or 'Gertrude is a cat' but not both. It is certain that Bernhard is a rhino. It is improbable that Jason is bored. It is improbable that John picked up the milk. There is a very good chance that if 'John picked up the milk and Bernhard is a rhino' then Julius is a swan. There is almost no chance that if either 'Bernhard is a rhino' or 'John picked up the milk' but not both then Brian is gray. It is highly unlikely that if 'Bernhard is a rhino' or 'Jason is bored' or both then Greg is a lion.,It is likely that either 'Jason is bored' or 'Greg is a lion' but not both.," 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 1.0::factA. 0.1::factB. 0.1::factC. %hop1 0.8::factX:-and(factC,factA). 0.02::factY:-xor(factA,factC). 0.05::factZ:-or(factA,factB). %hop2 conclusion:-xor(factB,factZ). query(conclusion). ",0.14000000000000004,0.9049809961992399,test,chances are slight,likely,Chances are slight that either 'Jason is bored' or 'Greg is a lion' but not both.,It is likely that either 'Jason is bored' or 'Greg is a lion' but not both.,0,Either 'Jason is bored' or 'Greg is a lion' but not both. There is little chance that Bernhard is yellow. It is impossible that Julius is a frog. It is probably the case that John left the football. It is improbable that if 'Bernhard is yellow' or 'Julius is a frog' or both then Greg is yellow. It is improbable that if 'Julius is a frog' or 'Bernhard is yellow' or both then Daniel got the milk. We believe that if 'Julius is a frog and Bernhard is yellow' then Mary went to the hallway.,There is almost no chance that either 'Mary went to the hallway' or 'Daniel got the milk' but not both.," 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.0::factB. 0.7::factC. %hop1 0.1::factX:-or(factA,factB). 0.1::factY:-or(factB,factA). 0.75::factZ:-and(factB,factA). %hop2 conclusion:-xor(factZ,factY). query(conclusion). ",0.010000000000000004,0.9023804760952191,test,almost no chance,likely,There is almost no chance that either 'Mary went to the hallway' or 'Daniel got the milk' but not both.,It is likely that either 'Mary went to the hallway' or 'Daniel got the milk' but not both.,1,Either 'Mary went to the hallway' or 'Daniel got the milk' but not both. Chances are slight that Julius is a swan. There is almost no chance that Sandra grabbed the milk. It is likely that Brian is a swan. It is highly likely that if 'Julius is a swan and Sandra grabbed the milk' then Jeff went to the garden. It is impossible that if 'Sandra grabbed the milk' or 'Julius is a swan' or both then Mary got the apple. It is highly unlikely that if 'Brian is a swan and Julius is a swan' then Jason is tired.,It is probable that 'Sandra grabbed the milk and Julius is a swan'.," 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.02::factB. 0.7::factC. %hop1 0.9::factX:-and(factA,factB). 0.0::factY:-or(factB,factA). 0.05::factZ:-and(factC,factA). %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.0020000000000000005,0.9591918383676735,test,impossible,probable,It is impossible that 'Sandra grabbed the milk and Julius is a swan'.,It is probable that 'Sandra grabbed the milk and Julius is a swan'.,0,'Sandra grabbed the milk and Julius is a swan'. It is highly unlikely that Greg is white. There is almost no chance that John went to the hallway. There is almost no chance that Brian is a rhino. It is almost certain that if 'John went to the hallway and Brian is a rhino' then Gertrude is a mouse. It is highly unlikely that if either 'John went to the hallway' or 'Greg is white' but not both then Julius is a frog. There is a very good chance that if either 'Brian is a rhino' or 'Greg is white' but not both then Bernhard is a swan.,It is probable that either 'Bernhard is a swan' or 'Brian is a rhino' but not both.," 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.02::factB. 0.02::factC. %hop1 0.95::factX:-and(factB,factC). 0.05::factY:-xor(factB,factA). 0.8::factZ:-xor(factC,factA). %hop2 conclusion:-xor(factZ,factC). query(conclusion). ",0.044000000000000004,0.9185837167433487,test,highly unlikely,probable,It is highly unlikely that either 'Bernhard is a swan' or 'Brian is a rhino' but not both.,It is probable that either 'Bernhard is a swan' or 'Brian is a rhino' but not both.,0,Either 'Bernhard is a swan' or 'Brian is a rhino' but not both. It is improbable that Sandra left the milk. Chances are about even that Bernhard is a swan. It is highly likely that Lily is a swan. We doubt that if 'Bernhard is a swan and Sandra left the milk' then Julius is white. There is a better than even chance that if 'Lily is a swan and Sandra left the milk' then Brian is yellow. We believe that if either 'Lily is a swan' or 'Sandra left the milk' but not both then Mary moved to the garden.,There is a very good chance that 'Bernhard is a swan and Mary moved to the garden'.," 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.5::factB. 0.9::factC. %hop1 0.2::factX:-and(factB,factA). 0.6::factY:-and(factC,factA). 0.75::factZ:-xor(factC,factA). %hop2 conclusion:-and(factB,factZ). query(conclusion). ",0.3075,0.9479895979195839,test,probably not,very good chance,It is probably not the case that 'Bernhard is a swan and Mary moved to the garden'.,There is a very good chance that 'Bernhard is a swan and Mary moved to the garden'.,0,'Bernhard is a swan and Mary moved to the garden'. There is little chance that Brian is a swan. There is a very good chance that Julius is a rhino. It is almost certain that Bernhard is a frog. It is improbable that if either 'Bernhard is a frog' or 'Brian is a swan' but not both then Fred is in the cinema. It is improbable that if 'Bernhard is a frog and Brian is a swan' then John moved to the office. It is almost certain that if 'Brian is a swan' or 'Bernhard is a frog' or both then Greg is yellow.,It is almost certain that 'Greg is yellow' or 'Bernhard is a frog' or both.," 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.8::factB. 0.95::factC. %hop1 0.1::factX:-xor(factC,factA). 0.1::factY:-and(factC,factA). 0.95::factZ:-or(factA,factC). %hop2 conclusion:-or(factZ,factC). query(conclusion). ",0.95475,0.909381876375275,test,almost certain,highly unlikely,It is almost certain that 'Greg is yellow' or 'Bernhard is a frog' or both.,It is highly unlikely that 'Greg is yellow' or 'Bernhard is a frog' or both.,1,'Greg is yellow' or 'Bernhard is a frog' or both. It is unlikely that Gertrude is a sheep. It is improbable that Bernhard is a swan. It is highly unlikely that John went to the hallway. It is probable that if 'Gertrude is a sheep and Bernhard is a swan' then Daniel got the milk. It is highly unlikely that if 'John went to the hallway and Bernhard is a swan' then Greg is a frog. We believe that if either 'Gertrude is a sheep' or 'Bernhard is a swan' but not both then Lily is a rhino.,It is impossible that 'Greg is a frog and Daniel got the milk'.," 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.1::factB. 0.05::factC. %hop1 0.7::factX:-and(factA,factB). 0.05::factY:-and(factC,factB). 0.75::factZ:-xor(factA,factB). %hop2 conclusion:-and(factY,factX). query(conclusion). ",3.500000000000006e-05,0.9771954390878176,test,impossible,about even,It is impossible that 'Greg is a frog and Daniel got the milk'.,Chances are about even that 'Greg is a frog and Daniel got the milk'.,1,'Greg is a frog and Daniel got the milk'. Chances are slight that John picked up the milk. There is a better than even chance that Bill went to the garden. We believe that Sumit is thirsty. It is probably not the case that if 'Bill went to the garden' or 'Sumit is thirsty' or both then Bernhard is a swan. There is a better than even chance that if either 'John picked up the milk' or 'Bill went to the garden' but not both then Mary dropped the apple. We doubt that if 'Sumit is thirsty' or 'John picked up the milk' or both then Julius is a lion.,It is unlikely that either 'Julius is a lion' or 'John picked up the milk' but not both.," 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.6::factB. 0.75::factC. %hop1 0.25::factX:-or(factB,factC). 0.6::factY:-xor(factA,factB). 0.2::factZ:-or(factC,factA). %hop2 conclusion:-xor(factZ,factA). query(conclusion). ",0.21500000000000002,0.9129825965193039,test,unlikely,probably,It is unlikely that either 'Julius is a lion' or 'John picked up the milk' but not both.,It is probably the case that either 'Julius is a lion' or 'John picked up the milk' but not both.,1,Either 'Julius is a lion' or 'John picked up the milk' but not both. It is highly unlikely that Lily is a swan. Chances are about even that Greg is yellow. There is almost no chance that John got the apple. It is probable that if 'John got the apple' or 'Greg is yellow' or both then Julius is a frog. There is a better than even chance that if 'Greg is yellow' or 'Lily is a swan' or both then Mary moved to the office. It is probably not the case that if 'Lily is a swan' or 'Greg is yellow' or both then Sandra took the football.,It is certain that either 'Mary moved to the office' or 'Lily is a swan' but not both.," 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.5::factB. 0.02::factC. %hop1 0.7::factX:-or(factC,factB). 0.6::factY:-or(factB,factA). 0.25::factZ:-or(factA,factB). %hop2 conclusion:-xor(factY,factA). query(conclusion). ",0.305,0.9611922384476895,test,probably not,certain,It is probably not the case that either 'Mary moved to the office' or 'Lily is a swan' but not both.,It is certain that either 'Mary moved to the office' or 'Lily is a swan' but not both.,0,Either 'Mary moved to the office' or 'Lily is a swan' but not both. It is unlikely that John put down the milk. There is almost no chance that Bernhard is gray. It is improbable that Sandra left the milk. It is probable that if 'Sandra left the milk' or 'Bernhard is gray' or both then Daniel took the apple. Chances are about even that if either 'Bernhard is gray' or 'Sandra left the milk' but not both then Mary went to the kitchen. There is a very good chance that if 'John put down the milk and Bernhard is gray' then Julius is a swan.,It is almost certain that 'John put down the milk' or 'Mary went to the kitchen' or both.," 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.02::factB. 0.1::factC. %hop1 0.7::factX:-or(factC,factB). 0.5::factY:-xor(factB,factC). 0.8::factZ:-and(factA,factB). %hop2 conclusion:-or(factA,factY). query(conclusion). ",0.2464,0.9555911182236447,test,probably not,almost certain,It is probably not the case that 'John put down the milk' or 'Mary went to the kitchen' or both.,It is almost certain that 'John put down the milk' or 'Mary went to the kitchen' or both.,0,'John put down the milk' or 'Mary went to the kitchen' or both. There is little chance that Bernhard is yellow. It is probable that Greg is a swan. It is unlikely that Mary went to the garden. There is almost no chance that if 'Greg is a swan and Mary went to the garden' then Jeff moved to the office. It is unlikely that if 'Greg is a swan' or 'Mary went to the garden' or both then Julius is green. It is probable that if 'Mary went to the garden' or 'Greg is a swan' or both then Lily is a frog.,It is probable that 'Greg is a swan and Jeff moved to the office'.," 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.7::factB. 0.2::factC. %hop1 0.02::factX:-and(factB,factC). 0.2::factY:-or(factB,factC). 0.7::factZ:-or(factC,factB). %hop2 conclusion:-and(factB,factX). query(conclusion). ",0.002800000000000001,0.9505901180236047,test,impossible,probable,It is impossible that 'Greg is a swan and Jeff moved to the office'.,It is probable that 'Greg is a swan and Jeff moved to the office'.,0,'Greg is a swan and Jeff moved to the office'. It is probable that Jeff went to the bedroom. There is a very good chance that Yann is thirsty. It is unlikely that John put down the milk. It is highly likely that if 'John put down the milk and Yann is thirsty' then Julius is white. We doubt that if 'John put down the milk' or 'Yann is thirsty' or both then Brian is green. It is unlikely that if either 'Jeff went to the bedroom' or 'John put down the milk' but not both then Lily is a lion.,Chances are slight that 'Brian is green and Jeff went to the bedroom'.," 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.7::factA. 0.8::factB. 0.2::factC. %hop1 0.9::factX:-and(factC,factB). 0.2::factY:-or(factC,factB). 0.2::factZ:-xor(factA,factC). %hop2 conclusion:-and(factY,factA). query(conclusion). ",0.1176,0.9077815563112622,test,chances are slight,we believe,Chances are slight that 'Brian is green and Jeff went to the bedroom'.,We believe that 'Brian is green and Jeff went to the bedroom'.,1,'Brian is green and Jeff went to the bedroom'. It is impossible that Lily is white. We believe that Julius is a frog. It is probably the case that Bernhard is gray. It is improbable that if either 'Bernhard is gray' or 'Julius is a frog' but not both then Brian is green. It is highly unlikely that if either 'Bernhard is gray' or 'Lily is white' but not both then Jeff left the apple. There is a very good chance that if 'Bernhard is gray' or 'Julius is a frog' or both then John took the apple.,It is likely that either 'Lily is white' or 'Bernhard is gray' but not both.," 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.0::factA. 0.75::factB. 0.7::factC. %hop1 0.1::factX:-xor(factC,factB). 0.05::factY:-xor(factC,factA). 0.8::factZ:-or(factC,factB). %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.7,0.9359871974394879,test,likely,impossible,It is likely that either 'Lily is white' or 'Bernhard is gray' but not both.,It is impossible that either 'Lily is white' or 'Bernhard is gray' but not both.,1,Either 'Lily is white' or 'Bernhard is gray' but not both. There is almost no chance that Bill went to the office. There is little chance that Jason is tired. Chances are slight that Greg is yellow. We believe that if 'Greg is yellow' or 'Jason is tired' or both then Julius is a frog. It is improbable that if 'Greg is yellow' or 'Jason is tired' or both then Mary took the football. It is unlikely that if 'Greg is yellow' or 'Bill went to the office' or both then John moved to the garden.,We believe that 'Julius is a frog and Greg is yellow'.," 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.02::factA. 0.1::factB. 0.1::factC. %hop1 0.75::factX:-or(factC,factB). 0.1::factY:-or(factC,factB). 0.2::factZ:-or(factC,factA). %hop2 conclusion:-and(factX,factC). query(conclusion). ",0.07500000000000002,0.9329865973194639,test,improbable,we believe,It is improbable that 'Julius is a frog and Greg is yellow'.,We believe that 'Julius is a frog and Greg is yellow'.,0,'Julius is a frog and Greg is yellow'. It is improbable that Lily is green. It is probable that John moved to the garden. Chances are slight that Bernhard is a lion. It is almost certain that if 'Lily is green and Bernhard is a lion' then Julius is gray. It is certain that if 'Bernhard is a lion' or 'Lily is green' or both then Daniel took the apple. It is probably not the case that if 'Bernhard is a lion' or 'Lily is green' or both then Mary went to the office.,It is almost certain that either 'Julius is gray' or 'Daniel took the apple' but not both.," 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.7::factB. 0.1::factC. %hop1 0.95::factX:-and(factA,factC). 1.0::factY:-or(factC,factA). 0.25::factZ:-or(factC,factA). %hop2 conclusion:-xor(factX,factY). query(conclusion). ",0.18050000000000005,0.9887977595519104,test,we doubt,almost certain,We doubt that either 'Julius is gray' or 'Daniel took the apple' but not both.,It is almost certain that either 'Julius is gray' or 'Daniel took the apple' but not both.,0,Either 'Julius is gray' or 'Daniel took the apple' but not both. There is almost no chance that Bernhard is a frog. There is almost no chance that Mary moved to the garden. We believe that Gertrude is a mouse. It is highly likely that if 'Bernhard is a frog' or 'Mary moved to the garden' or both then Fred is in the school. It is impossible that if 'Gertrude is a mouse' or 'Mary moved to the garden' or both then Brian is yellow. It is highly unlikely that if 'Mary moved to the garden' or 'Bernhard is a frog' or both then John left the milk.,There is almost no chance that 'Brian is yellow' or 'Bernhard is a frog' or both.," 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.02::factA. 0.02::factB. 0.75::factC. %hop1 0.9::factX:-or(factA,factB). 0.0::factY:-or(factC,factB). 0.05::factZ:-or(factB,factA). %hop2 conclusion:-or(factY,factA). query(conclusion). ",0.02,0.9111822364472895,test,almost no chance,almost certain,There is almost no chance that 'Brian is yellow' or 'Bernhard is a frog' or both.,It is almost certain that 'Brian is yellow' or 'Bernhard is a frog' or both.,1,'Brian is yellow' or 'Bernhard is a frog' or both. It is certain that Julius is a swan. It is probably not the case that John dropped the apple. Chances are slight that Lily is gray. It is highly likely that if 'Lily is gray' or 'Julius is a swan' or both then Greg is a lion. It is highly likely that if 'Julius is a swan' or 'John dropped the apple' or both then Mary took the football. Chances are slight that if 'John dropped the apple' or 'Lily is gray' or both then Jeff left the apple.,There is almost no chance that 'Julius is a swan' or 'Lily is gray' or both.," 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 1.0::factA. 0.25::factB. 0.1::factC. %hop1 0.9::factX:-or(factC,factA). 0.9::factY:-or(factA,factB). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-or(factA,factC). query(conclusion). ",1.0,1.0,test,certain,almost no chance,It is certain that 'Julius is a swan' or 'Lily is gray' or both.,There is almost no chance that 'Julius is a swan' or 'Lily is gray' or both.,0,'Julius is a swan' or 'Lily is gray' or both. Chances are slight that Jessica is a cat. It is probably the case that Greg is green. It is certain that John left the football. It is highly unlikely that if either 'Jessica is a cat' or 'Greg is green' but not both then Gertrude is a sheep. We believe that if 'John left the football and Jessica is a cat' then Brian is a rhino. It is probably the case that if either 'John left the football' or 'Greg is green' but not both then Julius is a swan.,It is certain that 'John left the football' or 'Julius is a swan' or both.," 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.7::factB. 1.0::factC. %hop1 0.05::factX:-xor(factA,factB). 0.75::factY:-and(factC,factA). 0.7::factZ:-xor(factC,factB). %hop2 conclusion:-or(factC,factZ). query(conclusion). ",1.0,0.9663932786557311,test,certain,almost no chance,It is certain that 'John left the football' or 'Julius is a swan' or both.,There is almost no chance that 'John left the football' or 'Julius is a swan' or both.,1,'John left the football' or 'Julius is a swan' or both. It is highly unlikely that John went to the office. It is likely that Brian is yellow. It is highly likely that Greg is a rhino. There is little chance that if either 'Greg is a rhino' or 'John went to the office' but not both then Lily is a frog. It is probably the case that if 'John went to the office and Brian is yellow' then Sandra got the football. There is little chance that if 'Brian is yellow' or 'John went to the office' or both then Winona is a wolf.,It is impossible that 'Lily is a frog and Sandra got the football'.," 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.7::factB. 0.9::factC. %hop1 0.1::factX:-xor(factC,factA). 0.7::factY:-and(factA,factB). 0.1::factZ:-or(factB,factA). %hop2 conclusion:-and(factX,factY). query(conclusion). ",0.000245,0.9147829565913183,test,impossible,we believe,It is impossible that 'Lily is a frog and Sandra got the football'.,We believe that 'Lily is a frog and Sandra got the football'.,1,'Lily is a frog and Sandra got the football'. There is a very good chance that Lily is a swan. We believe that John took the apple. Chances are about even that Jeff moved to the garden. It is highly likely that if either 'Jeff moved to the garden' or 'Lily is a swan' but not both then Jessica is a mouse. It is highly unlikely that if either 'Jeff moved to the garden' or 'John took the apple' but not both then Brian is a lion. It is improbable that if 'Jeff moved to the garden and John took the apple' then Mary dropped the milk.,It is probably the case that 'Jessica is a mouse and Brian is a lion'.," 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.8::factA. 0.75::factB. 0.5::factC. %hop1 0.9::factX:-xor(factC,factA). 0.05::factY:-xor(factC,factB). 0.1::factZ:-and(factC,factB). %hop2 conclusion:-and(factX,factY). query(conclusion). ",0.014625000000000003,0.9033806761352271,test,almost no chance,probably,There is almost no chance that 'Jessica is a mouse and Brian is a lion'.,It is probably the case that 'Jessica is a mouse and Brian is a lion'.,0,'Jessica is a mouse and Brian is a lion'. It is highly likely that Gertrude is a cat. Chances are about even that Julius is green. There is little chance that Daniel left the milk. There is a very good chance that if either 'Daniel left the milk' or 'Gertrude is a cat' but not both then Emily is a wolf. It is impossible that if 'Gertrude is a cat' or 'Daniel left the milk' or both then Jeff went to the garden. It is improbable that if either 'Julius is green' or 'Daniel left the milk' but not both then John put down the apple.,It is probably the case that 'Jeff went to the garden and John put down the apple'.," 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.5::factB. 0.1::factC. %hop1 0.8::factX:-xor(factC,factA). 0.0::factY:-or(factA,factC). 0.1::factZ:-xor(factB,factC). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.0,0.9843968793758752,test,impossible,probably,It is impossible that 'Jeff went to the garden and John put down the apple'.,It is probably the case that 'Jeff went to the garden and John put down the apple'.,0,'Jeff went to the garden and John put down the apple'. We believe that Antoine is bored. It is likely that Brian is white. It is unlikely that Mary picked up the apple. It is probably not the case that if either 'Mary picked up the apple' or 'Brian is white' but not both then Bernhard is yellow. There is little chance that if either 'Mary picked up the apple' or 'Brian is white' but not both then Lily is a lion. We believe that if 'Antoine is bored' or 'Mary picked up the apple' or both then Bill left the milk.,It is almost certain that either 'Antoine is bored' or 'Brian is white' but not both.," 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.75::factA. 0.7::factB. 0.2::factC. %hop1 0.25::factX:-xor(factC,factB). 0.1::factY:-xor(factC,factB). 0.75::factZ:-or(factA,factC). %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.4,0.9875975195039007,test,about even,almost certain,Chances are about even that either 'Antoine is bored' or 'Brian is white' but not both.,It is almost certain that either 'Antoine is bored' or 'Brian is white' but not both.,0,Either 'Antoine is bored' or 'Brian is white' but not both. It is probably not the case that John took the apple. It is certain that Julius is white. It is highly unlikely that Emily is a sheep. It is certain that if 'Emily is a sheep and Julius is white' then Lily is a rhino. We doubt that if 'John took the apple' or 'Emily is a sheep' or both then Mary went to the bedroom. It is highly unlikely that if either 'John took the apple' or 'Emily is a sheep' but not both then Brian is gray.,It is improbable that either 'Julius is white' or 'Emily is a sheep' but not both.," 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.25::factA. 1.0::factB. 0.05::factC. %hop1 1.0::factX:-and(factC,factB). 0.2::factY:-or(factA,factC). 0.05::factZ:-xor(factA,factC). %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.95,0.9551910382076415,test,almost certain,improbable,It is almost certain that either 'Julius is white' or 'Emily is a sheep' but not both.,It is improbable that either 'Julius is white' or 'Emily is a sheep' but not both.,0,Either 'Julius is white' or 'Emily is a sheep' but not both. It is probably not the case that Julius is a frog. Chances are about even that John picked up the milk. We believe that Jeff went to the garden. Chances are slight that if 'Julius is a frog' or 'John picked up the milk' or both then Fred is in the cinema. Chances are slight that if either 'Julius is a frog' or 'John picked up the milk' but not both then Mary got the football. It is probably the case that if either 'John picked up the milk' or 'Jeff went to the garden' but not both then Lily is a rhino.,We believe that either 'Mary got the football' or 'Jeff went to the garden' but not both.," 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.25::factA. 0.5::factB. 0.75::factC. %hop1 0.1::factX:-or(factA,factB). 0.1::factY:-xor(factA,factB). 0.7::factZ:-xor(factB,factC). %hop2 conclusion:-xor(factY,factC). query(conclusion). ",0.7250000000000001,0.990998199639928,test,we believe,unlikely,We believe that either 'Mary got the football' or 'Jeff went to the garden' but not both.,It is unlikely that either 'Mary got the football' or 'Jeff went to the garden' but not both.,1,Either 'Mary got the football' or 'Jeff went to the garden' but not both. There is a very good chance that Mary went to the office. It is probably the case that Bernhard is a swan. There is a very good chance that Julius is green. Chances are slight that if either 'Mary went to the office' or 'Bernhard is a swan' but not both then Greg is white. It is highly unlikely that if 'Julius is green' or 'Mary went to the office' or both then Sumit is thirsty. There is little chance that if either 'Bernhard is a swan' or 'Julius is green' but not both then Sandra dropped the apple.,It is unlikely that 'Bernhard is a swan' or 'Greg is white' or both.," 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.8::factA. 0.7::factB. 0.8::factC. %hop1 0.1::factX:-xor(factA,factB). 0.05::factY:-or(factC,factA). 0.1::factZ:-xor(factB,factC). %hop2 conclusion:-or(factB,factX). query(conclusion). ",0.724,0.9467893578715744,test,probable,unlikely,It is probable that 'Bernhard is a swan' or 'Greg is white' or both.,It is unlikely that 'Bernhard is a swan' or 'Greg is white' or both.,0,'Bernhard is a swan' or 'Greg is white' or both. It is highly likely that Bill went to the garden. Chances are about even that Sandra dropped the milk. There is a very good chance that Mary picked up the milk. It is certain that if either 'Mary picked up the milk' or 'Bill went to the garden' but not both then Julius is white. It is probably the case that if 'Sandra dropped the milk and Bill went to the garden' then Gertrude is a sheep. It is likely that if 'Bill went to the garden' or 'Mary picked up the milk' or both then John left the football.,It is probably not the case that 'Sandra dropped the milk' or 'Bill went to the garden' or both.," 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.5::factB. 0.8::factC. %hop1 1.0::factX:-xor(factC,factA). 0.7::factY:-and(factB,factA). 0.7::factZ:-or(factA,factC). %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.9500000000000001,0.9541908381676335,test,almost certain,probably not,It is almost certain that 'Sandra dropped the milk' or 'Bill went to the garden' or both.,It is probably not the case that 'Sandra dropped the milk' or 'Bill went to the garden' or both.,0,'Sandra dropped the milk' or 'Bill went to the garden' or both. It is highly likely that Mary went to the kitchen. There is a better than even chance that Lily is a lion. It is almost certain that Greg is green. It is probable that if 'Lily is a lion and Mary went to the kitchen' then Brian is gray. Chances are slight that if 'Greg is green and Mary went to the kitchen' then Bernhard is a frog. There is almost no chance that if 'Greg is green and Mary went to the kitchen' then Sandra got the football.,It is impossible that 'Brian is gray and Sandra got the football'.," 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.6::factB. 0.95::factC. %hop1 0.7::factX:-and(factB,factA). 0.1::factY:-and(factC,factA). 0.02::factZ:-and(factC,factA). %hop2 conclusion:-and(factX,factZ). query(conclusion). ",0.007181999999999997,0.9267853570714143,test,impossible,likely,It is impossible that 'Brian is gray and Sandra got the football'.,It is likely that 'Brian is gray and Sandra got the football'.,1,'Brian is gray and Sandra got the football'. Chances are slight that John discarded the apple. It is almost certain that Brian is a rhino. Chances are slight that Mary got the football. We believe that if 'Brian is a rhino' or 'John discarded the apple' or both then Winona is a mouse. It is likely that if 'John discarded the apple and Mary got the football' then Lily is white. It is probable that if 'Mary got the football and Brian is a rhino' then Bernhard is white.,It is highly likely that 'Bernhard is white and John discarded the apple'.," 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.95::factB. 0.1::factC. %hop1 0.75::factX:-or(factB,factA). 0.7::factY:-and(factA,factC). 0.7::factZ:-and(factC,factB). %hop2 conclusion:-and(factZ,factA). query(conclusion). ",0.006650000000000005,0.9851970394078816,test,impossible,highly likely,It is impossible that 'Bernhard is white and John discarded the apple'.,It is highly likely that 'Bernhard is white and John discarded the apple'.,0,'Bernhard is white and John discarded the apple'. It is unlikely that Emily is a cat. There is almost no chance that Julius is a lion. There is a very good chance that John moved to the office. It is likely that if 'Julius is a lion and John moved to the office' then Bernhard is a swan. It is probably not the case that if either 'Emily is a cat' or 'Julius is a lion' but not both then Daniel dropped the apple. It is highly likely that if 'Julius is a lion' or 'John moved to the office' or both then Gertrude is a mouse.,It is probably the case that either 'Gertrude is a mouse' or 'Julius is a lion' but not both.," 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.02::factB. 0.8::factC. %hop1 0.7::factX:-and(factB,factC). 0.25::factY:-xor(factA,factB). 0.9::factZ:-or(factB,factC). %hop2 conclusion:-xor(factZ,factB). query(conclusion). ",0.7076,0.9985997199439888,test,probably,unlikely,It is probably the case that either 'Gertrude is a mouse' or 'Julius is a lion' but not both.,It is unlikely that either 'Gertrude is a mouse' or 'Julius is a lion' but not both.,1,Either 'Gertrude is a mouse' or 'Julius is a lion' but not both. There is a better than even chance that John went to the office. It is improbable that Bernhard is a frog. It is highly unlikely that Brian is yellow. It is probable that if either 'John went to the office' or 'Brian is yellow' but not both then Julius is a lion. It is improbable that if either 'Brian is yellow' or 'Bernhard is a frog' but not both then Mary discarded the milk. It is almost certain that if 'Brian is yellow and Bernhard is a frog' then Winona is a sheep.,It is highly unlikely that either 'Julius is a lion' or 'Mary discarded the milk' but not both.," 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.1::factB. 0.05::factC. %hop1 0.7::factX:-xor(factA,factC). 0.1::factY:-xor(factC,factB). 0.95::factZ:-and(factC,factB). %hop2 conclusion:-xor(factX,factY). query(conclusion). ",0.41649999999999987,0.9961992398479695,test,about even,highly unlikely,Chances are about even that either 'Julius is a lion' or 'Mary discarded the milk' but not both.,It is highly unlikely that either 'Julius is a lion' or 'Mary discarded the milk' but not both.,0,Either 'Julius is a lion' or 'Mary discarded the milk' but not both. We believe that John got the milk. It is probably the case that Julius is yellow. It is highly likely that Brian is white. It is probably not the case that if 'Julius is yellow and Brian is white' then Sandra dropped the milk. Chances are about even that if 'Brian is white and John got the milk' then Greg is a lion. It is impossible that if 'Julius is yellow' or 'John got the milk' or both then Mary left the football.,There is a very good chance that either 'John got the milk' or 'Brian is white' but not both.," 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.75::factA. 0.7::factB. 0.9::factC. %hop1 0.25::factX:-and(factB,factC). 0.5::factY:-and(factC,factA). 0.0::factZ:-or(factB,factA). %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.30000000000000004,0.9927985597119424,test,probably not,very good chance,It is probably not the case that either 'John got the milk' or 'Brian is white' but not both.,There is a very good chance that either 'John got the milk' or 'Brian is white' but not both.,0,Either 'John got the milk' or 'Brian is white' but not both. It is unlikely that Greg is green. It is probably not the case that Julius is white. Chances are slight that Brian is gray. It is impossible that if either 'Greg is green' or 'Julius is white' but not both then Bernhard is white. It is almost certain that if 'Brian is gray' or 'Julius is white' or both then John went to the hallway. There is almost no chance that if 'Greg is green' or 'Julius is white' or both then Daniel got the milk.,There is a very good chance that either 'Brian is gray' or 'Bernhard is white' but not both.," 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.25::factB. 0.1::factC. %hop1 0.0::factX:-xor(factA,factB). 0.95::factY:-or(factC,factB). 0.02::factZ:-or(factA,factB). %hop2 conclusion:-xor(factC,factX). query(conclusion). ",0.10000000000000002,0.9221844368873775,test,little chance,very good chance,There is little chance that either 'Brian is gray' or 'Bernhard is white' but not both.,There is a very good chance that either 'Brian is gray' or 'Bernhard is white' but not both.,0,Either 'Brian is gray' or 'Bernhard is white' but not both. It is probable that John moved to the garden. There is a very good chance that Jason is thirsty. It is highly unlikely that Gertrude is a sheep. There is little chance that if 'John moved to the garden and Gertrude is a sheep' then Julius is a rhino. It is improbable that if either 'Jason is thirsty' or 'Gertrude is a sheep' but not both then Mary put down the apple. It is unlikely that if 'Jason is thirsty' or 'Gertrude is a sheep' or both then Greg is a lion.,We believe that either 'Jason is thirsty' or 'Gertrude is a sheep' but not both.," 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.7::factA. 0.8::factB. 0.05::factC. %hop1 0.1::factX:-and(factA,factC). 0.1::factY:-xor(factB,factC). 0.2::factZ:-or(factB,factC). %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.77,0.9583916783356672,test,we believe,highly unlikely,We believe that either 'Jason is thirsty' or 'Gertrude is a sheep' but not both.,It is highly unlikely that either 'Jason is thirsty' or 'Gertrude is a sheep' but not both.,1,Either 'Jason is thirsty' or 'Gertrude is a sheep' but not both. It is highly unlikely that Bernhard is a swan. It is impossible that Julius is a swan. We doubt that John moved to the garden. It is probably the case that if 'Bernhard is a swan' or 'John moved to the garden' or both then Lily is white. It is impossible that if 'Bernhard is a swan' or 'John moved to the garden' or both then Mary dropped the apple. It is likely that if 'Bernhard is a swan and John moved to the garden' then Greg is a frog.,It is impossible that 'Greg is a frog and Mary dropped the apple'.," 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.0::factB. 0.2::factC. %hop1 0.7::factX:-or(factA,factC). 0.0::factY:-or(factA,factC). 0.7::factZ:-and(factA,factC). %hop2 conclusion:-and(factZ,factY). query(conclusion). ",0.0,0.9225845169033807,test,impossible,about even,It is impossible that 'Greg is a frog and Mary dropped the apple'.,Chances are about even that 'Greg is a frog and Mary dropped the apple'.,1,'Greg is a frog and Mary dropped the apple'. It is probably not the case that Bernhard is white. There is a very good chance that Bill went to the garden. It is improbable that John discarded the apple. We doubt that if 'Bill went to the garden and John discarded the apple' then Mary got the milk. We believe that if either 'Bill went to the garden' or 'John discarded the apple' but not both then Brian is a swan. It is probably not the case that if 'John discarded the apple' or 'Bill went to the garden' or both then Jessica is a mouse.,It is highly unlikely that 'Bill went to the garden' or 'John discarded the apple' or both.," 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.25::factA. 0.8::factB. 0.1::factC. %hop1 0.2::factX:-and(factB,factC). 0.75::factY:-xor(factB,factC). 0.25::factZ:-or(factC,factB). %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.8200000000000001,0.9615923184636928,test,very good chance,highly unlikely,There is a very good chance that 'Bill went to the garden' or 'John discarded the apple' or both.,It is highly unlikely that 'Bill went to the garden' or 'John discarded the apple' or both.,0,'Bill went to the garden' or 'John discarded the apple' or both. It is probably not the case that Julius is a swan. It is highly likely that Emily is a mouse. There is almost no chance that Lily is green. We doubt that if 'Julius is a swan' or 'Emily is a mouse' or both then Brian is a frog. There is a very good chance that if 'Julius is a swan' or 'Emily is a mouse' or both then Mary went to the bedroom. There is a better than even chance that if 'Emily is a mouse' or 'Julius is a swan' or both then Gertrude is a sheep.,It is highly likely that 'Gertrude is a sheep' or 'Emily is a mouse' or both.," 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.25::factA. 0.9::factB. 0.02::factC. %hop1 0.2::factX:-or(factA,factB). 0.8::factY:-or(factA,factB). 0.6::factZ:-or(factB,factA). %hop2 conclusion:-or(factZ,factB). query(conclusion). ",0.915,0.9081816363272655,test,highly likely,we doubt,It is highly likely that 'Gertrude is a sheep' or 'Emily is a mouse' or both.,We doubt that 'Gertrude is a sheep' or 'Emily is a mouse' or both.,1,'Gertrude is a sheep' or 'Emily is a mouse' or both. It is probably the case that Mary dropped the milk. It is highly likely that Lily is a lion. There is a better than even chance that John moved to the office. There is a very good chance that if 'Mary dropped the milk' or 'John moved to the office' or both then Julius is yellow. There is little chance that if either 'John moved to the office' or 'Lily is a lion' but not both then Bernhard is a frog. Chances are about even that if 'Mary dropped the milk' or 'John moved to the office' or both then Winona is a cat.,It is likely that 'Julius is yellow' or 'Bernhard is a frog' or both.," 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.7::factA. 0.9::factB. 0.6::factC. %hop1 0.8::factX:-or(factA,factC). 0.1::factY:-xor(factC,factB). 0.5::factZ:-or(factA,factC). %hop2 conclusion:-or(factX,factY). query(conclusion). ",0.72104,0.9015803160632127,test,likely,almost no chance,It is likely that 'Julius is yellow' or 'Bernhard is a frog' or both.,There is almost no chance that 'Julius is yellow' or 'Bernhard is a frog' or both.,1,'Julius is yellow' or 'Bernhard is a frog' or both. It is probably the case that Bernhard is a frog. There is little chance that Lily is a swan. There is a better than even chance that Brian is a rhino. There is a better than even chance that if 'Bernhard is a frog and Brian is a rhino' then Daniel took the football. It is impossible that if 'Brian is a rhino and Bernhard is a frog' then Mary moved to the garden. It is certain that if either 'Bernhard is a frog' or 'Brian is a rhino' but not both then Julius is gray.,It is improbable that either 'Brian is a rhino' or 'Julius is gray' but not both.," 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.7::factA. 0.1::factB. 0.6::factC. %hop1 0.6::factX:-and(factA,factC). 0.0::factY:-and(factC,factA). 1.0::factZ:-xor(factA,factC). %hop2 conclusion:-xor(factC,factZ). query(conclusion). ",0.7,0.9787957591518304,test,probably,improbable,It is probably the case that either 'Brian is a rhino' or 'Julius is gray' but not both.,It is improbable that either 'Brian is a rhino' or 'Julius is gray' but not both.,0,Either 'Brian is a rhino' or 'Julius is gray' but not both. There is little chance that John went to the bedroom. It is improbable that Lily is white. It is almost certain that Mary got the apple. It is improbable that if 'John went to the bedroom and Lily is white' then Emily is a mouse. It is likely that if either 'John went to the bedroom' or 'Mary got the apple' but not both then Yann is tired. It is probable that if 'Mary got the apple' or 'John went to the bedroom' or both then Greg is green.,There is little chance that either 'Lily is white' or 'Emily is a mouse' but not both.," 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.1::factB. 0.95::factC. %hop1 0.1::factX:-and(factA,factB). 0.7::factY:-xor(factA,factC). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-xor(factB,factX). query(conclusion). ",0.099,0.9627925585117023,test,little chance,very good chance,There is little chance that either 'Lily is white' or 'Emily is a mouse' but not both.,There is a very good chance that either 'Lily is white' or 'Emily is a mouse' but not both.,1,Either 'Lily is white' or 'Emily is a mouse' but not both. It is improbable that Fred is in the office. It is highly unlikely that Brian is a swan. It is impossible that Mary went to the garden. It is almost certain that if 'Brian is a swan and Mary went to the garden' then Julius is gray. Chances are about even that if either 'Brian is a swan' or 'Mary went to the garden' but not both then Sandra got the milk. It is probably the case that if either 'Mary went to the garden' or 'Brian is a swan' but not both then John put down the apple.,It is improbable that 'Fred is in the office' or 'Julius is gray' or both.," 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.05::factB. 0.0::factC. %hop1 0.95::factX:-and(factB,factC). 0.5::factY:-xor(factB,factC). 0.7::factZ:-xor(factC,factB). %hop2 conclusion:-or(factA,factX). query(conclusion). ",0.10000000000000002,0.9897979595919184,test,improbable,almost certain,It is improbable that 'Fred is in the office' or 'Julius is gray' or both.,It is almost certain that 'Fred is in the office' or 'Julius is gray' or both.,1,'Fred is in the office' or 'Julius is gray' or both. It is probably the case that Lily is a frog. We believe that Bernhard is a rhino. There is little chance that Julius is a swan. It is probable that if 'Lily is a frog' or 'Julius is a swan' or both then Greg is yellow. It is certain that if either 'Julius is a swan' or 'Bernhard is a rhino' but not both then John took the football. There is almost no chance that if 'Julius is a swan' or 'Bernhard is a rhino' or both then Sandra dropped the apple.,It is likely that either 'Sandra dropped the apple' or 'Lily is a frog' but not both.," 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.7::factA. 0.75::factB. 0.1::factC. %hop1 0.7::factX:-or(factA,factC). 1.0::factY:-xor(factC,factB). 0.02::factZ:-or(factC,factB). %hop2 conclusion:-xor(factZ,factA). query(conclusion). ",0.6938,0.9749949989997999,test,likely,almost no chance,It is likely that either 'Sandra dropped the apple' or 'Lily is a frog' but not both.,There is almost no chance that either 'Sandra dropped the apple' or 'Lily is a frog' but not both.,1,Either 'Sandra dropped the apple' or 'Lily is a frog' but not both. There is almost no chance that Mary grabbed the milk. We believe that Lily is white. It is probably not the case that Gertrude is a wolf. Chances are slight that if either 'Mary grabbed the milk' or 'Lily is white' but not both then Brian is a rhino. It is probable that if 'Lily is white and Gertrude is a wolf' then Bernhard is gray. It is highly unlikely that if 'Mary grabbed the milk and Lily is white' then John took the apple.,We believe that either 'John took the apple' or 'Mary grabbed the milk' but not both.," 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.02::factA. 0.75::factB. 0.25::factC. %hop1 0.1::factX:-xor(factA,factB). 0.7::factY:-and(factB,factC). 0.05::factZ:-and(factA,factB). %hop2 conclusion:-xor(factZ,factA). query(conclusion). ",0.019250000000000007,0.9459891978395679,test,almost no chance,we believe,There is almost no chance that either 'John took the apple' or 'Mary grabbed the milk' but not both.,We believe that either 'John took the apple' or 'Mary grabbed the milk' but not both.,0,Either 'John took the apple' or 'Mary grabbed the milk' but not both. It is probably not the case that Brian is yellow. It is almost certain that Lily is a rhino. It is impossible that Winona is a wolf. There is almost no chance that if 'Brian is yellow' or 'Lily is a rhino' or both then Greg is gray. It is probable that if 'Brian is yellow and Lily is a rhino' then Julius is white. We doubt that if 'Winona is a wolf and Brian is yellow' then Mary left the football.,There is a very good chance that either 'Brian is yellow' or 'Mary left the football' but not both.," 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.25::factA. 0.95::factB. 0.0::factC. %hop1 0.02::factX:-or(factA,factB). 0.7::factY:-and(factA,factB). 0.2::factZ:-and(factC,factA). %hop2 conclusion:-xor(factA,factZ). query(conclusion). ",0.25,0.9099819963992799,test,probably not,very good chance,It is probably not the case that either 'Brian is yellow' or 'Mary left the football' but not both.,There is a very good chance that either 'Brian is yellow' or 'Mary left the football' but not both.,0,Either 'Brian is yellow' or 'Mary left the football' but not both. It is almost certain that Mary took the milk. Chances are slight that Julius is a frog. There is almost no chance that John moved to the garden. It is probable that if 'John moved to the garden' or 'Mary took the milk' or both then Sandra got the football. It is almost certain that if either 'John moved to the garden' or 'Mary took the milk' but not both then Greg is yellow. It is unlikely that if 'Mary took the milk' or 'Julius is a frog' or both then Bernhard is a lion.,It is highly likely that 'Bernhard is a lion' or 'Greg is yellow' or both.," 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.95::factA. 0.1::factB. 0.02::factC. %hop1 0.7::factX:-or(factC,factA). 0.95::factY:-xor(factC,factA). 0.2::factZ:-or(factA,factB). %hop2 conclusion:-or(factZ,factY). query(conclusion). ",0.8994909999999999,0.9785957191438288,test,highly likely,probably not,It is highly likely that 'Bernhard is a lion' or 'Greg is yellow' or both.,It is probably not the case that 'Bernhard is a lion' or 'Greg is yellow' or both.,1,'Bernhard is a lion' or 'Greg is yellow' or both. It is likely that Greg is white. We believe that Julius is a lion. Chances are slight that Brian is yellow. It is probably the case that if either 'Julius is a lion' or 'Greg is white' but not both then Winona is a wolf. It is unlikely that if 'Julius is a lion and Greg is white' then Sandra left the milk. Chances are about even that if 'Greg is white and Julius is a lion' then Bernhard is white.,It is unlikely that 'Winona is a wolf and Julius is a lion'.," 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.7::factA. 0.75::factB. 0.1::factC. %hop1 0.7::factX:-xor(factB,factA). 0.2::factY:-and(factB,factA). 0.5::factZ:-and(factA,factB). %hop2 conclusion:-and(factX,factB). query(conclusion). ",0.15750000000000003,0.9287857571514303,test,unlikely,probably,It is unlikely that 'Winona is a wolf and Julius is a lion'.,It is probably the case that 'Winona is a wolf and Julius is a lion'.,1,'Winona is a wolf and Julius is a lion'. It is impossible that Gertrude is a sheep. There is a very good chance that Julius is a lion. It is probable that Bernhard is green. It is highly likely that if 'Julius is a lion' or 'Gertrude is a sheep' or both then Lily is a swan. It is highly likely that if 'Bernhard is green and Gertrude is a sheep' then John discarded the apple. There is little chance that if 'Julius is a lion' or 'Bernhard is green' or both then Greg is a frog.,There is almost no chance that 'Greg is a frog' or 'Julius is a lion' or both.," 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.0::factA. 0.8::factB. 0.7::factC. %hop1 0.9::factX:-or(factB,factA). 0.9::factY:-and(factC,factA). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-or(factZ,factB). query(conclusion). ",0.8140000000000001,0.9335867173434687,test,very good chance,almost no chance,There is a very good chance that 'Greg is a frog' or 'Julius is a lion' or both.,There is almost no chance that 'Greg is a frog' or 'Julius is a lion' or both.,0,'Greg is a frog' or 'Julius is a lion' or both. Chances are about even that Mary went to the garden. It is highly unlikely that Daniel got the milk. It is likely that Brian is a frog. It is improbable that if 'Daniel got the milk' or 'Mary went to the garden' or both then Winona is a cat. It is likely that if either 'Daniel got the milk' or 'Mary went to the garden' but not both then Julius is green. We doubt that if either 'Brian is a frog' or 'Daniel got the milk' but not both then John moved to the office.,It is highly unlikely that 'Julius is green and John moved to the office'.," 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.5::factA. 0.05::factB. 0.7::factC. %hop1 0.1::factX:-or(factB,factA). 0.7::factY:-xor(factB,factA). 0.2::factZ:-xor(factC,factB). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.047599999999999976,0.9633926785357071,test,highly unlikely,highly likely,It is highly unlikely that 'Julius is green and John moved to the office'.,It is highly likely that 'Julius is green and John moved to the office'.,1,'Julius is green and John moved to the office'. It is probably the case that Brian is gray. There is a very good chance that Sandra got the football. There is almost no chance that John grabbed the milk. There is a very good chance that if 'Brian is gray and John grabbed the milk' then Bernhard is yellow. It is improbable that if either 'John grabbed the milk' or 'Brian is gray' but not both then Mary left the football. It is improbable that if 'Sandra got the football' or 'John grabbed the milk' or both then Greg is a frog.,It is highly likely that either 'John grabbed the milk' or 'Greg is a frog' but not both.," 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.7::factA. 0.8::factB. 0.02::factC. %hop1 0.8::factX:-and(factA,factC). 0.1::factY:-xor(factC,factA). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-xor(factC,factZ). query(conclusion). ",0.0964,0.9291858371674335,test,improbable,highly likely,It is improbable that either 'John grabbed the milk' or 'Greg is a frog' but not both.,It is highly likely that either 'John grabbed the milk' or 'Greg is a frog' but not both.,0,Either 'John grabbed the milk' or 'Greg is a frog' but not both. It is almost certain that Fred put down the apple. There is little chance that Bernhard is a frog. It is probable that Jeff went to the bedroom. It is improbable that if 'Bernhard is a frog' or 'Jeff went to the bedroom' or both then Sandra took the football. It is probably the case that if 'Jeff went to the bedroom and Fred put down the apple' then Greg is gray. Chances are slight that if 'Jeff went to the bedroom' or 'Fred put down the apple' or both then Lily is green.,There is little chance that 'Sandra took the football' or 'Fred put down the apple' or both.," 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.95::factA. 0.1::factB. 0.7::factC. %hop1 0.1::factX:-or(factB,factC). 0.7::factY:-and(factC,factA). 0.1::factZ:-or(factC,factA). %hop2 conclusion:-or(factX,factA). query(conclusion). ",0.9536499999999999,0.9993998799759952,test,almost certain,little chance,It is almost certain that 'Sandra took the football' or 'Fred put down the apple' or both.,There is little chance that 'Sandra took the football' or 'Fred put down the apple' or both.,0,'Sandra took the football' or 'Fred put down the apple' or both. It is highly unlikely that Brian is green. There is a better than even chance that Julius is yellow. It is likely that Mary went to the garden. It is almost certain that if 'Mary went to the garden' or 'Brian is green' or both then Bernhard is a frog. It is highly unlikely that if 'Brian is green and Julius is yellow' then Greg is a lion. It is impossible that if 'Mary went to the garden and Julius is yellow' then Jessica is a cat.,It is probable that 'Brian is green and Bernhard is a frog'.," 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.6::factB. 0.7::factC. %hop1 0.95::factX:-or(factC,factA). 0.05::factY:-and(factA,factB). 0.0::factZ:-and(factC,factB). %hop2 conclusion:-and(factA,factX). query(conclusion). ",0.0475,0.9671934386877376,test,highly unlikely,probable,It is highly unlikely that 'Brian is green and Bernhard is a frog'.,It is probable that 'Brian is green and Bernhard is a frog'.,0,'Brian is green and Bernhard is a frog'. There is little chance that Jeff went to the bedroom. It is probably not the case that Julius is white. It is highly likely that Brian is white. It is improbable that if 'Brian is white' or 'Jeff went to the bedroom' or both then John discarded the apple. There is little chance that if either 'Jeff went to the bedroom' or 'Julius is white' but not both then Lily is a lion. We doubt that if 'Julius is white' or 'Jeff went to the bedroom' or both then Sandra left the milk.,There is almost no chance that 'Jeff went to the bedroom and Sandra left the milk'.," 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.25::factB. 0.9::factC. %hop1 0.1::factX:-or(factC,factA). 0.1::factY:-xor(factA,factB). 0.2::factZ:-or(factB,factA). %hop2 conclusion:-and(factA,factZ). query(conclusion). ",0.02000000000000001,0.9987997599519904,test,almost no chance,probable,There is almost no chance that 'Jeff went to the bedroom and Sandra left the milk'.,It is probable that 'Jeff went to the bedroom and Sandra left the milk'.,1,'Jeff went to the bedroom and Sandra left the milk'. There is almost no chance that Greg is white. It is improbable that Emily is a wolf. We believe that Lily is a lion. There is a better than even chance that if 'Greg is white and Lily is a lion' then Sandra got the football. It is improbable that if either 'Emily is a wolf' or 'Lily is a lion' but not both then Brian is a swan. Chances are about even that if 'Emily is a wolf' or 'Lily is a lion' or both then Mary went to the office.,Chances are about even that either 'Lily is a lion' or 'Mary went to the office' but not both.," 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.02::factA. 0.1::factB. 0.75::factC. %hop1 0.6::factX:-and(factA,factC). 0.1::factY:-xor(factB,factC). 0.5::factZ:-or(factB,factC). %hop2 conclusion:-xor(factC,factZ). query(conclusion). ",0.38750000000000007,0.9725945189037808,test,about even,impossible,Chances are about even that either 'Lily is a lion' or 'Mary went to the office' but not both.,It is impossible that either 'Lily is a lion' or 'Mary went to the office' but not both.,1,Either 'Lily is a lion' or 'Mary went to the office' but not both. We doubt that Greg is a frog. It is likely that Emily is a wolf. There is a better than even chance that Bill went to the bedroom. It is highly unlikely that if 'Emily is a wolf' or 'Bill went to the bedroom' or both then John is in the garden. There is little chance that if 'Greg is a frog' or 'Emily is a wolf' or both then Sandra left the football. Chances are slight that if either 'Emily is a wolf' or 'Greg is a frog' but not both then Brian is green.,It is probable that either 'John is in the garden' or 'Greg is a frog' but not both.," 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.6::factC. %hop1 0.05::factX:-or(factB,factC). 0.1::factY:-or(factA,factB). 0.1::factZ:-xor(factB,factA). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.22640000000000005,0.992998599719944,test,probably not,probable,It is probably not the case that either 'John is in the garden' or 'Greg is a frog' but not both.,It is probable that either 'John is in the garden' or 'Greg is a frog' but not both.,0,Either 'John is in the garden' or 'Greg is a frog' but not both. It is certain that Greg is gray. We doubt that Mary went to the kitchen. It is improbable that John dropped the milk. We doubt that if 'Mary went to the kitchen and Greg is gray' then Gertrude is a cat. It is unlikely that if 'Greg is gray and John dropped the milk' then Brian is a lion. There is a better than even chance that if either 'Greg is gray' or 'John dropped the milk' but not both then Julius is a rhino.,It is likely that 'Brian is a lion' or 'Mary went to the kitchen' or both.," 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 1.0::factA. 0.2::factB. 0.1::factC. %hop1 0.2::factX:-and(factB,factA). 0.2::factY:-and(factA,factC). 0.6::factZ:-xor(factA,factC). %hop2 conclusion:-or(factY,factB). query(conclusion). ",0.21600000000000003,0.9311862372474495,test,we doubt,likely,We doubt that 'Brian is a lion' or 'Mary went to the kitchen' or both.,It is likely that 'Brian is a lion' or 'Mary went to the kitchen' or both.,0,'Brian is a lion' or 'Mary went to the kitchen' or both. There is almost no chance that Julius is a rhino. There is a very good chance that John picked up the milk. There is almost no chance that Bill went to the garden. It is improbable that if 'Bill went to the garden and John picked up the milk' then Yann is hungry. There is almost no chance that if 'John picked up the milk and Julius is a rhino' then Lily is yellow. Chances are slight that if 'Bill went to the garden and Julius is a rhino' then Bernhard is a swan.,It is impossible that 'Lily is yellow and Yann is hungry'.," 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.02::factA. 0.8::factB. 0.02::factC. %hop1 0.1::factX:-and(factC,factB). 0.02::factY:-and(factB,factA). 0.1::factZ:-and(factC,factA). %hop2 conclusion:-and(factY,factX). query(conclusion). ",6.400000000000003e-07,0.9943988797759552,test,impossible,probable,It is impossible that 'Lily is yellow and Yann is hungry'.,It is probable that 'Lily is yellow and Yann is hungry'.,1,'Lily is yellow and Yann is hungry'. There is little chance that Fred discarded the apple. It is improbable that Lily is a lion. It is probably the case that Bernhard is gray. There is almost no chance that if 'Bernhard is gray' or 'Lily is a lion' or both then Brian is yellow. It is likely that if either 'Bernhard is gray' or 'Lily is a lion' but not both then John put down the milk. It is impossible that if either 'Lily is a lion' or 'Bernhard is gray' but not both then Mary moved to the garden.,It is impossible that 'Bernhard is gray and Mary moved to the garden'.," 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.1::factB. 0.7::factC. %hop1 0.02::factX:-or(factC,factB). 0.7::factY:-xor(factC,factB). 0.0::factZ:-xor(factB,factC). %hop2 conclusion:-and(factC,factZ). query(conclusion). ",0.0,0.9207841568313663,test,impossible,probable,It is impossible that 'Bernhard is gray and Mary moved to the garden'.,It is probable that 'Bernhard is gray and Mary moved to the garden'.,1,'Bernhard is gray and Mary moved to the garden'. It is likely that Brian is a rhino. There is little chance that Julius is green. We doubt that John went to the hallway. It is certain that if either 'Brian is a rhino' or 'Julius is green' but not both then Sandra took the milk. There is almost no chance that if 'Julius is green and Brian is a rhino' then Greg is a frog. Chances are slight that if 'Julius is green' or 'Brian is a rhino' or both then Mary left the football.,It is probably the case that either 'Greg is a frog' or 'Sandra took the milk' but not both.," 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.7::factA. 0.1::factB. 0.2::factC. %hop1 1.0::factX:-xor(factA,factB). 0.02::factY:-and(factB,factA). 0.1::factZ:-or(factB,factA). %hop2 conclusion:-xor(factY,factX). query(conclusion). ",0.6614,0.9955991198239648,test,probably,little chance,It is probably the case that either 'Greg is a frog' or 'Sandra took the milk' but not both.,There is little chance that either 'Greg is a frog' or 'Sandra took the milk' but not both.,1,Either 'Greg is a frog' or 'Sandra took the milk' but not both. It is highly likely that Sandra took the milk. There is almost no chance that Lily is yellow. It is almost certain that Fred is in the school. There is a better than even chance that if 'Sandra took the milk and Fred is in the school' then Mary put down the apple. It is certain that if either 'Lily is yellow' or 'Sandra took the milk' but not both then John grabbed the apple. Chances are about even that if either 'Sandra took the milk' or 'Fred is in the school' but not both then Julius is white.,It is impossible that 'Lily is yellow and John grabbed the apple'.," 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.02::factB. 0.95::factC. %hop1 0.6::factX:-and(factA,factC). 1.0::factY:-xor(factB,factA). 0.5::factZ:-xor(factA,factC). %hop2 conclusion:-and(factB,factY). query(conclusion). ",0.0020000000000000005,0.9695939187837568,test,impossible,likely,It is impossible that 'Lily is yellow and John grabbed the apple'.,It is likely that 'Lily is yellow and John grabbed the apple'.,1,'Lily is yellow and John grabbed the apple'. It is probable that Mary left the milk. We doubt that Bernhard is a lion. It is impossible that Sandra took the football. It is almost certain that if either 'Bernhard is a lion' or 'Mary left the milk' but not both then John went to the office. It is unlikely that if 'Mary left the milk and Bernhard is a lion' then Greg is gray. It is unlikely that if 'Mary left the milk' or 'Sandra took the football' or both then Jessica is a mouse.,It is highly unlikely that either 'Jessica is a mouse' or 'John went to the office' but not both.," 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.7::factA. 0.2::factB. 0.0::factC. %hop1 0.95::factX:-xor(factB,factA). 0.2::factY:-and(factA,factB). 0.2::factZ:-or(factA,factC). %hop2 conclusion:-xor(factZ,factX). query(conclusion). ",0.5161999999999999,0.9001800360072014,test,about even,highly unlikely,Chances are about even that either 'Jessica is a mouse' or 'John went to the office' but not both.,It is highly unlikely that either 'Jessica is a mouse' or 'John went to the office' but not both.,0,Either 'Jessica is a mouse' or 'John went to the office' but not both. We doubt that Yann is tired. There is almost no chance that Emily is a cat. There is almost no chance that Lily is a rhino. There is little chance that if 'Emily is a cat and Lily is a rhino' then Bernhard is white. It is highly unlikely that if 'Yann is tired and Lily is a rhino' then Jessica is a sheep. It is probable that if either 'Lily is a rhino' or 'Yann is tired' but not both then Daniel dropped the apple.,We doubt that 'Lily is a rhino' or 'Daniel dropped the apple' or both.," 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.02::factB. 0.02::factC. %hop1 0.1::factX:-and(factB,factC). 0.05::factY:-and(factA,factC). 0.7::factZ:-xor(factC,factA). %hop2 conclusion:-or(factC,factZ). query(conclusion). ",0.15719999999999998,0.9253850770154031,test,we doubt,very good chance,We doubt that 'Lily is a rhino' or 'Daniel dropped the apple' or both.,There is a very good chance that 'Lily is a rhino' or 'Daniel dropped the apple' or both.,1,'Lily is a rhino' or 'Daniel dropped the apple' or both. It is probably not the case that Mary left the football. It is probably not the case that Greg is a rhino. It is highly unlikely that Jessica is a cat. There is a very good chance that if either 'Mary left the football' or 'Greg is a rhino' but not both then Brian is a frog. There is almost no chance that if 'Greg is a rhino' or 'Jessica is a cat' or both then John got the apple. There is a better than even chance that if 'Mary left the football and Jessica is a cat' then Bernhard is a swan.,There is almost no chance that 'Mary left the football and Jessica 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.25::factA. 0.25::factB. 0.05::factC. %hop1 0.8::factX:-xor(factA,factB). 0.02::factY:-or(factB,factC). 0.6::factZ:-and(factA,factC). %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.012500000000000006,0.9455891178235647,test,almost no chance,we believe,There is almost no chance that 'Mary left the football and Jessica is a cat'.,We believe that 'Mary left the football and Jessica is a cat'.,1,'Mary left the football and Jessica is a cat'. There is a better than even chance that Bernhard is green. We believe that Mary went to the kitchen. It is probable that Lily is a swan. We believe that if 'Mary went to the kitchen' or 'Lily is a swan' or both then Brian is a lion. There is little chance that if either 'Lily is a swan' or 'Bernhard is green' but not both then John took the football. There is a better than even chance that if 'Bernhard is green' or 'Mary went to the kitchen' or both then Jessica is a mouse.,It is impossible that either 'Mary went to the kitchen' or 'Lily is a swan' but not both.," 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.75::factB. 0.7::factC. %hop1 0.75::factX:-or(factB,factC). 0.1::factY:-xor(factC,factA). 0.6::factZ:-or(factA,factB). %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.4,0.9807961592318464,test,about even,impossible,Chances are about even that either 'Mary went to the kitchen' or 'Lily is a swan' but not both.,It is impossible that either 'Mary went to the kitchen' or 'Lily is a swan' but not both.,0,Either 'Mary went to the kitchen' or 'Lily is a swan' but not both. It is improbable that John moved to the office. It is probably not the case that Bernhard is white. It is probably not the case that Lily is a frog. Chances are about even that if either 'John moved to the office' or 'Bernhard is white' but not both then Greg is yellow. There is a better than even chance that if 'John moved to the office and Bernhard is white' then Julius is a swan. It is probably the case that if 'Lily is a frog' or 'Bernhard is white' or both then Mary went to the hallway.,It is probably the case that either 'Julius is a swan' or 'Greg is yellow' but not both.," 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.25::factB. 0.25::factC. %hop1 0.5::factX:-xor(factA,factB). 0.6::factY:-and(factA,factB). 0.7::factZ:-or(factC,factB). %hop2 conclusion:-xor(factY,factX). query(conclusion). ",0.16500000000000004,0.9279855971194239,test,we doubt,probably,We doubt that either 'Julius is a swan' or 'Greg is yellow' but not both.,It is probably the case that either 'Julius is a swan' or 'Greg is yellow' but not both.,0,Either 'Julius is a swan' or 'Greg is yellow' but not both. It is unlikely that Winona is a wolf. We doubt that Sandra dropped the apple. There is little chance that Brian is a frog. There is a better than even chance that if either 'Sandra dropped the apple' or 'Brian is a frog' but not both then Daniel got the football. There is a very good chance that if either 'Brian is a frog' or 'Sandra dropped the apple' but not both then John is in the garden. It is certain that if 'Sandra dropped the apple and Brian is a frog' then Bill moved to the office.,It is certain that 'Sandra dropped the apple and John is in the garden'.," 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.2::factB. 0.1::factC. %hop1 0.6::factX:-xor(factB,factC). 0.8::factY:-xor(factC,factB). 1.0::factZ:-and(factB,factC). %hop2 conclusion:-and(factB,factY). query(conclusion). ",0.14400000000000002,0.9389877975595119,test,chances are slight,certain,Chances are slight that 'Sandra dropped the apple and John is in the garden'.,It is certain that 'Sandra dropped the apple and John is in the garden'.,0,'Sandra dropped the apple and John is in the garden'. There is almost no chance that Julius is white. There is almost no chance that Bernhard is a swan. It is likely that Brian is a rhino. It is probably the case that if either 'Bernhard is a swan' or 'Julius is white' but not both then Winona is a wolf. It is probably not the case that if either 'Bernhard is a swan' or 'Julius is white' but not both then John went to the garden. It is probably the case that if 'Bernhard is a swan' or 'Brian is a rhino' or both then Fred dropped the milk.,Chances are about even that 'Fred dropped the milk' or 'Winona is a wolf' or both.," 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.02::factA. 0.02::factB. 0.7::factC. %hop1 0.7::factX:-xor(factB,factA). 0.25::factY:-xor(factB,factA). 0.7::factZ:-or(factB,factC). %hop2 conclusion:-or(factZ,factX). query(conclusion). ",0.5053131999999999,0.9177835567113423,test,about even,almost certain,Chances are about even that 'Fred dropped the milk' or 'Winona is a wolf' or both.,It is almost certain that 'Fred dropped the milk' or 'Winona is a wolf' or both.,1,'Fred dropped the milk' or 'Winona is a wolf' or both. It is probable that Greg is a swan. There is a very good chance that John picked up the apple. We doubt that Mary went to the kitchen. Chances are about even that if 'John picked up the apple and Mary went to the kitchen' then Yann is tired. It is improbable that if 'John picked up the apple and Greg is a swan' then Brian is yellow. It is impossible that if 'Mary went to the kitchen and John picked up the apple' then Lily is white.,It is likely that 'Yann is tired and Mary went to the kitchen'.," 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.7::factA. 0.8::factB. 0.2::factC. %hop1 0.5::factX:-and(factB,factC). 0.1::factY:-and(factB,factA). 0.0::factZ:-and(factC,factB). %hop2 conclusion:-and(factX,factC). query(conclusion). ",0.08000000000000002,0.9763952790558111,test,little chance,likely,There is little chance that 'Yann is tired and Mary went to the kitchen'.,It is likely that 'Yann is tired and Mary went to the kitchen'.,0,'Yann is tired and Mary went to the kitchen'. It is highly likely that John went to the office. We doubt that Antoine is thirsty. It is highly likely that Mary moved to the garden. There is little chance that if 'John went to the office' or 'Mary moved to the garden' or both then Lily is white. There is a very good chance that if 'Antoine is thirsty' or 'Mary moved to the garden' or both then Julius is a rhino. It is unlikely that if 'Mary moved to the garden' or 'Antoine is thirsty' or both then Bernhard is a swan.,It is almost certain that 'Antoine is thirsty' or 'Bernhard is a swan' or both.," 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.2::factB. 0.9::factC. %hop1 0.1::factX:-or(factA,factC). 0.8::factY:-or(factB,factC). 0.2::factZ:-or(factC,factB). %hop2 conclusion:-or(factB,factZ). query(conclusion). ",0.34400000000000003,0.9593918783756752,test,probably not,almost certain,It is probably not the case that 'Antoine is thirsty' or 'Bernhard is a swan' or both.,It is almost certain that 'Antoine is thirsty' or 'Bernhard is a swan' or both.,0,'Antoine is thirsty' or 'Bernhard is a swan' or both. It is certain that John got the milk. There is almost no chance that Mary left the football. It is certain that Brian is green. It is almost certain that if either 'John got the milk' or 'Brian is green' but not both then Lily is a swan. There is little chance that if 'Brian is green and John got the milk' then Greg is a frog. We believe that if 'Mary left the football and Brian is green' then Julius is white.,It is probably the case that 'Mary left the football and Greg is a frog'.," 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 1.0::factA. 0.02::factB. 1.0::factC. %hop1 0.95::factX:-xor(factA,factC). 0.1::factY:-and(factC,factA). 0.75::factZ:-and(factB,factC). %hop2 conclusion:-and(factB,factY). query(conclusion). ",0.0020000000000000005,0.9757951590318064,test,impossible,probably,It is impossible that 'Mary left the football and Greg is a frog'.,It is probably the case that 'Mary left the football and Greg is a frog'.,0,'Mary left the football and Greg is a frog'. We believe that Mary grabbed the milk. It is probably not the case that Emily is a sheep. There is little chance that Greg is yellow. Chances are about even that if either 'Emily is a sheep' or 'Mary grabbed the milk' but not both then Lily is a rhino. It is unlikely that if 'Emily is a sheep' or 'Greg is yellow' or both then Sumit is hungry. It is probably not the case that if either 'Greg is yellow' or 'Mary grabbed the milk' but not both then Julius is a frog.,It is highly unlikely that 'Julius is a frog 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.75::factA. 0.25::factB. 0.1::factC. %hop1 0.5::factX:-xor(factB,factA). 0.2::factY:-or(factB,factC). 0.25::factZ:-xor(factC,factA). %hop2 conclusion:-and(factZ,factB). query(conclusion). ",0.043750000000000004,0.9677935587117423,test,highly unlikely,better than even,It is highly unlikely that 'Julius is a frog and Emily is a sheep'.,There is a better than even chance that 'Julius is a frog and Emily is a sheep'.,1,'Julius is a frog and Emily is a sheep'. It is almost certain that John put down the apple. It is unlikely that Julius is a frog. We believe that Brian is yellow. Chances are slight that if 'Julius is a frog and John put down the apple' then Winona is a wolf. It is highly likely that if 'Brian is yellow' or 'Julius is a frog' or both then Bernhard is a lion. It is improbable that if 'Julius is a frog' or 'Brian is yellow' or both then Mary took the milk.,There is little chance that either 'Mary took the milk' or 'Winona is a wolf' but not both.," 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.95::factA. 0.2::factB. 0.75::factC. %hop1 0.1::factX:-and(factB,factA). 0.9::factY:-or(factC,factB). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-xor(factZ,factX). query(conclusion). ",0.0952,0.968993798759752,test,little chance,we believe,There is little chance that either 'Mary took the milk' or 'Winona is a wolf' but not both.,We believe that either 'Mary took the milk' or 'Winona is a wolf' but not both.,1,Either 'Mary took the milk' or 'Winona is a wolf' but not both. It is highly unlikely that Sandra left the milk. It is highly likely that John got the apple. It is unlikely that Greg is white. It is unlikely that if 'Sandra left the milk and Greg is white' then Mary took the milk. We doubt that if 'Greg is white' or 'John got the apple' or both then Julius is a swan. Chances are about even that if either 'Greg is white' or 'Sandra left the milk' but not both then Brian is a lion.,It is likely that 'Mary took the milk' or 'Greg is white' or both.," 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.9::factB. 0.2::factC. %hop1 0.2::factX:-and(factA,factC). 0.2::factY:-or(factC,factB). 0.5::factZ:-xor(factC,factA). %hop2 conclusion:-or(factX,factC). query(conclusion). ",0.2,0.9003800760152031,test,unlikely,likely,It is unlikely that 'Mary took the milk' or 'Greg is white' or both.,It is likely that 'Mary took the milk' or 'Greg is white' or both.,0,'Mary took the milk' or 'Greg is white' or both. Chances are slight that Jeff moved to the garden. There is almost no chance that John put down the apple. It is impossible that Greg is white. It is probably the case that if either 'John put down the apple' or 'Jeff moved to the garden' but not both then Fred went to the office. There is a better than even chance that if 'John put down the apple' or 'Jeff moved to the garden' or both then Bernhard is a lion. It is probable that if 'Jeff moved to the garden' or 'Greg is white' or both then Lily is a rhino.,Chances are slight that 'Fred went to the office' or 'Greg is white' or both.," 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.02::factB. 0.0::factC. %hop1 0.7::factX:-xor(factB,factA). 0.6::factY:-or(factB,factA). 0.7::factZ:-or(factA,factC). %hop2 conclusion:-or(factX,factC). query(conclusion). ",0.0812,0.9343868773754751,test,chances are slight,likely,Chances are slight that 'Fred went to the office' or 'Greg is white' or both.,It is likely that 'Fred went to the office' or 'Greg is white' or both.,1,'Fred went to the office' or 'Greg is white' or both. Chances are slight that Julius is gray. There is almost no chance that Fred went to the garden. It is probably the case that Yann is bored. It is unlikely that if either 'Julius is gray' or 'Fred went to the garden' but not both then Bernhard is a swan. It is almost certain that if 'Julius is gray and Yann is bored' then Brian is green. It is probable that if 'Julius is gray' or 'Yann is bored' or both then John dropped the apple.,It is almost certain that 'John dropped the apple and Yann is bored'.," 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.02::factB. 0.7::factC. %hop1 0.2::factX:-xor(factA,factB). 0.95::factY:-and(factA,factC). 0.7::factZ:-or(factA,factC). %hop2 conclusion:-and(factZ,factC). query(conclusion). ",0.48999999999999994,0.9323864772954591,test,about even,almost certain,Chances are about even that 'John dropped the apple and Yann is bored'.,It is almost certain that 'John dropped the apple and Yann is bored'.,0,'John dropped the apple and Yann is bored'. There is almost no chance that Greg is gray. We believe that Lily is yellow. There is a very good chance that Brian is a frog. It is likely that if either 'Brian is a frog' or 'Lily is yellow' but not both then Mary took the milk. It is almost certain that if 'Greg is gray' or 'Brian is a frog' or both then Emily is a sheep. It is improbable that if 'Greg is gray' or 'Brian is a frog' or both then Bill left the football.,It is almost certain that 'Lily is yellow' or 'Emily is a sheep' or both.," 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.02::factA. 0.75::factB. 0.8::factC. %hop1 0.7::factX:-xor(factC,factB). 0.95::factY:-or(factA,factC). 0.1::factZ:-or(factA,factC). %hop2 conclusion:-or(factB,factY). query(conclusion). ",0.9409500000000001,0.9535907181436287,test,almost certain,almost no chance,It is almost certain that 'Lily is yellow' or 'Emily is a sheep' or both.,There is almost no chance that 'Lily is yellow' or 'Emily is a sheep' or both.,1,'Lily is yellow' or 'Emily is a sheep' or both. There is a very good chance that Gertrude is a sheep. It is likely that Lily is a lion. Chances are slight that Bernhard is green. Chances are slight that if 'Bernhard is green' or 'Gertrude is a sheep' or both then John dropped the apple. There is almost no chance that if either 'Gertrude is a sheep' or 'Lily is a lion' but not both then Greg is a rhino. It is highly likely that if either 'Lily is a lion' or 'Bernhard is green' but not both then Brian is a lion.,There is almost no chance that 'Gertrude is a sheep' or 'Brian is a lion' or both.," 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.8::factA. 0.7::factB. 0.1::factC. %hop1 0.1::factX:-or(factC,factA). 0.02::factY:-xor(factA,factB). 0.9::factZ:-xor(factB,factC). %hop2 conclusion:-or(factA,factZ). query(conclusion). ",0.9188,0.9471894378875775,test,highly likely,almost no chance,It is highly likely that 'Gertrude is a sheep' or 'Brian is a lion' or both.,There is almost no chance that 'Gertrude is a sheep' or 'Brian is a lion' or both.,0,'Gertrude is a sheep' or 'Brian is a lion' or both. It is highly unlikely that Gertrude is a mouse. It is highly unlikely that Fred went to the garden. It is probably not the case that Winona is a sheep. We believe that if either 'Winona is a sheep' or 'Fred went to the garden' but not both then Lily is a lion. It is probable that if 'Winona is a sheep and Gertrude is a mouse' then Mary moved to the office. We doubt that if 'Winona is a sheep' or 'Gertrude is a mouse' or both then Greg is white.,It is probably not the case that 'Winona is a sheep' or 'Lily is a lion' or both.," 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.25::factC. %hop1 0.75::factX:-xor(factC,factB). 0.7::factY:-and(factC,factA). 0.2::factZ:-or(factC,factA). %hop2 conclusion:-or(factC,factX). query(conclusion). ",0.278125,0.9241848369673935,test,probably not,probable,It is probably not the case that 'Winona is a sheep' or 'Lily is a lion' or both.,It is probable that 'Winona is a sheep' or 'Lily is a lion' or both.,1,'Winona is a sheep' or 'Lily is a lion' or both. It is improbable that Sumit is thirsty. It is unlikely that Mary left the football. It is highly unlikely that Lily is a lion. There is a very good chance that if 'Lily is a lion' or 'Sumit is thirsty' or both then Sandra dropped the milk. Chances are slight that if 'Mary left the football' or 'Lily is a lion' or both then John grabbed the apple. We believe that if 'Sumit is thirsty' or 'Mary left the football' or both then Bernhard is yellow.,There is a very good chance that either 'Mary left the football' or 'Bernhard is yellow' but not both.," 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.05::factC. %hop1 0.8::factX:-or(factC,factA). 0.1::factY:-or(factB,factC). 0.75::factZ:-or(factA,factB). %hop2 conclusion:-xor(factB,factZ). query(conclusion). ",0.11000000000000007,0.9355871174234847,test,improbable,very good chance,It is improbable that either 'Mary left the football' or 'Bernhard is yellow' but not both.,There is a very good chance that either 'Mary left the football' or 'Bernhard is yellow' but not both.,0,Either 'Mary left the football' or 'Bernhard is yellow' but not both. It is certain that Greg is white. It is impossible that Brian is yellow. It is probable that Lily is a lion. It is probably not the case that if 'Lily is a lion' or 'Brian is yellow' or both then Jessica is a wolf. It is certain that if 'Greg is white' or 'Brian is yellow' or both then John got the milk. It is probably not the case that if 'Lily is a lion' or 'Brian is yellow' or both then Bernhard is a swan.,There is a very good chance that either 'Jessica is a wolf' or 'John got the milk' but not both.," 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 1.0::factA. 0.0::factB. 0.7::factC. %hop1 0.25::factX:-or(factC,factB). 1.0::factY:-or(factA,factB). 0.25::factZ:-or(factC,factB). %hop2 conclusion:-xor(factX,factY). query(conclusion). ",0.8250000000000001,0.9871974394878976,test,very good chance,improbable,There is a very good chance that either 'Jessica is a wolf' or 'John got the milk' but not both.,It is improbable that either 'Jessica is a wolf' or 'John got the milk' but not both.,1,Either 'Jessica is a wolf' or 'John got the milk' but not both. It is highly likely that Lily is a rhino. Chances are slight that Winona is a sheep. It is highly unlikely that John went to the office. It is probably not the case that if either 'Lily is a rhino' or 'Winona is a sheep' but not both then Bernhard is a frog. It is unlikely that if 'Lily is a rhino' or 'Winona is a sheep' or both then Brian is a lion. It is likely that if either 'John went to the office' or 'Winona is a sheep' but not both then Mary left the milk.,It is highly likely that 'Brian is a lion' or 'Mary left the milk' or both.," 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.1::factB. 0.05::factC. %hop1 0.25::factX:-xor(factA,factB). 0.2::factY:-or(factA,factB). 0.7::factZ:-xor(factC,factB). %hop2 conclusion:-or(factY,factZ). query(conclusion). ",0.26103000000000004,0.9517903580716143,test,probably not,highly likely,It is probably not the case that 'Brian is a lion' or 'Mary left the milk' or both.,It is highly likely that 'Brian is a lion' or 'Mary left the milk' or both.,0,'Brian is a lion' or 'Mary left the milk' or both. It is probably the case that John grabbed the milk. There is little chance that Lily is a swan. Chances are slight that Mary dropped the apple. We doubt that if 'Mary dropped the apple' or 'John grabbed the milk' or both then Antoine is hungry. There is almost no chance that if 'Lily is a swan' or 'Mary dropped the apple' or both then Jeff went to the bedroom. It is certain that if 'Mary dropped the apple' or 'John grabbed the milk' or both then Brian is a frog.,There is almost no chance that 'Mary dropped the apple and Antoine is hungry'.," 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.7::factA. 0.1::factB. 0.1::factC. %hop1 0.2::factX:-or(factC,factA). 0.02::factY:-or(factB,factC). 1.0::factZ:-or(factC,factA). %hop2 conclusion:-and(factC,factX). query(conclusion). ",0.02000000000000001,0.9139827965593119,test,almost no chance,we believe,There is almost no chance that 'Mary dropped the apple and Antoine is hungry'.,We believe that 'Mary dropped the apple and Antoine is hungry'.,1,'Mary dropped the apple and Antoine is hungry'. It is impossible that Gertrude is a sheep. It is almost certain that Antoine is hungry. It is almost certain that Julius is a frog. It is unlikely that if 'Gertrude is a sheep' or 'Julius is a frog' or both then Greg is white. It is probable that if either 'Gertrude is a sheep' or 'Julius is a frog' but not both then John discarded the apple. It is highly likely that if either 'Gertrude is a sheep' or 'Antoine is hungry' but not both then Brian is yellow.,We believe that either 'Greg is white' or 'Julius is a frog' but not both.," 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.0::factA. 0.95::factB. 0.95::factC. %hop1 0.2::factX:-or(factA,factC). 0.7::factY:-xor(factA,factC). 0.9::factZ:-xor(factA,factB). %hop2 conclusion:-xor(factX,factC). query(conclusion). ",0.7599999999999999,0.9841968393678736,test,we believe,improbable,We believe that either 'Greg is white' or 'Julius is a frog' but not both.,It is improbable that either 'Greg is white' or 'Julius is a frog' but not both.,1,Either 'Greg is white' or 'Julius is a frog' but not both. It is impossible that Brian is yellow. It is certain that John dropped the milk. There is a very good chance that Winona is a sheep. There is almost no chance that if 'Brian is yellow and John dropped the milk' then Jeff left the apple. It is highly likely that if 'Winona is a sheep and Brian is yellow' then Greg is a swan. There is a very good chance that if 'Winona is a sheep and Brian is yellow' then Bernhard is a frog.,It is certain that either 'John dropped the milk' or 'Bernhard is a frog' but not both.," 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.0::factA. 1.0::factB. 0.8::factC. %hop1 0.02::factX:-and(factA,factB). 0.9::factY:-and(factC,factA). 0.8::factZ:-and(factC,factA). %hop2 conclusion:-xor(factB,factZ). query(conclusion). ",1.0,0.9377875575115023,test,certain,we doubt,It is certain that either 'John dropped the milk' or 'Bernhard is a frog' but not both.,We doubt that either 'John dropped the milk' or 'Bernhard is a frog' but not both.,1,Either 'John dropped the milk' or 'Bernhard is a frog' but not both. We doubt that Julius is gray. It is improbable that Jeff dropped the apple. It is probably the case that Bernhard is a rhino. It is probably the case that if either 'Bernhard is a rhino' or 'Julius is gray' but not both then John discarded the milk. Chances are slight that if either 'Jeff dropped the apple' or 'Julius is gray' but not both then Mary went to the bedroom. It is highly unlikely that if 'Jeff dropped the apple and Bernhard is a rhino' then Lily is a swan.,We believe that 'Bernhard is a rhino' or 'Julius is gray' or both.," 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.1::factB. 0.7::factC. %hop1 0.7::factX:-xor(factC,factA). 0.1::factY:-xor(factB,factA). 0.05::factZ:-and(factB,factC). %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.7599999999999999,0.971994398879776,test,we believe,we doubt,We believe that 'Bernhard is a rhino' or 'Julius is gray' or both.,We doubt that 'Bernhard is a rhino' or 'Julius is gray' or both.,1,'Bernhard is a rhino' or 'Julius is gray' or both. We doubt that Mary went to the garden. We believe that Brian is a rhino. It is unlikely that Bernhard is a lion. It is improbable that if 'Bernhard is a lion' or 'Mary went to the garden' or both then Lily is a swan. There is little chance that if either 'Bernhard is a lion' or 'Brian is a rhino' but not both then Gertrude is a cat. It is improbable that if 'Brian is a rhino' or 'Mary went to the garden' or both then John took the apple.,We believe that 'John took the apple' or 'Brian is a rhino' or both.," 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.75::factB. 0.2::factC. %hop1 0.1::factX:-or(factC,factA). 0.1::factY:-xor(factC,factB). 0.1::factZ:-or(factB,factA). %hop2 conclusion:-or(factZ,factB). query(conclusion). ",0.755,0.9427885577115424,test,we believe,probably not,We believe that 'John took the apple' or 'Brian is a rhino' or both.,It is probably not the case that 'John took the apple' or 'Brian is a rhino' or both.,1,'John took the apple' or 'Brian is a rhino' or both. It is probably not the case that Julius is a lion. It is certain that Bill went to the garden. It is highly unlikely that John put down the apple. It is highly unlikely that if 'John put down the apple and Bill went to the garden' then Bernhard is a rhino. It is probably the case that if 'Julius is a lion and John put down the apple' then Sandra took the football. We believe that if 'Julius is a lion' or 'Bill went to the garden' or both then Brian is a frog.,It is certain that 'Sandra took the football and John put down the apple'.," 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.25::factA. 1.0::factB. 0.05::factC. %hop1 0.05::factX:-and(factC,factB). 0.7::factY:-and(factA,factC). 0.75::factZ:-or(factA,factB). %hop2 conclusion:-and(factY,factC). query(conclusion). ",0.008750000000000003,0.993998799759952,test,impossible,certain,It is impossible that 'Sandra took the football and John put down the apple'.,It is certain that 'Sandra took the football and John put down the apple'.,0,'Sandra took the football and John put down the apple'. Chances are slight that Emily is a mouse. It is likely that John took the apple. Chances are slight that Julius is yellow. There is a better than even chance that if 'Julius is yellow and John took the apple' then Lily is a rhino. It is highly likely that if either 'John took the apple' or 'Julius is yellow' but not both then Mary went to the kitchen. It is probable that if 'John took the apple' or 'Emily is a mouse' or both then Brian is a frog.,It is highly likely that 'Lily is a rhino and Julius is yellow'.," 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.7::factB. 0.1::factC. %hop1 0.6::factX:-and(factC,factB). 0.9::factY:-xor(factB,factC). 0.7::factZ:-or(factB,factA). %hop2 conclusion:-and(factX,factC). query(conclusion). ",0.041999999999999996,0.9687937587517503,test,highly unlikely,highly likely,It is highly unlikely that 'Lily is a rhino and Julius is yellow'.,It is highly likely that 'Lily is a rhino and Julius is yellow'.,0,'Lily is a rhino and Julius is yellow'. We doubt that Greg is a lion. We doubt that Brian is a rhino. It is probably not the case that John discarded the milk. We doubt that if 'John discarded the milk and Greg is a lion' then Mary moved to the office. It is improbable that if either 'John discarded the milk' or 'Greg is a lion' but not both then Winona is a wolf. It is unlikely that if 'Brian is a rhino' or 'John discarded the milk' or both then Bernhard is white.,We doubt that either 'Mary moved to the office' or 'Greg is a lion' but not both.," 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.2::factB. 0.25::factC. %hop1 0.2::factX:-and(factC,factA). 0.1::factY:-xor(factC,factA). 0.2::factZ:-or(factB,factC). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.19,0.9497899579915984,test,we doubt,almost certain,We doubt that either 'Mary moved to the office' or 'Greg is a lion' but not both.,It is almost certain that either 'Mary moved to the office' or 'Greg is a lion' but not both.,1,Either 'Mary moved to the office' or 'Greg is a lion' but not both. Chances are about even that Julius is white. Chances are about even that Brian is a rhino. It is certain that Lily is a lion. There is almost no chance that if 'Julius is white and Brian is a rhino' then Jeff left the apple. Chances are about even that if either 'Lily is a lion' or 'Julius is white' but not both then Mary went to the kitchen. Chances are slight that if 'Lily is a lion and Julius is white' then Bernhard is a swan.,We believe that either 'Mary went to the kitchen' or 'Lily is a lion' but not both.," 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.5::factA. 0.5::factB. 1.0::factC. %hop1 0.02::factX:-and(factA,factB). 0.5::factY:-xor(factC,factA). 0.1::factZ:-and(factC,factA). %hop2 conclusion:-xor(factY,factC). query(conclusion). ",0.75,0.9631926385277055,test,we believe,we doubt,We believe that either 'Mary went to the kitchen' or 'Lily is a lion' but not both.,We doubt that either 'Mary went to the kitchen' or 'Lily is a lion' but not both.,1,Either 'Mary went to the kitchen' or 'Lily is a lion' but not both. It is improbable that Greg is yellow. There is a better than even chance that Brian is a rhino. It is improbable that Mary dropped the milk. It is almost certain that if either 'Mary dropped the milk' or 'Greg is yellow' but not both then Fred went to the garden. We doubt that if 'Mary dropped the milk and Greg is yellow' then Bernhard is gray. It is likely that if 'Brian is a rhino' or 'Mary dropped the milk' or both then Daniel grabbed the apple.,Chances are about even that 'Bernhard is gray and Greg is yellow'.," 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.6::factB. 0.1::factC. %hop1 0.95::factX:-xor(factC,factA). 0.2::factY:-and(factC,factA). 0.7::factZ:-or(factB,factC). %hop2 conclusion:-and(factY,factA). query(conclusion). ",0.0020000000000000005,0.95999199839968,test,impossible,about even,It is impossible that 'Bernhard is gray and Greg is yellow'.,Chances are about even that 'Bernhard is gray and Greg is yellow'.,0,'Bernhard is gray and Greg is yellow'. Chances are about even that Brian is a swan. We believe that John went to the garden. Chances are about even that Greg is green. It is improbable that if either 'Greg is green' or 'Brian is a swan' but not both then Gertrude is a mouse. It is likely that if 'Brian is a swan' or 'John went to the garden' or both then Mary dropped the milk. It is improbable that if 'Greg is green' or 'Brian is a swan' or both then Julius is a rhino.,Chances are about even that 'Julius is a rhino and Gertrude is a mouse'.," 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.5::factA. 0.75::factB. 0.5::factC. %hop1 0.1::factX:-xor(factC,factA). 0.7::factY:-or(factA,factB). 0.1::factZ:-or(factC,factA). %hop2 conclusion:-and(factZ,factX). query(conclusion). ",0.005000000000000002,0.987997599519904,test,impossible,about even,It is impossible that 'Julius is a rhino and Gertrude is a mouse'.,Chances are about even that 'Julius is a rhino and Gertrude is a mouse'.,0,'Julius is a rhino and Gertrude is a mouse'. It is unlikely that Gertrude is a sheep. We doubt that Lily is a swan. It is probably the case that John went to the office. It is probable that if 'Gertrude is a sheep and John went to the office' then Fred left the football. It is probably the case that if 'Gertrude is a sheep and Lily is a swan' then Greg is green. We doubt that if either 'John went to the office' or 'Lily is a swan' but not both then Mary moved to the garden.,There is a very good chance that either 'Lily is a swan' or 'Fred left the football' but not both.," 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.2::factB. 0.7::factC. %hop1 0.7::factX:-and(factA,factC). 0.7::factY:-and(factA,factB). 0.2::factZ:-xor(factC,factB). %hop2 conclusion:-xor(factB,factX). query(conclusion). ",0.2588,0.915383076615323,test,probably not,very good chance,It is probably not the case that either 'Lily is a swan' or 'Fred left the football' but not both.,There is a very good chance that either 'Lily is a swan' or 'Fred left the football' but not both.,0,Either 'Lily is a swan' or 'Fred left the football' but not both. It is improbable that Sandra left the milk. There is little chance that Julius is a lion. We believe that Brian is a rhino. Chances are slight that if 'Brian is a rhino and Julius is a lion' then Greg is yellow. We doubt that if 'Sandra left the milk and Julius is a lion' then Mary went to the hallway. It is highly likely that if 'Sandra left the milk' or 'Brian is a rhino' or both then Bill moved to the office.,It is impossible that 'Sandra left the milk and Mary went to the hallway'.," 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.1::factB. 0.75::factC. %hop1 0.1::factX:-and(factC,factB). 0.2::factY:-and(factA,factB). 0.9::factZ:-or(factA,factC). %hop2 conclusion:-and(factA,factY). query(conclusion). ",0.0020000000000000005,0.9581916383276655,test,impossible,certain,It is impossible that 'Sandra left the milk and Mary went to the hallway'.,It is certain that 'Sandra left the milk and Mary went to the hallway'.,1,'Sandra left the milk and Mary went to the hallway'. We believe that Bernhard is yellow. We believe that Emily is a wolf. It is improbable that Julius is white. It is unlikely that if 'Emily is a wolf and Bernhard is yellow' then Greg is a rhino. It is highly likely that if 'Emily is a wolf' or 'Julius is white' or both then Mary dropped the apple. It is probable that if either 'Bernhard is yellow' or 'Emily is a wolf' but not both then John went to the garden.,It is improbable that 'Emily is a wolf and Greg 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.75::factA. 0.75::factB. 0.1::factC. %hop1 0.2::factX:-and(factB,factA). 0.9::factY:-or(factB,factC). 0.7::factZ:-xor(factA,factB). %hop2 conclusion:-and(factB,factX). query(conclusion). ",0.11250000000000002,0.9337867573514703,test,improbable,almost certain,It is improbable that 'Emily is a wolf and Greg is a rhino'.,It is almost certain that 'Emily is a wolf and Greg is a rhino'.,1,'Emily is a wolf and Greg is a rhino'. Chances are about even that Yann is tired. It is unlikely that Greg is green. We doubt that Lily is a rhino. There is a very good chance that if either 'Greg is green' or 'Yann is tired' but not both then Bernhard is a swan. It is almost certain that if either 'Greg is green' or 'Lily is a rhino' but not both then Mary grabbed the milk. There is little chance that if 'Yann is tired' or 'Greg is green' or both then Brian is yellow.,It is certain that 'Brian is yellow' or 'Yann is tired' or both.," 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.5::factA. 0.2::factB. 0.2::factC. %hop1 0.8::factX:-xor(factB,factA). 0.95::factY:-xor(factB,factC). 0.1::factZ:-or(factA,factB). %hop2 conclusion:-or(factZ,factA). query(conclusion). ",0.51,0.9967993598719744,test,about even,certain,Chances are about even that 'Brian is yellow' or 'Yann is tired' or both.,It is certain that 'Brian is yellow' or 'Yann is tired' or both.,0,'Brian is yellow' or 'Yann is tired' or both. It is likely that Greg is a swan. It is unlikely that John went to the bedroom. It is likely that Brian is a rhino. There is little chance that if 'Brian is a rhino' or 'Greg is a swan' or both then Julius is a frog. There is almost no chance that if either 'Greg is a swan' or 'John went to the bedroom' but not both then Sandra is in the kitchen. It is highly unlikely that if 'John went to the bedroom and Greg is a swan' then Mary dropped the apple.,It is probable that 'John went to the bedroom and Julius is a frog'.," 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.7::factA. 0.2::factB. 0.7::factC. %hop1 0.1::factX:-or(factC,factA). 0.02::factY:-xor(factA,factB). 0.05::factZ:-and(factB,factA). %hop2 conclusion:-and(factB,factX). query(conclusion). ",0.01820000000000001,0.9641928385677135,test,almost no chance,probable,There is almost no chance that 'John went to the bedroom and Julius is a frog'.,It is probable that 'John went to the bedroom and Julius is a frog'.,0,'John went to the bedroom and Julius is a frog'. It is highly likely that Mary got the football. It is probably the case that Winona is a mouse. It is almost certain that Julius is gray. We believe that if either 'Julius is gray' or 'Winona is a mouse' but not both then Lily is yellow. It is probable that if 'Winona is a mouse and Julius is gray' then Bernhard is green. It is probably the case that if either 'Winona is a mouse' or 'Julius is gray' but not both then Brian is a rhino.,It is likely that either 'Lily is yellow' or 'Bernhard is green' but not both.," 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.95::factC. %hop1 0.75::factX:-xor(factC,factB). 0.7::factY:-and(factB,factC). 0.7::factZ:-xor(factB,factC). %hop2 conclusion:-xor(factX,factY). query(conclusion). ",0.7055,0.9665933186637328,test,likely,little chance,It is likely that either 'Lily is yellow' or 'Bernhard is green' but not both.,There is little chance that either 'Lily is yellow' or 'Bernhard is green' but not both.,1,Either 'Lily is yellow' or 'Bernhard is green' but not both. It is impossible that Daniel grabbed the milk. There is a better than even chance that Mary went to the hallway. There is a better than even chance that Brian is gray. We believe that if either 'Brian is gray' or 'Mary went to the hallway' but not both then Bernhard is a frog. It is highly unlikely that if 'Mary went to the hallway and Daniel grabbed the milk' then Greg is yellow. It is probably not the case that if either 'Daniel grabbed the milk' or 'Brian is gray' but not both then Jason is tired.,There is a very good chance that 'Brian is gray' or 'Mary went to the hallway' or both.," 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.0::factA. 0.6::factB. 0.6::factC. %hop1 0.75::factX:-xor(factC,factB). 0.05::factY:-and(factB,factA). 0.25::factZ:-xor(factA,factC). %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.8400000000000001,0.9829965993198639,test,very good chance,we doubt,There is a very good chance that 'Brian is gray' or 'Mary went to the hallway' or both.,We doubt that 'Brian is gray' or 'Mary went to the hallway' or both.,1,'Brian is gray' or 'Mary went to the hallway' or both. There is little chance that Lily is a rhino. There is a better than even chance that Brian is a frog. It is certain that Mary dropped the milk. There is a better than even chance that if 'Mary dropped the milk and Lily is a rhino' then Julius is white. It is likely that if 'Brian is a frog' or 'Mary dropped the milk' or both then Bernhard is white. Chances are about even that if either 'Lily is a rhino' or 'Mary dropped the milk' but not both then John moved to the office.,It is probably not the case that 'Brian is a frog and John moved to the office'.," 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.6::factB. 1.0::factC. %hop1 0.6::factX:-and(factC,factA). 0.7::factY:-or(factB,factC). 0.5::factZ:-xor(factA,factC). %hop2 conclusion:-and(factB,factZ). query(conclusion). ",0.27,0.9907981596319264,test,probably not,we believe,It is probably not the case that 'Brian is a frog and John moved to the office'.,We believe that 'Brian is a frog and John moved to the office'.,1,'Brian is a frog and John moved to the office'. It is highly unlikely that Mary left the football. Chances are about even that Bernhard is green. Chances are slight that Lily is white. There is little chance that if 'Lily is white' or 'Mary left the football' or both then Julius is gray. It is highly likely that if 'Bernhard is green' or 'Mary left the football' or both then John got the apple. It is highly unlikely that if 'Lily is white' or 'Mary left the football' or both then Greg is a rhino.,It is almost certain that 'Lily is white' or 'Julius is gray' or both.," 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.5::factB. 0.1::factC. %hop1 0.1::factX:-or(factC,factA). 0.9::factY:-or(factB,factA). 0.05::factZ:-or(factC,factA). %hop2 conclusion:-or(factC,factX). query(conclusion). ",0.10450000000000001,0.9803960792158432,test,chances are slight,almost certain,Chances are slight that 'Lily is white' or 'Julius is gray' or both.,It is almost certain that 'Lily is white' or 'Julius is gray' or both.,0,'Lily is white' or 'Julius is gray' or both. It is likely that Mary left the football. It is probable that Julius is a lion. There is a very good chance that John picked up the apple. There is a better than even chance that if 'John picked up the apple and Julius is a lion' then Bernhard is gray. Chances are slight that if either 'Julius is a lion' or 'John picked up the apple' but not both then Winona is a wolf. It is highly likely that if 'Mary left the football' or 'John picked up the apple' or both then Jason is tired.,We doubt that 'Mary left the football' or 'Jason is tired' or both.," 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.7::factA. 0.7::factB. 0.8::factC. %hop1 0.6::factX:-and(factC,factB). 0.1::factY:-xor(factB,factC). 0.9::factZ:-or(factA,factC). %hop2 conclusion:-or(factA,factZ). query(conclusion). ",0.9159999999999999,0.9487897579515904,test,highly likely,we doubt,It is highly likely that 'Mary left the football' or 'Jason is tired' or both.,We doubt that 'Mary left the football' or 'Jason is tired' or both.,0,'Mary left the football' or 'Jason is tired' or both. There is a better than even chance that Greg is white. There is little chance that Mary got the football. There is almost no chance that Lily is a lion. There is little chance that if 'Mary got the football and Lily is a lion' then Bernhard is a swan. It is improbable that if 'Greg is white and Mary got the football' then Julius is gray. There is a better than even chance that if either 'Lily is a lion' or 'Mary got the football' but not both then John went to the garden.,It is certain that either 'Lily is a lion' or 'Julius is gray' but not both.," 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.1::factB. 0.02::factC. %hop1 0.1::factX:-and(factB,factC). 0.1::factY:-and(factA,factB). 0.6::factZ:-xor(factC,factB). %hop2 conclusion:-xor(factC,factY). query(conclusion). ",0.02576000000000001,0.9385877175435087,test,almost no chance,certain,There is almost no chance that either 'Lily is a lion' or 'Julius is gray' but not both.,It is certain that either 'Lily is a lion' or 'Julius is gray' but not both.,0,Either 'Lily is a lion' or 'Julius is gray' but not both. It is unlikely that Sandra left the milk. It is impossible that Jessica is a cat. We believe that Greg is a lion. There is almost no chance that if either 'Sandra left the milk' or 'Jessica is a cat' but not both then Emily is a sheep. It is probably not the case that if 'Sandra left the milk and Greg is a lion' then Mary got the football. Chances are about even that if 'Jessica is a cat' or 'Greg is a lion' or both then John went to the garden.,It is probable that 'Jessica is a cat' or 'Mary got the football' or both.," 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.0::factB. 0.75::factC. %hop1 0.02::factX:-xor(factA,factB). 0.25::factY:-and(factA,factC). 0.5::factZ:-or(factB,factC). %hop2 conclusion:-or(factB,factY). query(conclusion). ",0.03749999999999999,0.9313862772554511,test,highly unlikely,probable,It is highly unlikely that 'Jessica is a cat' or 'Mary got the football' or both.,It is probable that 'Jessica is a cat' or 'Mary got the football' or both.,0,'Jessica is a cat' or 'Mary got the football' or both. It is highly likely that John picked up the apple. There is a very good chance that Winona is a wolf. It is unlikely that Lily is gray. There is little chance that if 'Lily is gray' or 'John picked up the apple' or both then Bernhard is a frog. There is almost no chance that if 'Winona is a wolf and Lily is gray' then Mary moved to the garden. It is unlikely that if 'John picked up the apple and Lily is gray' then Brian is a swan.,There is a very good chance that 'Bernhard is a frog and John picked up the apple'.," 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.8::factB. 0.2::factC. %hop1 0.1::factX:-or(factC,factA). 0.02::factY:-and(factB,factC). 0.2::factZ:-and(factA,factC). %hop2 conclusion:-and(factX,factA). query(conclusion). ",0.09000000000000001,0.9257851570314063,test,chances are slight,very good chance,Chances are slight that 'Bernhard is a frog and John picked up the apple'.,There is a very good chance that 'Bernhard is a frog and John picked up the apple'.,0,'Bernhard is a frog and John picked up the apple'. It is highly unlikely that Jeff left the apple. We believe that Greg is gray. We doubt that Mary went to the office. We doubt that if either 'Mary went to the office' or 'Jeff left the apple' but not both then Fred is in the cinema. It is probably not the case that if either 'Mary went to the office' or 'Greg is gray' but not both then John dropped the milk. It is probably not the case that if 'Jeff left the apple' or 'Greg is gray' or both then Bernhard is a rhino.,It is highly unlikely that 'Bernhard is a rhino and John dropped the milk'.," 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.75::factB. 0.2::factC. %hop1 0.2::factX:-xor(factC,factA). 0.25::factY:-xor(factC,factB). 0.25::factZ:-or(factA,factB). %hop2 conclusion:-and(factZ,factY). query(conclusion). ",0.03765625000000001,0.9451890378075615,test,highly unlikely,highly likely,It is highly unlikely that 'Bernhard is a rhino and John dropped the milk'.,It is highly likely that 'Bernhard is a rhino and John dropped the milk'.,1,'Bernhard is a rhino and John dropped the milk'. It is highly likely that Bernhard is yellow. It is certain that Gertrude is a cat. There is almost no chance that John moved to the office. We believe that if either 'Bernhard is yellow' or 'Gertrude is a cat' but not both then Julius is a swan. It is improbable that if either 'John moved to the office' or 'Bernhard is yellow' but not both then Lily is a frog. It is probably the case that if 'John moved to the office' or 'Gertrude is a cat' or both then Sumit is bored.,It is probably the case that either 'John moved to the office' or 'Julius is a swan' but not both.," 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. 1.0::factB. 0.02::factC. %hop1 0.75::factX:-xor(factA,factB). 0.1::factY:-xor(factC,factA). 0.7::factZ:-or(factC,factB). %hop2 conclusion:-xor(factC,factX). query(conclusion). ",0.092,0.9617923584716943,test,improbable,probably,It is improbable that either 'John moved to the office' or 'Julius is a swan' but not both.,It is probably the case that either 'John moved to the office' or 'Julius is a swan' but not both.,0,Either 'John moved to the office' or 'Julius is a swan' but not both. Chances are about even that Mary moved to the office. It is probably not the case that John discarded the milk. It is improbable that Bill went to the garden. There is little chance that if either 'Bill went to the garden' or 'John discarded the milk' but not both then Greg is a frog. There is a very good chance that if 'John discarded the milk' or 'Bill went to the garden' or both then Jessica is a cat. There is almost no chance that if 'John discarded the milk' or 'Bill went to the garden' or both then Brian is a swan.,Chances are about even that either 'John discarded the milk' or 'Mary moved to the office' but not both.," 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.5::factA. 0.25::factB. 0.1::factC. %hop1 0.1::factX:-xor(factC,factB). 0.8::factY:-or(factB,factC). 0.02::factZ:-or(factB,factC). %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.5000000000000001,0.9547909581916383,test,about even,almost no chance,Chances are about even that either 'John discarded the milk' or 'Mary moved to the office' but not both.,There is almost no chance that either 'John discarded the milk' or 'Mary moved to the office' but not both.,1,Either 'John discarded the milk' or 'Mary moved to the office' but not both. It is probably not the case that Greg is a frog. It is probably the case that Brian is white. We believe that Antoine is hungry. It is probable that if 'Antoine is hungry and Greg is a frog' then Lily is a lion. Chances are slight that if either 'Antoine is hungry' or 'Greg is a frog' but not both then Julius is yellow. It is improbable that if 'Brian is white and Antoine is hungry' then John went to the bedroom.,There is a better than even chance that either 'John went to the bedroom' or 'Brian is white' but not both.," 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.25::factA. 0.7::factB. 0.75::factC. %hop1 0.7::factX:-and(factC,factA). 0.1::factY:-xor(factC,factA). 0.1::factZ:-and(factB,factC). %hop2 conclusion:-xor(factZ,factB). query(conclusion). ",0.6475,0.9495899179835967,test,better than even,impossible,There is a better than even chance that either 'John went to the bedroom' or 'Brian is white' but not both.,It is impossible that either 'John went to the bedroom' or 'Brian is white' but not both.,1,Either 'John went to the bedroom' or 'Brian is white' but not both. It is likely that Mary went to the office. It is highly likely that Bernhard is yellow. It is probably not the case that Brian is a swan. It is impossible that if either 'Brian is a swan' or 'Bernhard is yellow' but not both then Emily is a wolf. Chances are about even that if 'Mary went to the office and Bernhard is yellow' then Lily is white. There is little chance that if either 'Brian is a swan' or 'Mary went to the office' but not both then Sandra got the football.,It is impossible that 'Bernhard is yellow and Emily is a wolf'.," 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.7::factA. 0.9::factB. 0.25::factC. %hop1 0.0::factX:-xor(factC,factB). 0.5::factY:-and(factA,factB). 0.1::factZ:-xor(factC,factA). %hop2 conclusion:-and(factB,factX). query(conclusion). ",0.0,0.9281856371274255,test,impossible,very good chance,It is impossible that 'Bernhard is yellow and Emily is a wolf'.,There is a very good chance that 'Bernhard is yellow and Emily is a wolf'.,1,'Bernhard is yellow and Emily is a wolf'. It is probably not the case that Jessica is a mouse. It is probably the case that Sandra left the football. It is likely that John dropped the apple. It is probable that if 'Sandra left the football' or 'John dropped the apple' or both then Mary put down the apple. It is impossible that if 'Sandra left the football' or 'John dropped the apple' or both then Greg is a frog. There is a better than even chance that if either 'Jessica is a mouse' or 'Sandra left the football' but not both then Bernhard is gray.,There is a better than even chance that either 'Greg is a frog' or 'Mary put down the apple' but not both.," 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.25::factA. 0.7::factB. 0.7::factC. %hop1 0.7::factX:-or(factB,factC). 0.0::factY:-or(factB,factC). 0.6::factZ:-xor(factA,factB). %hop2 conclusion:-xor(factY,factX). query(conclusion). ",0.6369999999999999,0.9795959191838368,test,better than even,highly unlikely,There is a better than even chance that either 'Greg is a frog' or 'Mary put down the apple' but not both.,It is highly unlikely that either 'Greg is a frog' or 'Mary put down the apple' but not both.,1,Either 'Greg is a frog' or 'Mary put down the apple' but not both. There is a very good chance that Emily is a sheep. It is probable that John went to the kitchen. It is highly likely that Bernhard is yellow. There is almost no chance that if 'John went to the kitchen' or 'Emily is a sheep' or both then Daniel got the football. We believe that if 'Bernhard is yellow and John went to the kitchen' then Julius is a swan. Chances are about even that if either 'Emily is a sheep' or 'John went to the kitchen' but not both then Mary picked up the milk.,It is highly unlikely that either 'Julius is a swan' or 'Emily is a sheep' but not both.," 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.8::factA. 0.7::factB. 0.9::factC. %hop1 0.02::factX:-or(factB,factA). 0.75::factY:-and(factC,factB). 0.5::factZ:-xor(factA,factB). %hop2 conclusion:-xor(factY,factA). query(conclusion). ",0.5165000000000001,0.9251850370074015,test,about even,highly unlikely,Chances are about even that either 'Julius is a swan' or 'Emily is a sheep' but not both.,It is highly unlikely that either 'Julius is a swan' or 'Emily is a sheep' but not both.,0,Either 'Julius is a swan' or 'Emily is a sheep' but not both. It is probably the case that John went to the garden. It is likely that Brian is a rhino. There is little chance that Winona is a sheep. It is improbable that if 'Winona is a sheep and Brian is a rhino' then Greg is gray. We believe that if 'Winona is a sheep and John went to the garden' then Julius is yellow. There is almost no chance that if either 'Winona is a sheep' or 'Brian is a rhino' but not both then Mary took the football.,It is almost certain that 'Julius is yellow' or 'Greg is gray' or both.," 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.7::factA. 0.7::factB. 0.1::factC. %hop1 0.1::factX:-and(factC,factB). 0.75::factY:-and(factC,factA). 0.02::factZ:-xor(factC,factB). %hop2 conclusion:-or(factY,factX). query(conclusion). ",0.055825000000000014,0.9537907581516303,test,highly unlikely,almost certain,It is highly unlikely that 'Julius is yellow' or 'Greg is gray' or both.,It is almost certain that 'Julius is yellow' or 'Greg is gray' or both.,0,'Julius is yellow' or 'Greg is gray' or both. Chances are slight that Greg is gray. It is impossible that Brian is yellow. Chances are slight that John put down the milk. It is improbable that if 'Greg is gray and John put down the milk' then Mary left the football. It is highly unlikely that if either 'Greg is gray' or 'Brian is yellow' but not both then Sumit is thirsty. There is a very good chance that if either 'Greg is gray' or 'John put down the milk' but not both then Bernhard is a rhino.,We doubt that 'Greg is gray' or 'John put down the milk' or both.," 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.0::factB. 0.1::factC. %hop1 0.1::factX:-and(factA,factC). 0.05::factY:-xor(factA,factB). 0.8::factZ:-xor(factA,factC). %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.19000000000000006,0.9635927185437088,test,we doubt,probably,We doubt that 'Greg is gray' or 'John put down the milk' or both.,It is probably the case that 'Greg is gray' or 'John put down the milk' or both.,1,'Greg is gray' or 'John put down the milk' or both. We doubt that Brian is green. It is unlikely that Gertrude is a cat. It is highly likely that Emily is a mouse. We believe that if 'Emily is a mouse and Gertrude is a cat' then John took the football. It is highly likely that if 'Brian is green and Gertrude is a cat' then Greg is a swan. It is certain that if either 'Gertrude is a cat' or 'Emily is a mouse' but not both then Fred went to the office.,There is almost no chance that either 'Gertrude is a cat' or 'Emily is a mouse' but not both.," 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.2::factB. 0.9::factC. %hop1 0.75::factX:-and(factC,factB). 0.9::factY:-and(factA,factB). 1.0::factZ:-xor(factB,factC). %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.74,0.9409881976395279,test,we believe,almost no chance,We believe that either 'Gertrude is a cat' or 'Emily is a mouse' but not both.,There is almost no chance that either 'Gertrude is a cat' or 'Emily is a mouse' but not both.,0,Either 'Gertrude is a cat' or 'Emily is a mouse' but not both. Chances are slight that Jeff discarded the milk. There is almost no chance that Jessica is a sheep. We doubt that Fred put down the apple. We believe that if either 'Jessica is a sheep' or 'Jeff discarded the milk' but not both then Julius is a frog. It is highly likely that if 'Jeff discarded the milk' or 'Jessica is a sheep' or both then John got the milk. It is probably not the case that if either 'Jessica is a sheep' or 'Fred put down the apple' but not both then Brian is yellow.,Chances are slight that 'Jeff discarded the milk' or 'Julius is a frog' or both.," 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.02::factB. 0.2::factC. %hop1 0.75::factX:-xor(factB,factA). 0.9::factY:-or(factA,factB). 0.25::factZ:-xor(factB,factC). %hop2 conclusion:-or(factA,factX). query(conclusion). ",0.11350000000000005,0.9165833166633327,test,chances are slight,highly likely,Chances are slight that 'Jeff discarded the milk' or 'Julius is a frog' or both.,It is highly likely that 'Jeff discarded the milk' or 'Julius is a frog' or both.,1,'Jeff discarded the milk' or 'Julius is a frog' or both. It is highly likely that Daniel dropped the apple. It is probably not the case that Sandra took the football. It is probably not the case that Greg is yellow. It is probably not the case that if 'Sandra took the football' or 'Daniel dropped the apple' or both then Julius is green. It is almost certain that if 'Daniel dropped the apple' or 'Greg is yellow' or both then Jason is tired. It is highly unlikely that if 'Sandra took the football' or 'Daniel dropped the apple' or both then Brian is a swan.,It is highly likely that 'Sandra took the football' or 'Jason is tired' or both.," 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.25::factB. 0.25::factC. %hop1 0.25::factX:-or(factB,factA). 0.95::factY:-or(factA,factC). 0.05::factZ:-or(factB,factA). %hop2 conclusion:-or(factB,factY). query(conclusion). ",0.9090625000000001,0.9553910782156432,test,highly likely,little chance,It is highly likely that 'Sandra took the football' or 'Jason is tired' or both.,There is little chance that 'Sandra took the football' or 'Jason is tired' or both.,1,'Sandra took the football' or 'Jason is tired' or both. There is a better than even chance that Jessica is a cat. It is probably the case that Sumit is tired. There is a better than even chance that John grabbed the milk. It is probably the case that if 'Jessica is a cat and Sumit is tired' then Lily is a rhino. It is improbable that if either 'Sumit is tired' or 'John grabbed the milk' but not both then Brian is gray. It is unlikely that if either 'John grabbed the milk' or 'Jessica is a cat' but not both then Mary went to the bedroom.,It is highly unlikely that either 'Sumit is tired' or 'Jessica is a cat' but not both.," 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.7::factB. 0.6::factC. %hop1 0.7::factX:-and(factA,factB). 0.1::factY:-xor(factB,factC). 0.2::factZ:-xor(factC,factA). %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.45999999999999996,0.9865973194638927,test,about even,highly unlikely,Chances are about even that either 'Sumit is tired' or 'Jessica is a cat' but not both.,It is highly unlikely that either 'Sumit is tired' or 'Jessica is a cat' but not both.,0,Either 'Sumit is tired' or 'Jessica is a cat' but not both. It is impossible that Mary went to the kitchen. It is unlikely that Julius is a rhino. It is impossible that Greg is a swan. It is unlikely that if 'Greg is a swan' or 'Julius is a rhino' or both then Sandra dropped the milk. It is impossible that if 'Greg is a swan' or 'Mary went to the kitchen' or both then Brian is green. It is almost certain that if either 'Greg is a swan' or 'Mary went to the kitchen' but not both then Bernhard is gray.,It is impossible that 'Mary went to the kitchen' or 'Greg is a swan' or both.," 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.0::factA. 0.2::factB. 0.0::factC. %hop1 0.2::factX:-or(factC,factB). 0.0::factY:-or(factC,factA). 0.95::factZ:-xor(factC,factA). %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.0,0.9157831566313263,test,impossible,probably,It is impossible that 'Mary went to the kitchen' or 'Greg is a swan' or both.,It is probably the case that 'Mary went to the kitchen' or 'Greg is a swan' or both.,1,'Mary went to the kitchen' or 'Greg is a swan' or both. Chances are slight that Mary grabbed the milk. It is probable that Winona is a wolf. It is highly likely that John picked up the apple. There is little chance that if 'Mary grabbed the milk' or 'John picked up the apple' or both then Lily is white. It is highly likely that if either 'Winona is a wolf' or 'John picked up the apple' but not both then Greg is a rhino. Chances are about even that if 'Mary grabbed the milk and John picked up the apple' then Bernhard is a swan.,Chances are about even that 'Mary grabbed the milk' or 'Greg is a rhino' or both.," 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.7::factB. 0.9::factC. %hop1 0.1::factX:-or(factA,factC). 0.9::factY:-xor(factB,factC). 0.5::factZ:-and(factA,factC). %hop2 conclusion:-or(factA,factY). query(conclusion). ",0.3754,0.9423884776955391,test,about even,impossible,Chances are about even that 'Mary grabbed the milk' or 'Greg is a rhino' or both.,It is impossible that 'Mary grabbed the milk' or 'Greg is a rhino' or both.,1,'Mary grabbed the milk' or 'Greg is a rhino' or both. It is improbable that Lily is a frog. It is likely that Winona is a wolf. There is almost no chance that John grabbed the apple. It is highly likely that if either 'John grabbed the apple' or 'Winona is a wolf' but not both then Fred went to the garden. It is probably the case that if 'Lily is a frog' or 'Winona is a wolf' or both then Greg is a swan. It is probably the case that if either 'Winona is a wolf' or 'Lily is a frog' but not both then Julius is a rhino.,It is almost certain that 'Winona is a wolf and Greg is a swan'.," 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.7::factB. 0.02::factC. %hop1 0.9::factX:-xor(factC,factB). 0.7::factY:-or(factA,factB). 0.7::factZ:-xor(factB,factA). %hop2 conclusion:-and(factB,factY). query(conclusion). ",0.48999999999999994,0.9475895179035807,test,about even,almost certain,Chances are about even that 'Winona is a wolf and Greg is a swan'.,It is almost certain that 'Winona is a wolf and Greg is a swan'.,0,'Winona is a wolf and Greg is a swan'. There is a very good chance that Gertrude is a sheep. We believe that Julius is a lion. It is probably not the case that Jeff put down the milk. There is little chance that if 'Jeff put down the milk' or 'Julius is a lion' or both then Emily is a wolf. It is impossible that if 'Julius is a lion' or 'Gertrude is a sheep' or both then Bernhard is a swan. It is probable that if either 'Julius is a lion' or 'Jeff put down the milk' but not both then Mary went to the hallway.,It is highly unlikely that either 'Mary went to the hallway' or 'Jeff put down the milk' but not both.," 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.8::factA. 0.75::factB. 0.25::factC. %hop1 0.1::factX:-or(factC,factB). 0.0::factY:-or(factB,factA). 0.7::factZ:-xor(factB,factC). %hop2 conclusion:-xor(factZ,factC). query(conclusion). ",0.6,0.9131826365273055,test,better than even,highly unlikely,There is a better than even chance that either 'Mary went to the hallway' or 'Jeff put down the milk' but not both.,It is highly unlikely that either 'Mary went to the hallway' or 'Jeff put down the milk' but not both.,0,Either 'Mary went to the hallway' or 'Jeff put down the milk' but not both. It is probable that Brian is a rhino. Chances are slight that Mary went to the hallway. There is a very good chance that John dropped the apple. It is almost certain that if 'John dropped the apple' or 'Mary went to the hallway' or both then Julius is a frog. It is highly unlikely that if either 'Brian is a rhino' or 'Mary went to the hallway' but not both then Bernhard is yellow. It is impossible that if 'John dropped the apple' or 'Brian is a rhino' or both then Greg is a lion.,We believe that either 'Julius is a frog' or 'Bernhard is yellow' but not both.," 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.7::factA. 0.1::factB. 0.8::factC. %hop1 0.95::factX:-or(factC,factB). 0.05::factY:-xor(factA,factB). 0.0::factZ:-or(factC,factA). %hop2 conclusion:-xor(factX,factY). query(conclusion). ",0.76127,0.9011802360472094,test,we believe,improbable,We believe that either 'Julius is a frog' or 'Bernhard is yellow' but not both.,It is improbable that either 'Julius is a frog' or 'Bernhard is yellow' but not both.,1,Either 'Julius is a frog' or 'Bernhard is yellow' but not both. It is almost certain that Sandra got the milk. It is almost certain that Winona is a wolf. There is almost no chance that John put down the apple. It is certain that if 'Winona is a wolf and John put down the apple' then Greg is green. It is almost certain that if either 'Winona is a wolf' or 'Sandra got the milk' but not both then Julius is a rhino. It is impossible that if 'John put down the apple' or 'Winona is a wolf' or both then Mary went to the bedroom.,Chances are about even that 'Mary went to the bedroom' or 'John put down the apple' or both.," 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.95::factA. 0.95::factB. 0.02::factC. %hop1 1.0::factX:-and(factB,factC). 0.95::factY:-xor(factB,factA). 0.0::factZ:-or(factC,factB). %hop2 conclusion:-or(factZ,factC). query(conclusion). ",0.02,0.9863972794558912,test,almost no chance,about even,There is almost no chance that 'Mary went to the bedroom' or 'John put down the apple' or both.,Chances are about even that 'Mary went to the bedroom' or 'John put down the apple' or both.,0,'Mary went to the bedroom' or 'John put down the apple' or both. It is highly unlikely that Brian is white. It is highly likely that Sumit is thirsty. It is highly unlikely that Lily is yellow. There is almost no chance that if 'Lily is yellow and Sumit is thirsty' then Jeff went to the bedroom. There is a very good chance that if 'Brian is white' or 'Sumit is thirsty' or both then Julius is a frog. It is almost certain that if 'Brian is white and Lily is yellow' then Mary dropped the milk.,We believe that 'Lily is yellow and Jeff went to the bedroom'.," 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.9::factB. 0.05::factC. %hop1 0.02::factX:-and(factC,factB). 0.8::factY:-or(factA,factB). 0.95::factZ:-and(factA,factC). %hop2 conclusion:-and(factC,factX). query(conclusion). ",0.0008999999999999998,0.9657931586317263,test,impossible,we believe,It is impossible that 'Lily is yellow and Jeff went to the bedroom'.,We believe that 'Lily is yellow and Jeff went to the bedroom'.,0,'Lily is yellow and Jeff went to the bedroom'. It is highly likely that Yann is hungry. There is a very good chance that Emily is a sheep. There is a better than even chance that Bernhard is gray. We believe that if 'Emily is a sheep' or 'Bernhard is gray' or both then John went to the kitchen. We doubt that if either 'Bernhard is gray' or 'Emily is a sheep' but not both then Lily is green. It is almost certain that if either 'Bernhard is gray' or 'Yann is hungry' but not both then Mary left the football.,It is probably not the case that either 'Lily is green' or 'Mary left the football' but not both.," 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.8::factB. 0.6::factC. %hop1 0.75::factX:-or(factB,factC). 0.2::factY:-xor(factC,factB). 0.95::factZ:-xor(factC,factA). %hop2 conclusion:-xor(factY,factZ). query(conclusion). ",0.373,0.9013802760552111,test,probably not,we believe,It is probably not the case that either 'Lily is green' or 'Mary left the football' but not both.,We believe that either 'Lily is green' or 'Mary left the football' but not both.,1,Either 'Lily is green' or 'Mary left the football' but not both. There is little chance that John dropped the milk. There is almost no chance that Julius is a swan. It is unlikely that Bill went to the office. It is impossible that if either 'Bill went to the office' or 'Julius is a swan' but not both then Bernhard is white. There is a better than even chance that if 'John dropped the milk and Bill went to the office' then Brian is white. It is highly likely that if either 'Bill went to the office' or 'Julius is a swan' but not both then Greg is a rhino.,It is almost certain that 'Brian is white' or 'John dropped the milk' or both.," 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.02::factB. 0.2::factC. %hop1 0.0::factX:-xor(factC,factB). 0.6::factY:-and(factA,factC). 0.9::factZ:-xor(factC,factB). %hop2 conclusion:-or(factY,factA). query(conclusion). ",0.10000000000000002,0.9367873574714943,test,little chance,almost certain,There is little chance that 'Brian is white' or 'John dropped the milk' or both.,It is almost certain that 'Brian is white' or 'John dropped the milk' or both.,0,'Brian is white' or 'John dropped the milk' or both. There is little chance that John went to the hallway. It is improbable that Mary moved to the office. We believe that Lily is a swan. There is a very good chance that if either 'Lily is a swan' or 'Mary moved to the office' but not both then Daniel got the milk. It is impossible that if 'Lily is a swan and Mary moved to the office' then Julius is a lion. There is a very good chance that if either 'Mary moved to the office' or 'John went to the hallway' but not both then Bernhard is gray.,There is little chance that either 'Bernhard is gray' or 'John went to the hallway' but not both.," 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.1::factB. 0.75::factC. %hop1 0.8::factX:-xor(factC,factB). 0.0::factY:-and(factC,factB). 0.8::factZ:-xor(factB,factA). %hop2 conclusion:-xor(factZ,factA). query(conclusion). ",0.10000000000000002,0.996999399879976,test,little chance,probable,There is little chance that either 'Bernhard is gray' or 'John went to the hallway' but not both.,It is probable that either 'Bernhard is gray' or 'John went to the hallway' but not both.,1,Either 'Bernhard is gray' or 'John went to the hallway' but not both. Chances are slight that Sandra took the milk. Chances are slight that Mary dropped the apple. It is certain that John got the milk. Chances are slight that if 'Mary dropped the apple and John got the milk' then Lily is green. We doubt that if 'Mary dropped the apple' or 'Sandra took the milk' or both then Julius is yellow. It is probably the case that if 'John got the milk' or 'Sandra took the milk' or both then Greg is a rhino.,It is probably the case that either 'Greg is a rhino' or 'Mary dropped the apple' but not both.," 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.1::factB. 1.0::factC. %hop1 0.1::factX:-and(factB,factC). 0.2::factY:-or(factB,factA). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-xor(factZ,factB). query(conclusion). ",0.6599999999999999,0.9685937187437488,test,probably,improbable,It is probably the case that either 'Greg is a rhino' or 'Mary dropped the apple' but not both.,It is improbable that either 'Greg is a rhino' or 'Mary dropped the apple' but not both.,1,Either 'Greg is a rhino' or 'Mary dropped the apple' but not both. It is certain that Sandra took the football. It is likely that Bernhard is yellow. There is a very good chance that Mary went to the garden. It is probably the case that if 'Mary went to the garden' or 'Bernhard is yellow' or both then Brian is a rhino. It is highly likely that if 'Bernhard is yellow' or 'Sandra took the football' or both then John picked up the apple. We doubt that if 'Sandra took the football and Mary went to the garden' then Lily is white.,Chances are slight that 'Lily is white 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 1.0::factA. 0.7::factB. 0.8::factC. %hop1 0.7::factX:-or(factC,factB). 0.9::factY:-or(factB,factA). 0.2::factZ:-and(factA,factC). %hop2 conclusion:-and(factZ,factX). query(conclusion). ",0.11199999999999999,0.9895979195839167,test,chances are slight,almost certain,Chances are slight that 'Lily is white and Brian is a rhino'.,It is almost certain that 'Lily is white and Brian is a rhino'.,1,'Lily is white and Brian is a rhino'. It is certain that Mary dropped the milk. It is highly unlikely that John went to the garden. It is probably the case that Bernhard is a frog. It is almost certain that if 'John went to the garden and Mary dropped the milk' then Greg is a swan. It is improbable that if 'John went to the garden and Mary dropped the milk' then Julius is a rhino. It is probable that if 'Bernhard is a frog' or 'John went to the garden' or both then Yann is tired.,It is certain that 'Greg is a swan' or 'John went to the garden' or both.," 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 1.0::factA. 0.05::factB. 0.7::factC. %hop1 0.95::factX:-and(factB,factA). 0.1::factY:-and(factB,factA). 0.7::factZ:-or(factC,factB). %hop2 conclusion:-or(factX,factB). query(conclusion). ",0.05000000000000001,0.9913982796559312,test,highly unlikely,certain,It is highly unlikely that 'Greg is a swan' or 'John went to the garden' or both.,It is certain that 'Greg is a swan' or 'John went to the garden' or both.,0,'Greg is a swan' or 'John went to the garden' or both. There is almost no chance that John went to the kitchen. We believe that Brian is yellow. It is probable that Daniel took the football. It is highly unlikely that if either 'John went to the kitchen' or 'Daniel took the football' but not both then Jeff dropped the apple. It is probable that if either 'Brian is yellow' or 'Daniel took the football' but not both then Emily is a sheep. We believe that if 'Daniel took the football' or 'John went to the kitchen' or both then Bernhard is white.,We believe that 'Emily is a sheep and Jeff dropped the apple'.," 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.02::factA. 0.75::factB. 0.7::factC. %hop1 0.05::factX:-xor(factA,factC). 0.7::factY:-xor(factB,factC). 0.75::factZ:-or(factC,factA). %hop2 conclusion:-and(factY,factX). query(conclusion). ",0.006160000000000002,0.9425885177035407,test,impossible,we believe,It is impossible that 'Emily is a sheep and Jeff dropped the apple'.,We believe that 'Emily is a sheep and Jeff dropped the apple'.,0,'Emily is a sheep and Jeff dropped the apple'. It is impossible that Julius is gray. We doubt that Brian is white. There is almost no chance that Emily is a cat. It is probable that if either 'Brian is white' or 'Emily is a cat' but not both then Greg is a rhino. It is certain that if 'Julius is gray' or 'Emily is a cat' or both then John dropped the milk. It is likely that if 'Brian is white and Julius is gray' then Sandra put down the milk.,Chances are slight that 'Greg is a rhino' or 'Sandra put down the milk' or both.," 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.0::factA. 0.2::factB. 0.02::factC. %hop1 0.7::factX:-xor(factB,factC). 1.0::factY:-or(factA,factC). 0.7::factZ:-and(factB,factA). %hop2 conclusion:-or(factX,factZ). query(conclusion). ",0.1484,0.960992198439688,test,chances are slight,likely,Chances are slight that 'Greg is a rhino' or 'Sandra put down the milk' or both.,It is likely that 'Greg is a rhino' or 'Sandra put down the milk' or both.,1,'Greg is a rhino' or 'Sandra put down the milk' or both. It is highly unlikely that Brian is a swan. It is likely that John went to the hallway. It is highly likely that Lily is gray. It is highly unlikely that if 'John went to the hallway and Brian is a swan' then Jason is tired. There is almost no chance that if either 'Brian is a swan' or 'Lily is gray' but not both then Julius is white. It is highly unlikely that if 'John went to the hallway and Lily is gray' then Daniel took the milk.,It is impossible that 'Brian is a swan and Daniel took the milk'.," 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.7::factB. 0.9::factC. %hop1 0.05::factX:-and(factB,factA). 0.02::factY:-xor(factA,factC). 0.05::factZ:-and(factB,factC). %hop2 conclusion:-and(factA,factZ). query(conclusion). ",0.0015750000000000009,0.9789957991598319,test,impossible,almost certain,It is impossible that 'Brian is a swan and Daniel took the milk'.,It is almost certain that 'Brian is a swan and Daniel took the milk'.,1,'Brian is a swan and Daniel took the milk'. We believe that Sandra left the football. There is a very good chance that Bernhard is a lion. There is a better than even chance that John went to the garden. It is highly likely that if 'Sandra left the football and John went to the garden' then Winona is a sheep. It is highly likely that if 'Bernhard is a lion' or 'Sandra left the football' or both then Julius is a rhino. It is improbable that if 'Sandra left the football' or 'Bernhard is a lion' or both then Mary got the apple.,It is unlikely that 'Julius is a rhino' or 'John went to the garden' or both.," 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.75::factA. 0.8::factB. 0.6::factC. %hop1 0.9::factX:-and(factA,factC). 0.9::factY:-or(factB,factA). 0.1::factZ:-or(factA,factB). %hop2 conclusion:-or(factY,factC). query(conclusion). ",0.9420000000000001,0.9211842368473695,test,almost certain,unlikely,It is almost certain that 'Julius is a rhino' or 'John went to the garden' or both.,It is unlikely that 'Julius is a rhino' or 'John went to the garden' or both.,0,'Julius is a rhino' or 'John went to the garden' or both. It is highly likely that Jessica is a mouse. It is improbable that Fred is in the office. We doubt that John put down the apple. It is improbable that if either 'John put down the apple' or 'Jessica is a mouse' but not both then Greg is a swan. It is highly unlikely that if either 'Fred is in the office' or 'John put down the apple' but not both then Mary dropped the milk. There is little chance that if 'Jessica is a mouse and John put down the apple' then Brian is white.,It is probably the case that 'Brian is white and Mary dropped the milk'.," 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.1::factB. 0.2::factC. %hop1 0.1::factX:-xor(factC,factA). 0.05::factY:-xor(factB,factC). 0.1::factZ:-and(factA,factC). %hop2 conclusion:-and(factZ,factY). query(conclusion). ",0.0008100000000000008,0.9285857171434286,test,impossible,probably,It is impossible that 'Brian is white and Mary dropped the milk'.,It is probably the case that 'Brian is white and Mary dropped the milk'.,0,'Brian is white and Mary dropped the milk'. It is highly likely that Brian is a lion. There is almost no chance that Mary dropped the apple. Chances are about even that Julius is white. It is almost certain that if 'Julius is white and Mary dropped the apple' then Daniel got the milk. We believe that if either 'Brian is a lion' or 'Julius is white' but not both then Lily is gray. There is a better than even chance that if either 'Julius is white' or 'Mary dropped the apple' but not both then Jeff went to the garden.,It is probably not the case that 'Brian is a lion' or 'Daniel got the milk' or both.," 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.02::factB. 0.5::factC. %hop1 0.95::factX:-and(factC,factB). 0.75::factY:-xor(factA,factC). 0.6::factZ:-xor(factC,factB). %hop2 conclusion:-or(factA,factX). query(conclusion). ",0.90095,0.9465893178635727,test,highly likely,probably not,It is highly likely that 'Brian is a lion' or 'Daniel got the milk' or both.,It is probably not the case that 'Brian is a lion' or 'Daniel got the milk' or both.,0,'Brian is a lion' or 'Daniel got the milk' or both. It is probably the case that Brian is a lion. There is little chance that Julius is gray. It is probably the case that Lily is a swan. There is little chance that if 'Lily is a swan and Brian is a lion' then Sandra took the football. There is almost no chance that if 'Julius is gray and Brian is a lion' then Bernhard is yellow. There is a very good chance that if 'Julius is gray and Brian is a lion' then John moved to the office.,It is probably not the case that 'Brian is a lion' or 'John moved to the office' or both.," 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.7::factA. 0.1::factB. 0.7::factC. %hop1 0.1::factX:-and(factC,factA). 0.02::factY:-and(factB,factA). 0.8::factZ:-and(factB,factA). %hop2 conclusion:-or(factA,factZ). query(conclusion). ",0.7,0.9027805561112222,test,probably,probably not,It is probably the case that 'Brian is a lion' or 'John moved to the office' or both.,It is probably not the case that 'Brian is a lion' or 'John moved to the office' or both.,0,'Brian is a lion' or 'John moved to the office' or both. It is probably not the case that Julius is yellow. It is improbable that Sandra left the milk. Chances are slight that Jessica is a cat. It is highly unlikely that if either 'Jessica is a cat' or 'Sandra left the milk' but not both then Brian is green. There is a better than even chance that if 'Sandra left the milk' or 'Jessica is a cat' or both then Fred went to the office. It is almost certain that if either 'Jessica is a cat' or 'Sandra left the milk' but not both then Lily is a rhino.,It is improbable that 'Lily is a rhino and Jessica 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.25::factA. 0.1::factB. 0.1::factC. %hop1 0.05::factX:-xor(factC,factB). 0.6::factY:-or(factB,factC). 0.95::factZ:-xor(factC,factB). %hop2 conclusion:-and(factZ,factC). query(conclusion). ",0.0855,0.9429885977195439,test,improbable,highly likely,It is improbable that 'Lily is a rhino and Jessica is a cat'.,It is highly likely that 'Lily is a rhino and Jessica is a cat'.,1,'Lily is a rhino and Jessica is a cat'. We doubt that Bernhard is a rhino. It is probably not the case that Yann is tired. Chances are about even that John moved to the office. It is likely that if either 'John moved to the office' or 'Bernhard is a rhino' but not both then Mary grabbed the apple. It is impossible that if either 'Yann is tired' or 'Bernhard is a rhino' but not both then Sandra took the milk. We doubt that if 'Bernhard is a rhino' or 'John moved to the office' or both then Julius is white.,It is improbable that 'Bernhard is a rhino and John moved to the office'.," 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.25::factB. 0.5::factC. %hop1 0.7::factX:-xor(factC,factA). 0.0::factY:-xor(factB,factA). 0.2::factZ:-or(factA,factC). %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.10000000000000002,0.9217843568713743,test,improbable,almost certain,It is improbable that 'Bernhard is a rhino and John moved to the office'.,It is almost certain that 'Bernhard is a rhino and John moved to the office'.,1,'Bernhard is a rhino and John moved to the office'. Chances are about even that Greg is a frog. Chances are about even that Mary got the apple. It is likely that John moved to the garden. Chances are slight that if 'John moved to the garden and Mary got the apple' then Julius is a lion. Chances are about even that if 'Mary got the apple' or 'John moved to the garden' or both then Brian is yellow. It is highly likely that if 'Mary got the apple and John moved to the garden' then Sandra dropped the milk.,It is likely that either 'John moved to the garden' or 'Julius is a lion' but not both.," 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.5::factA. 0.5::factB. 0.7::factC. %hop1 0.1::factX:-and(factC,factB). 0.5::factY:-or(factB,factC). 0.9::factZ:-and(factB,factC). %hop2 conclusion:-xor(factC,factX). query(conclusion). ",0.6649999999999999,0.9511902380476095,test,likely,improbable,It is likely that either 'John moved to the garden' or 'Julius is a lion' but not both.,It is improbable that either 'John moved to the garden' or 'Julius is a lion' but not both.,1,Either 'John moved to the garden' or 'Julius is a lion' but not both. There is almost no chance that Julius is a rhino. It is unlikely that John discarded the apple. It is probably the case that Jeff went to the bedroom. It is unlikely that if 'Jeff went to the bedroom and Julius is a rhino' then Lily is a swan. It is likely that if 'Jeff went to the bedroom and John discarded the apple' then Bernhard is yellow. It is likely that if either 'Jeff went to the bedroom' or 'Julius is a rhino' but not both then Mary left the football.,There is a better than even chance that either 'Jeff went to the bedroom' or 'Bernhard is yellow' but not both.," 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.02::factA. 0.2::factB. 0.7::factC. %hop1 0.2::factX:-and(factC,factA). 0.7::factY:-and(factC,factB). 0.7::factZ:-xor(factC,factA). %hop2 conclusion:-xor(factC,factY). query(conclusion). ",0.602,0.9319863972794559,test,better than even,highly unlikely,There is a better than even chance that either 'Jeff went to the bedroom' or 'Bernhard is yellow' but not both.,It is highly unlikely that either 'Jeff went to the bedroom' or 'Bernhard is yellow' but not both.,1,Either 'Jeff went to the bedroom' or 'Bernhard is yellow' but not both. It is highly likely that Greg is a lion. It is likely that Jeff put down the milk. There is little chance that Brian is a rhino. It is improbable that if 'Brian is a rhino and Jeff put down the milk' then Bernhard is a frog. We doubt that if 'Jeff put down the milk' or 'Greg is a lion' or both then Mary got the football. It is probably not the case that if 'Jeff put down the milk' or 'Brian is a rhino' or both then Julius is yellow.,It is probably not the case that either 'Mary got the football' or 'Brian is a rhino' but not both.," 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.1::factC. %hop1 0.1::factX:-and(factC,factB). 0.2::factY:-or(factB,factA). 0.25::factZ:-or(factB,factC). %hop2 conclusion:-xor(factY,factC). query(conclusion). ",0.25520000000000004,0.9397879575915183,test,probably not,we believe,It is probably not the case that either 'Mary got the football' or 'Brian is a rhino' but not both.,We believe that either 'Mary got the football' or 'Brian is a rhino' but not both.,1,Either 'Mary got the football' or 'Brian is a rhino' but not both. It is improbable that Bernhard is white. There is a better than even chance that Lily is a rhino. There is little chance that Brian is green. It is improbable that if 'Bernhard is white and Lily is a rhino' then Jeff went to the bedroom. It is probably not the case that if 'Brian is green and Bernhard is white' then Gertrude is a sheep. There is a very good chance that if 'Brian is green' or 'Lily is a rhino' or both then Mary left the football.,It is highly unlikely that 'Brian is green and Lily 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.1::factA. 0.6::factB. 0.1::factC. %hop1 0.1::factX:-and(factA,factB). 0.25::factY:-and(factC,factA). 0.8::factZ:-or(factC,factB). %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.06,0.9753950790158031,test,highly unlikely,very good chance,It is highly unlikely that 'Brian is green and Lily is a rhino'.,There is a very good chance that 'Brian is green and Lily is a rhino'.,1,'Brian is green and Lily is a rhino'. It is certain that Bernhard is a frog. It is highly likely that Brian is yellow. There is almost no chance that Julius is a rhino. Chances are slight that if 'Bernhard is a frog and Brian is yellow' then Fred put down the apple. There is a very good chance that if either 'Julius is a rhino' or 'Bernhard is a frog' but not both then Mary moved to the garden. There is almost no chance that if either 'Brian is yellow' or 'Bernhard is a frog' but not both then Gertrude is a mouse.,It is unlikely that either 'Bernhard is a frog' or 'Mary moved to the garden' but not both.," 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 1.0::factA. 0.9::factB. 0.02::factC. %hop1 0.1::factX:-and(factA,factB). 0.8::factY:-xor(factC,factA). 0.02::factZ:-xor(factB,factA). %hop2 conclusion:-xor(factA,factY). query(conclusion). ",0.21599999999999997,0.9839967993598719,test,unlikely,likely,It is unlikely that either 'Bernhard is a frog' or 'Mary moved to the garden' but not both.,It is likely that either 'Bernhard is a frog' or 'Mary moved to the garden' but not both.,1,Either 'Bernhard is a frog' or 'Mary moved to the garden' but not both. Chances are about even that Sandra left the milk. There is little chance that Fred is in the cinema. It is probably the case that John moved to the office. It is likely that if 'Sandra left the milk and Fred is in the cinema' then Emily is a mouse. It is probably not the case that if either 'Sandra left the milk' or 'Fred is in the cinema' but not both then Lily is yellow. It is probably the case that if either 'John moved to the office' or 'Sandra left the milk' but not both then Mary grabbed the apple.,It is highly unlikely that either 'John moved to the office' or 'Sandra left the milk' but not both.," 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.5::factA. 0.1::factB. 0.7::factC. %hop1 0.7::factX:-and(factA,factB). 0.25::factY:-xor(factA,factB). 0.7::factZ:-xor(factC,factA). %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.49999999999999994,0.9247849569913983,test,about even,highly unlikely,Chances are about even that either 'John moved to the office' or 'Sandra left the milk' but not both.,It is highly unlikely that either 'John moved to the office' or 'Sandra left the milk' but not both.,0,Either 'John moved to the office' or 'Sandra left the milk' but not both. It is impossible that Jason is tired. There is almost no chance that John moved to the garden. Chances are slight that Bernhard is a swan. It is probable that if 'John moved to the garden' or 'Bernhard is a swan' or both then Greg is gray. There is almost no chance that if 'John moved to the garden' or 'Bernhard is a swan' or both then Mary left the milk. There is little chance that if 'Bernhard is a swan' or 'John moved to the garden' or both then Lily is a rhino.,Chances are slight that 'Lily is a rhino' or 'Greg is gray' or both.," 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.0::factA. 0.02::factB. 0.1::factC. %hop1 0.7::factX:-or(factB,factC). 0.02::factY:-or(factB,factC). 0.1::factZ:-or(factC,factB). %hop2 conclusion:-or(factZ,factX). query(conclusion). ",0.08614,0.9691938387677536,test,chances are slight,probable,Chances are slight that 'Lily is a rhino' or 'Greg is gray' or both.,It is probable that 'Lily is a rhino' or 'Greg is gray' or both.,1,'Lily is a rhino' or 'Greg is gray' or both. We believe that Bernhard is yellow. It is highly unlikely that Jeff went to the bedroom. There is a better than even chance that John discarded the apple. There is almost no chance that if 'Jeff went to the bedroom' or 'John discarded the apple' or both then Julius is gray. It is probable that if 'John discarded the apple and Jeff went to the bedroom' then Mary took the football. There is little chance that if 'Jeff went to the bedroom' or 'John discarded the apple' or both then Sandra got the milk.,It is highly likely that either 'Julius is gray' or 'Sandra got the milk' but not both.," 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.75::factA. 0.05::factB. 0.6::factC. %hop1 0.02::factX:-or(factB,factC). 0.7::factY:-and(factC,factB). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-xor(factX,factZ). query(conclusion). ",0.07191999999999998,0.9369873974794959,test,highly unlikely,highly likely,It is highly unlikely that either 'Julius is gray' or 'Sandra got the milk' but not both.,It is highly likely that either 'Julius is gray' or 'Sandra got the milk' but not both.,0,Either 'Julius is gray' or 'Sandra got the milk' but not both. It is likely that Brian is gray. It is unlikely that Sandra left the milk. It is highly likely that Mary got the milk. It is probably not the case that if either 'Brian is gray' or 'Sandra left the milk' but not both then John went to the kitchen. Chances are slight that if 'Brian is gray' or 'Sandra left the milk' or both then Lily is green. It is likely that if 'Mary got the milk' or 'Sandra left the milk' or both then Daniel took the football.,It is probably not the case that either 'Mary got the milk' or 'Daniel took the football' but not both.," 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.7::factA. 0.2::factB. 0.9::factC. %hop1 0.25::factX:-xor(factA,factB). 0.1::factY:-or(factA,factB). 0.7::factZ:-or(factC,factB). %hop2 conclusion:-xor(factC,factZ). query(conclusion). ",0.284,0.9603920784156832,test,probably not,very good chance,It is probably not the case that either 'Mary got the milk' or 'Daniel took the football' but not both.,There is a very good chance that either 'Mary got the milk' or 'Daniel took the football' but not both.,1,Either 'Mary got the milk' or 'Daniel took the football' but not both. It is improbable that Brian is a lion. It is highly likely that Daniel got the football. It is almost certain that Bill left the milk. It is highly likely that if 'Bill left the milk' or 'Brian is a lion' or both then John discarded the apple. There is almost no chance that if 'Bill left the milk and Daniel got the football' then Julius is gray. It is impossible that if either 'Daniel got the football' or 'Brian is a lion' but not both then Greg is a swan.,It is certain that 'Brian is a lion and Bill left the milk'.," 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.9::factB. 0.95::factC. %hop1 0.9::factX:-or(factC,factA). 0.02::factY:-and(factC,factB). 0.0::factZ:-xor(factB,factA). %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.09500000000000001,0.9489897979595919,test,improbable,certain,It is improbable that 'Brian is a lion and Bill left the milk'.,It is certain that 'Brian is a lion and Bill left the milk'.,0,'Brian is a lion and Bill left the milk'. It is almost certain that John got the apple. It is highly unlikely that Greg is a frog. It is almost certain that Bill moved to the office. There is almost no chance that if 'John got the apple and Greg is a frog' then Lily is green. There is little chance that if 'John got the apple' or 'Greg is a frog' or both then Julius is yellow. Chances are about even that if 'Greg is a frog' or 'John got the apple' or both then Mary went to the hallway.,It is impossible that 'Bill moved to the office 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.95::factA. 0.05::factB. 0.95::factC. %hop1 0.02::factX:-and(factA,factB). 0.1::factY:-or(factA,factB). 0.5::factZ:-or(factB,factA). %hop2 conclusion:-and(factC,factX). query(conclusion). ",0.0009025000000000001,0.9791958391678336,test,impossible,certain,It is impossible that 'Bill moved to the office and Lily is green'.,It is certain that 'Bill moved to the office and Lily is green'.,1,'Bill moved to the office and Lily is green'. It is probably not the case that Mary discarded the apple. There is a better than even chance that John dropped the milk. It is likely that Julius is yellow. There is a very good chance that if either 'John dropped the milk' or 'Julius is yellow' but not both then Brian is a frog. There is almost no chance that if 'Mary discarded the apple' or 'John dropped the milk' or both then Bill got the milk there. There is little chance that if 'Julius is yellow and John dropped the milk' then Sandra took the football.,It is highly unlikely that 'Brian is a frog' or 'Bill got the milk there' or both.," 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.25::factA. 0.6::factB. 0.7::factC. %hop1 0.8::factX:-xor(factB,factC). 0.02::factY:-or(factA,factB). 0.1::factZ:-and(factC,factB). %hop2 conclusion:-or(factX,factY). query(conclusion). ",0.378,0.9815963192638528,test,about even,highly unlikely,Chances are about even that 'Brian is a frog' or 'Bill got the milk there' or both.,It is highly unlikely that 'Brian is a frog' or 'Bill got the milk there' or both.,0,'Brian is a frog' or 'Bill got the milk there' or both. There is almost no chance that John went to the office. There is a very good chance that Brian is a swan. It is probably the case that Gertrude is a mouse. Chances are about even that if either 'John went to the office' or 'Gertrude is a mouse' but not both then Greg is a lion. It is likely that if 'Gertrude is a mouse' or 'Brian is a swan' or both then Mary got the apple. There is a very good chance that if 'John went to the office and Gertrude is a mouse' then Daniel dropped the milk.,It is almost certain that 'Brian is a swan and John went to the office'.," 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.02::factA. 0.8::factB. 0.7::factC. %hop1 0.5::factX:-xor(factA,factC). 0.7::factY:-or(factC,factB). 0.8::factZ:-and(factA,factC). %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.01600000000000001,0.9411882376475295,test,almost no chance,almost certain,There is almost no chance that 'Brian is a swan and John went to the office'.,It is almost certain that 'Brian is a swan and John went to the office'.,0,'Brian is a swan and John went to the office'. There is a very good chance that Sandra dropped the milk. It is unlikely that Jeff went to the garden. It is probably the case that Mary moved to the office. It is highly unlikely that if 'Jeff went to the garden' or 'Sandra dropped the milk' or both then Jessica is a cat. It is almost certain that if either 'Sandra dropped the milk' or 'Mary moved to the office' but not both then Greg is white. It is almost certain that if either 'Jeff went to the garden' or 'Mary moved to the office' but not both then Brian is a swan.,There is little chance that 'Jeff went to the garden and Mary moved to the office'.," 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.8::factA. 0.2::factB. 0.7::factC. %hop1 0.05::factX:-or(factB,factA). 0.95::factY:-xor(factA,factC). 0.95::factZ:-xor(factB,factC). %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.14,0.9445889177835567,test,little chance,almost certain,There is little chance that 'Jeff went to the garden and Mary moved to the office'.,It is almost certain that 'Jeff went to the garden and Mary moved to the office'.,1,'Jeff went to the garden and Mary moved to the office'. There is a very good chance that Brian is a swan. It is unlikely that John took the football. There is little chance that Sandra got the milk. It is probable that if either 'Brian is a swan' or 'Sandra got the milk' but not both then Yann is hungry. There is a very good chance that if either 'Sandra got the milk' or 'John took the football' but not both then Greg is a rhino. It is almost certain that if either 'John took the football' or 'Brian is a swan' but not both then Julius is green.,Chances are slight that 'Yann is hungry' or 'Greg is a rhino' or both.," 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.8::factA. 0.2::factB. 0.1::factC. %hop1 0.7::factX:-xor(factA,factC). 0.8::factY:-xor(factC,factB). 0.95::factZ:-xor(factB,factA). %hop2 conclusion:-or(factX,factY). query(conclusion). ",0.6364,0.9297859571914383,test,better than even,chances are slight,There is a better than even chance that 'Yann is hungry' or 'Greg is a rhino' or both.,Chances are slight that 'Yann is hungry' or 'Greg is a rhino' or both.,0,'Yann is hungry' or 'Greg is a rhino' or both. It is probable that Bernhard is a frog. We doubt that Julius is white. It is probable that Winona is a wolf. It is probably the case that if either 'Bernhard is a frog' or 'Julius is white' but not both then Emily is a wolf. Chances are slight that if 'Bernhard is a frog' or 'Winona is a wolf' or both then Brian is a rhino. We doubt that if either 'Bernhard is a frog' or 'Julius is white' but not both then Mary dropped the milk.,It is highly likely that 'Brian is a rhino and Mary dropped the milk'.," 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.7::factA. 0.2::factB. 0.7::factC. %hop1 0.7::factX:-xor(factA,factB). 0.1::factY:-or(factA,factC). 0.2::factZ:-xor(factA,factB). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.012040000000000006,0.9891978395679136,test,almost no chance,highly likely,There is almost no chance that 'Brian is a rhino and Mary dropped the milk'.,It is highly likely that 'Brian is a rhino and Mary dropped the milk'.,0,'Brian is a rhino and Mary dropped the milk'. We doubt that Lily is a swan. It is probably not the case that Gertrude is a cat. It is probable that Mary left the milk. It is highly likely that if 'Mary left the milk and Lily is a swan' then John moved to the office. There is little chance that if 'Lily is a swan' or 'Mary left the milk' or both then Daniel dropped the apple. It is impossible that if either 'Lily is a swan' or 'Mary left the milk' but not both then Brian is a frog.,We believe that either 'Gertrude is a cat' or 'Brian is a frog' but not both.," 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.25::factB. 0.7::factC. %hop1 0.9::factX:-and(factC,factA). 0.1::factY:-or(factA,factC). 0.0::factZ:-xor(factA,factC). %hop2 conclusion:-xor(factB,factZ). query(conclusion). ",0.25,0.9717943588717743,test,probably not,we believe,It is probably not the case that either 'Gertrude is a cat' or 'Brian is a frog' but not both.,We believe that either 'Gertrude is a cat' or 'Brian is a frog' but not both.,0,Either 'Gertrude is a cat' or 'Brian is a frog' but not both. It is likely that John got the milk. It is probable that Brian is a swan. Chances are about even that Greg is yellow. There is little chance that if either 'Brian is a swan' or 'John got the milk' but not both then Jessica is a cat. It is unlikely that if 'Greg is yellow and Brian is a swan' then Bill went to the garden. It is impossible that if 'John got the milk and Brian is a swan' then Bernhard is a rhino.,It is probable that either 'Bernhard is a rhino' or 'John got the milk' but not both.," 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.7::factA. 0.7::factB. 0.5::factC. %hop1 0.1::factX:-xor(factB,factA). 0.2::factY:-and(factC,factB). 0.0::factZ:-and(factA,factB). %hop2 conclusion:-xor(factZ,factA). query(conclusion). ",0.7,0.9443888777755551,test,probable,improbable,It is probable that either 'Bernhard is a rhino' or 'John got the milk' but not both.,It is improbable that either 'Bernhard is a rhino' or 'John got the milk' but not both.,1,Either 'Bernhard is a rhino' or 'John got the milk' but not both. It is unlikely that John picked up the milk. There is almost no chance that Julius is yellow. It is likely that Lily is a rhino. Chances are about even that if 'John picked up the milk and Julius is yellow' then Bernhard is a frog. It is probable that if 'John picked up the milk' or 'Lily is a rhino' or both then Brian is green. Chances are slight that if either 'Julius is yellow' or 'John picked up the milk' but not both then Jason is thirsty.,It is impossible that 'Julius is yellow and Bernhard is a frog'.," 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.02::factB. 0.7::factC. %hop1 0.5::factX:-and(factA,factB). 0.7::factY:-or(factA,factC). 0.1::factZ:-xor(factB,factA). %hop2 conclusion:-and(factB,factX). query(conclusion). ",0.0020000000000000005,0.9379875975195039,test,impossible,very good chance,It is impossible that 'Julius is yellow and Bernhard is a frog'.,There is a very good chance that 'Julius is yellow and Bernhard is a frog'.,1,'Julius is yellow and Bernhard is a frog'. There is almost no chance that John left the milk. It is probably not the case that Lily is white. It is likely that Greg is a rhino. There is a better than even chance that if 'John left the milk and Greg is a rhino' then Antoine is thirsty. There is a very good chance that if either 'Greg is a rhino' or 'John left the milk' but not both then Jeff went to the bedroom. There is little chance that if either 'Greg is a rhino' or 'Lily is white' but not both then Brian is a swan.,There is a better than even chance that either 'Antoine is thirsty' or 'Jeff went to the bedroom' but not both.," 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.02::factA. 0.25::factB. 0.7::factC. %hop1 0.6::factX:-and(factA,factC). 0.8::factY:-xor(factC,factA). 0.1::factZ:-xor(factC,factB). %hop2 conclusion:-xor(factX,factY). query(conclusion). ",0.5619999999999999,0.9667933586717343,test,better than even,improbable,There is a better than even chance that either 'Antoine is thirsty' or 'Jeff went to the bedroom' but not both.,It is improbable that either 'Antoine is thirsty' or 'Jeff went to the bedroom' but not both.,1,Either 'Antoine is thirsty' or 'Jeff went to the bedroom' but not both. It is probable that Gertrude is a wolf. It is highly unlikely that Lily is green. It is certain that Greg is a rhino. There is a very good chance that if 'Gertrude is a wolf' or 'Lily is green' or both then Daniel dropped the milk. It is highly likely that if 'Greg is a rhino and Gertrude is a wolf' then Jeff went to the hallway. There is a very good chance that if 'Gertrude is a wolf' or 'Greg is a rhino' or both then Bernhard is a lion.,It is probable that 'Daniel dropped the milk' or 'Gertrude is a wolf' or both.," 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.7::factA. 0.05::factB. 1.0::factC. %hop1 0.8::factX:-or(factA,factB). 0.9::factY:-and(factC,factA). 0.8::factZ:-or(factA,factC). %hop2 conclusion:-or(factX,factA). query(conclusion). ",0.712,0.965993198639728,test,probable,impossible,It is probable that 'Daniel dropped the milk' or 'Gertrude is a wolf' or both.,It is impossible that 'Daniel dropped the milk' or 'Gertrude is a wolf' or both.,1,'Daniel dropped the milk' or 'Gertrude is a wolf' or both. It is highly unlikely that John went to the bedroom. It is impossible that Sandra took the milk. It is almost certain that Brian is a lion. There is a very good chance that if 'John went to the bedroom' or 'Brian is a lion' or both then Jason is tired. It is probable that if 'Sandra took the milk and John went to the bedroom' then Bernhard is a frog. It is probable that if 'Brian is a lion' or 'John went to the bedroom' or both then Lily is yellow.,We believe that 'Sandra took the milk' or 'Jason is tired' or both.," 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.0::factB. 0.95::factC. %hop1 0.8::factX:-or(factA,factC). 0.7::factY:-and(factB,factA). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-or(factB,factX). query(conclusion). ",0.762,0.9275855171034206,test,we believe,chances are slight,We believe that 'Sandra took the milk' or 'Jason is tired' or both.,Chances are slight that 'Sandra took the milk' or 'Jason is tired' or both.,1,'Sandra took the milk' or 'Jason is tired' or both. It is highly unlikely that Brian is a swan. It is highly likely that Mary got the football. Chances are slight that Bernhard is white. Chances are slight that if 'Brian is a swan' or 'Bernhard is white' or both then Jessica is a mouse. It is highly likely that if 'Mary got the football' or 'Brian is a swan' or both then Greg is white. It is impossible that if 'Brian is a swan' or 'Mary got the football' or both then John went to the garden.,There is little chance that either 'Mary got the football' or 'Bernhard is white' but not both.," 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.9::factB. 0.1::factC. %hop1 0.1::factX:-or(factA,factC). 0.9::factY:-or(factB,factA). 0.0::factZ:-or(factA,factB). %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.82,0.9817963592718544,test,very good chance,little chance,There is a very good chance that either 'Mary got the football' or 'Bernhard is white' but not both.,There is little chance that either 'Mary got the football' or 'Bernhard is white' but not both.,0,Either 'Mary got the football' or 'Bernhard is white' but not both. There is a very good chance that Mary dropped the apple. Chances are slight that John went to the kitchen. It is highly unlikely that Lily is a swan. It is probable that if either 'Mary dropped the apple' or 'Lily is a swan' but not both then Daniel got the milk. Chances are slight that if either 'Mary dropped the apple' or 'Lily is a swan' but not both then Bernhard is a rhino. It is improbable that if 'John went to the kitchen' or 'Lily is a swan' or both then Brian is green.,It is highly unlikely that 'Lily is a swan' or 'Brian is green' or both.," 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.8::factA. 0.1::factB. 0.05::factC. %hop1 0.7::factX:-xor(factA,factC). 0.1::factY:-xor(factA,factC). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-or(factC,factZ). query(conclusion). ",0.0595,0.9653930786157231,test,highly unlikely,certain,It is highly unlikely that 'Lily is a swan' or 'Brian is green' or both.,It is certain that 'Lily is a swan' or 'Brian is green' or both.,1,'Lily is a swan' or 'Brian is green' or both. There is a better than even chance that Gertrude is a sheep. It is highly unlikely that Julius is white. It is improbable that Bernhard is a frog. Chances are slight that if 'Bernhard is a frog' or 'Julius is white' or both then Mary moved to the garden. There is little chance that if 'Gertrude is a sheep' or 'Bernhard is a frog' or both then Daniel left the milk. It is highly likely that if either 'Bernhard is a frog' or 'Julius is white' but not both then Brian is a lion.,It is probably the case that 'Bernhard is a frog' or 'Julius is white' or both.," 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.05::factB. 0.1::factC. %hop1 0.1::factX:-or(factC,factB). 0.1::factY:-or(factA,factC). 0.9::factZ:-xor(factC,factB). %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.14500000000000005,0.9307861572314463,test,chances are slight,probably,Chances are slight that 'Bernhard is a frog' or 'Julius is white' or both.,It is probably the case that 'Bernhard is a frog' or 'Julius is white' or both.,0,'Bernhard is a frog' or 'Julius is white' or both. There is little chance that Lily is a swan. Chances are slight that Bernhard is yellow. There is almost no chance that Brian is a frog. It is almost certain that if either 'Lily is a swan' or 'Brian is a frog' but not both then Greg is a lion. It is highly unlikely that if 'Brian is a frog' or 'Lily is a swan' or both then Bill went to the office. It is improbable that if either 'Lily is a swan' or 'Bernhard is yellow' but not both then John moved to the garden.,There is almost no chance that 'Lily is a swan and Bernhard is yellow'.," 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.1::factB. 0.02::factC. %hop1 0.95::factX:-xor(factA,factC). 0.05::factY:-or(factC,factA). 0.1::factZ:-xor(factA,factB). %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.010000000000000004,0.9605921184236847,test,almost no chance,almost certain,There is almost no chance that 'Lily is a swan and Bernhard is yellow'.,It is almost certain that 'Lily is a swan and Bernhard is yellow'.,1,'Lily is a swan and Bernhard is yellow'. Chances are slight that Winona is a cat. We believe that Julius is white. It is improbable that Greg is a rhino. It is likely that if 'Julius is white' or 'Greg is a rhino' or both then Sandra left the football. Chances are about even that if 'Julius is white' or 'Winona is a cat' or both then Jessica is a mouse. It is improbable that if either 'Greg is a rhino' or 'Winona is a cat' but not both then Mary went to the kitchen.,It is impossible that 'Jessica is a mouse and Mary went to the kitchen'.," 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.75::factB. 0.1::factC. %hop1 0.7::factX:-or(factB,factC). 0.5::factY:-or(factB,factA). 0.1::factZ:-xor(factC,factA). %hop2 conclusion:-and(factY,factZ). query(conclusion). ",0.007875000000000005,0.917383476695339,test,impossible,we believe,It is impossible that 'Jessica is a mouse and Mary went to the kitchen'.,We believe that 'Jessica is a mouse and Mary went to the kitchen'.,1,'Jessica is a mouse and Mary went to the kitchen'. It is likely that Daniel took the milk. It is probably the case that Brian is green. It is certain that Bernhard is a swan. It is certain that if 'Brian is green and Bernhard is a swan' then Jessica is a mouse. It is probably the case that if 'Bernhard is a swan' or 'Brian is green' or both then Mary dropped the apple. It is probably not the case that if 'Bernhard is a swan and Brian is green' then Julius is a rhino.,It is improbable that 'Julius is a rhino and Mary dropped the apple'.," 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.7::factA. 0.7::factB. 1.0::factC. %hop1 1.0::factX:-and(factB,factC). 0.7::factY:-or(factC,factB). 0.25::factZ:-and(factC,factB). %hop2 conclusion:-and(factZ,factY). query(conclusion). ",0.12249999999999996,0.9983996799359872,test,improbable,very good chance,It is improbable that 'Julius is a rhino and Mary dropped the apple'.,There is a very good chance that 'Julius is a rhino and Mary dropped the apple'.,1,'Julius is a rhino and Mary dropped the apple'. There is a better than even chance that Emily is a cat. It is highly likely that Brian is a lion. It is highly likely that Mary went to the office. It is unlikely that if 'Mary went to the office and Brian is a lion' then Julius is yellow. It is highly likely that if 'Mary went to the office' or 'Brian is a lion' or both then Lily is a frog. There is little chance that if 'Brian is a lion' or 'Mary went to the office' or both then Bernhard is green.,Chances are about even that 'Brian is a lion and Emily 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.6::factA. 0.9::factB. 0.9::factC. %hop1 0.2::factX:-and(factC,factB). 0.9::factY:-or(factC,factB). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.5399999999999999,0.9715943188637728,test,about even,almost certain,Chances are about even that 'Brian is a lion and Emily is a cat'.,It is almost certain that 'Brian is a lion and Emily is a cat'.,1,'Brian is a lion and Emily is a cat'. Chances are about even that Brian is a rhino. It is unlikely that Greg is white. There is a better than even chance that Julius is yellow. It is almost certain that if 'Brian is a rhino' or 'Julius is yellow' or both then Jeff left the apple. It is probable that if 'Brian is a rhino and Julius is yellow' then Mary got the apple. It is almost certain that if 'Brian is a rhino' or 'Greg is white' or both then John picked up the milk.,There is a very good chance that 'Jeff left the apple' or 'Greg is white' or both.," 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.5::factA. 0.2::factB. 0.6::factC. %hop1 0.95::factX:-or(factA,factC). 0.7::factY:-and(factA,factC). 0.95::factZ:-or(factA,factB). %hop2 conclusion:-or(factX,factB). query(conclusion). ",0.808,0.912382476495299,test,very good chance,impossible,There is a very good chance that 'Jeff left the apple' or 'Greg is white' or both.,It is impossible that 'Jeff left the apple' or 'Greg is white' or both.,1,'Jeff left the apple' or 'Greg is white' or both. It is probable that Lily is a rhino. There is a very good chance that Yann is tired. Chances are about even that Emily is a mouse. Chances are slight that if 'Yann is tired and Emily is a mouse' then Daniel put down the milk. It is improbable that if either 'Lily is a rhino' or 'Emily is a mouse' but not both then Brian is a lion. There is a very good chance that if either 'Yann is tired' or 'Lily is a rhino' but not both then John went to the garden.,It is highly likely that either 'John went to the garden' or 'Daniel put down the milk' but not both.," 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.7::factA. 0.8::factB. 0.5::factC. %hop1 0.1::factX:-and(factB,factC). 0.1::factY:-xor(factA,factC). 0.8::factZ:-xor(factB,factA). %hop2 conclusion:-xor(factZ,factX). query(conclusion). ",0.3248,0.9091818363672735,test,probably not,highly likely,It is probably not the case that either 'John went to the garden' or 'Daniel put down the milk' but not both.,It is highly likely that either 'John went to the garden' or 'Daniel put down the milk' but not both.,0,Either 'John went to the garden' or 'Daniel put down the milk' but not both. It is likely that Winona is a wolf. Chances are about even that Mary went to the bedroom. It is certain that Bernhard is gray. It is probably not the case that if either 'Bernhard is gray' or 'Winona is a wolf' but not both then Emily is a wolf. There is a better than even chance that if either 'Winona is a wolf' or 'Mary went to the bedroom' but not both then Daniel took the apple. We doubt that if 'Winona is a wolf and Mary went to the bedroom' then Brian is a swan.,It is probably the case that 'Winona is a wolf' or 'Brian is a swan' or both.," 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.7::factA. 0.5::factB. 1.0::factC. %hop1 0.25::factX:-xor(factC,factA). 0.6::factY:-xor(factA,factB). 0.2::factZ:-and(factA,factB). %hop2 conclusion:-or(factA,factZ). query(conclusion). ",0.6999999999999998,0.9041808361672334,test,probably,almost no chance,It is probably the case that 'Winona is a wolf' or 'Brian is a swan' or both.,There is almost no chance that 'Winona is a wolf' or 'Brian is a swan' or both.,1,'Winona is a wolf' or 'Brian is a swan' or both. It is unlikely that Julius is a swan. It is probably not the case that Brian is green. Chances are about even that Mary picked up the milk. We believe that if 'Julius is a swan and Brian is green' then Daniel left the apple. We believe that if 'Mary picked up the milk' or 'Julius is a swan' or both then John went to the garden. There is little chance that if either 'Brian is green' or 'Julius is a swan' but not both then Bernhard is gray.,It is impossible that 'John went to the garden and Mary picked up the milk'.," 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.25::factB. 0.5::factC. %hop1 0.75::factX:-and(factA,factB). 0.75::factY:-or(factC,factA). 0.1::factZ:-xor(factB,factA). %hop2 conclusion:-and(factY,factC). query(conclusion). ",0.375,0.9109821964392879,test,about even,impossible,Chances are about even that 'John went to the garden and Mary picked up the milk'.,It is impossible that 'John went to the garden and Mary picked up the milk'.,0,'John went to the garden and Mary picked up the milk'. It is impossible that Bill moved to the office. It is highly likely that Gertrude is a mouse. It is probably the case that Mary went to the garden. There is little chance that if 'Gertrude is a mouse' or 'Bill moved to the office' or both then Sandra dropped the apple. It is probable that if 'Gertrude is a mouse and Bill moved to the office' then John took the football. It is highly likely that if either 'Bill moved to the office' or 'Mary went to the garden' but not both then Brian is yellow.,It is impossible that either 'John took the football' or 'Bill moved to the office' but not both.," 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.0::factA. 0.9::factB. 0.7::factC. %hop1 0.1::factX:-or(factB,factA). 0.7::factY:-and(factB,factA). 0.9::factZ:-xor(factA,factC). %hop2 conclusion:-xor(factY,factA). query(conclusion). ",0.0,0.9401880376075215,test,impossible,probable,It is impossible that either 'John took the football' or 'Bill moved to the office' but not both.,It is probable that either 'John took the football' or 'Bill moved to the office' but not both.,1,Either 'John took the football' or 'Bill moved to the office' but not both. It is highly likely that Julius is green. Chances are about even that Jeff dropped the apple. It is impossible that Mary went to the office. There is little chance that if 'Mary went to the office' or 'Jeff dropped the apple' or both then Lily is a frog. It is probable that if 'Jeff dropped the apple' or 'Julius is green' or both then Bernhard is white. It is probable that if 'Mary went to the office' or 'Julius is green' or both then Emily is a wolf.,It is likely that 'Mary went to the office' or 'Bernhard is white' or both.," 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.5::factB. 0.0::factC. %hop1 0.1::factX:-or(factC,factB). 0.7::factY:-or(factB,factA). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-or(factC,factY). query(conclusion). ",0.665,0.9365873174634927,test,likely,chances are slight,It is likely that 'Mary went to the office' or 'Bernhard is white' or both.,Chances are slight that 'Mary went to the office' or 'Bernhard is white' or both.,1,'Mary went to the office' or 'Bernhard is white' or both. It is improbable that Winona is a sheep. Chances are about even that Julius is green. There is little chance that Bernhard is a swan. It is likely that if 'Bernhard is a swan' or 'Winona is a sheep' or both then Brian is a rhino. It is impossible that if either 'Bernhard is a swan' or 'Julius is green' but not both then Mary grabbed the milk. It is almost certain that if 'Bernhard is a swan and Julius is green' then Greg is a frog.,It is probably the case that either 'Mary grabbed the milk' or 'Brian is a rhino' but not both.," 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.5::factB. 0.1::factC. %hop1 0.7::factX:-or(factC,factA). 0.0::factY:-xor(factC,factB). 0.95::factZ:-and(factC,factB). %hop2 conclusion:-xor(factY,factX). query(conclusion). ",0.13300000000000003,0.9655931186237248,test,improbable,probably,It is improbable that either 'Mary grabbed the milk' or 'Brian is a rhino' but not both.,It is probably the case that either 'Mary grabbed the milk' or 'Brian is a rhino' but not both.,0,Either 'Mary grabbed the milk' or 'Brian is a rhino' but not both. It is improbable that Brian is gray. It is almost certain that Winona is a mouse. Chances are about even that Yann is hungry. It is improbable that if 'Yann is hungry' or 'Winona is a mouse' or both then Lily is white. Chances are about even that if either 'Winona is a mouse' or 'Brian is gray' but not both then Greg is a swan. It is certain that if 'Winona is a mouse and Yann is hungry' then John dropped the milk.,It is almost certain that 'Winona is a mouse' or 'Yann is hungry' or both.," 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.95::factB. 0.5::factC. %hop1 0.1::factX:-or(factC,factB). 0.5::factY:-xor(factB,factA). 1.0::factZ:-and(factB,factC). %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.975,0.9951990398079616,test,almost certain,impossible,It is almost certain that 'Winona is a mouse' or 'Yann is hungry' or both.,It is impossible that 'Winona is a mouse' or 'Yann is hungry' or both.,1,'Winona is a mouse' or 'Yann is hungry' or both. It is probably not the case that Brian is green. Chances are about even that Emily is a wolf. There is a better than even chance that Lily is a rhino. It is probably not the case that if either 'Lily is a rhino' or 'Emily is a wolf' but not both then Mary went to the office. We doubt that if 'Brian is green and Emily is a wolf' then Julius is gray. There is a better than even chance that if either 'Emily is a wolf' or 'Brian is green' but not both then John moved to the office.,It is probably not the case that 'Julius is gray' or 'John moved to the office' or both.," 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.25::factA. 0.5::factB. 0.6::factC. %hop1 0.25::factX:-xor(factC,factB). 0.2::factY:-and(factA,factB). 0.6::factZ:-xor(factB,factA). %hop2 conclusion:-or(factY,factZ). query(conclusion). ",0.32500000000000007,0.962992598519704,test,probably not,probable,It is probably not the case that 'Julius is gray' or 'John moved to the office' or both.,It is probable that 'Julius is gray' or 'John moved to the office' or both.,1,'Julius is gray' or 'John moved to the office' or both. It is probably not the case that Lily is a frog. It is probably not the case that Brian is a swan. It is likely that Julius is a lion. There is almost no chance that if 'Lily is a frog' or 'Brian is a swan' or both then John took the football. It is likely that if 'Brian is a swan and Lily is a frog' then Greg is a rhino. It is almost certain that if 'Brian is a swan' or 'Julius is a lion' or both then Mary left the milk.,It is highly likely that either 'Brian is a swan' or 'Lily is a frog' but not both.," 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.25::factA. 0.25::factB. 0.7::factC. %hop1 0.02::factX:-or(factA,factB). 0.7::factY:-and(factB,factA). 0.95::factZ:-or(factB,factC). %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.375,0.9315863172634526,test,probably not,highly likely,It is probably not the case that either 'Brian is a swan' or 'Lily is a frog' but not both.,It is highly likely that either 'Brian is a swan' or 'Lily is a frog' but not both.,0,Either 'Brian is a swan' or 'Lily is a frog' but not both. There is a very good chance that John got the football. We doubt that Lily is white. It is certain that Daniel grabbed the milk. It is improbable that if 'Lily is white and Daniel grabbed the milk' then Mary dropped the apple. It is highly unlikely that if 'Lily is white' or 'John got the football' or both then Emily is a sheep. It is unlikely that if 'John got the football and Lily is white' then Greg is gray.,We doubt that either 'Daniel grabbed the milk' or 'Emily is a sheep' but not both.," 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.8::factA. 0.2::factB. 1.0::factC. %hop1 0.1::factX:-and(factB,factC). 0.05::factY:-or(factB,factA). 0.2::factZ:-and(factA,factB). %hop2 conclusion:-xor(factC,factY). query(conclusion). ",0.958,0.9613922784556912,test,almost certain,we doubt,It is almost certain that either 'Daniel grabbed the milk' or 'Emily is a sheep' but not both.,We doubt that either 'Daniel grabbed the milk' or 'Emily is a sheep' but not both.,0,Either 'Daniel grabbed the milk' or 'Emily is a sheep' but not both. It is highly unlikely that Brian is a rhino. It is probably not the case that Greg is gray. We believe that Lily is a frog. We doubt that if 'Brian is a rhino' or 'Lily is a frog' or both then John moved to the office. It is improbable that if 'Greg is gray' or 'Brian is a rhino' or both then Mary went to the bedroom. There is a very good chance that if 'Brian is a rhino' or 'Greg is gray' or both then Julius is green.,It is almost certain that either 'John moved to the office' or 'Julius is green' but not both.," 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.25::factB. 0.75::factC. %hop1 0.2::factX:-or(factA,factC). 0.1::factY:-or(factB,factA). 0.8::factZ:-or(factA,factB). %hop2 conclusion:-xor(factX,factZ). query(conclusion). ",0.3095,0.956991398279656,test,probably not,almost certain,It is probably not the case that either 'John moved to the office' or 'Julius is green' but not both.,It is almost certain that either 'John moved to the office' or 'Julius is green' but not both.,0,Either 'John moved to the office' or 'Julius is green' but not both. It is almost certain that Bernhard is green. Chances are about even that Julius is yellow. There is almost no chance that Sandra left the milk. It is highly likely that if 'Sandra left the milk' or 'Bernhard is green' or both then Jeff went to the bedroom. There is a very good chance that if either 'Julius is yellow' or 'Sandra left the milk' but not both then John got the milk. It is probably the case that if either 'Sandra left the milk' or 'Julius is yellow' but not both then Greg is gray.,It is probably not the case that 'Greg is gray 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.95::factA. 0.5::factB. 0.02::factC. %hop1 0.9::factX:-or(factC,factA). 0.8::factY:-xor(factB,factC). 0.7::factZ:-xor(factC,factB). %hop2 conclusion:-and(factZ,factA). query(conclusion). ",0.3324999999999999,0.9045809161832367,test,probably not,highly likely,It is probably not the case that 'Greg is gray and Bernhard is green'.,It is highly likely that 'Greg is gray and Bernhard is green'.,1,'Greg is gray and Bernhard is green'. It is impossible that Emily is a mouse. It is probable that Lily is a swan. It is unlikely that Greg is white. It is probably the case that if 'Emily is a mouse' or 'Greg is white' or both then John dropped the apple. It is unlikely that if 'Lily is a swan' or 'Emily is a mouse' or both then Brian is gray. We believe that if either 'Emily is a mouse' or 'Greg is white' but not both then Mary went to the bedroom.,It is probably the case that 'John dropped the apple' or 'Mary went to the bedroom' or both.," 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.0::factA. 0.7::factB. 0.2::factC. %hop1 0.7::factX:-or(factA,factC). 0.2::factY:-or(factB,factA). 0.75::factZ:-xor(factA,factC). %hop2 conclusion:-or(factX,factZ). query(conclusion). ",0.18500000000000005,0.9857971594318864,test,unlikely,probably,It is unlikely that 'John dropped the apple' or 'Mary went to the bedroom' or both.,It is probably the case that 'John dropped the apple' or 'Mary went to the bedroom' or both.,0,'John dropped the apple' or 'Mary went to the bedroom' or both. It is probably the case that Greg is green. It is highly likely that Brian is gray. It is unlikely that Lily is a frog. It is impossible that if either 'Brian is gray' or 'Lily is a frog' but not both then Julius is a lion. There is almost no chance that if 'Greg is green and Brian is gray' then Daniel left the milk. Chances are about even that if 'Greg is green and Brian is gray' then John moved to the office.,Chances are about even that 'Daniel left the milk and Greg 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.7::factA. 0.9::factB. 0.2::factC. %hop1 0.0::factX:-xor(factB,factC). 0.02::factY:-and(factA,factB). 0.5::factZ:-and(factA,factB). %hop2 conclusion:-and(factY,factA). query(conclusion). ",0.0126,0.9759951990398079,test,almost no chance,about even,There is almost no chance that 'Daniel left the milk and Greg is green'.,Chances are about even that 'Daniel left the milk and Greg is green'.,0,'Daniel left the milk and Greg is green'. It is impossible that Lily is yellow. It is highly likely that Jessica is a cat. It is highly likely that Fred is in the cinema. It is highly likely that if 'Jessica is a cat' or 'Lily is yellow' or both then Julius is a lion. We doubt that if either 'Fred is in the cinema' or 'Lily is yellow' but not both then Bernhard is yellow. It is highly likely that if either 'Lily is yellow' or 'Fred is in the cinema' but not both then Brian is green.,It is highly unlikely that 'Brian is green' or 'Bernhard is yellow' or both.," 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.0::factA. 0.9::factB. 0.9::factC. %hop1 0.9::factX:-or(factB,factA). 0.2::factY:-xor(factC,factA). 0.9::factZ:-xor(factA,factC). %hop2 conclusion:-or(factZ,factY). query(conclusion). ",0.8280000000000001,0.9115823164632927,test,very good chance,highly unlikely,There is a very good chance that 'Brian is green' or 'Bernhard is yellow' or both.,It is highly unlikely that 'Brian is green' or 'Bernhard is yellow' or both.,0,'Brian is green' or 'Bernhard is yellow' or both. It is probable that Lily is a lion. It is probably the case that Sumit is thirsty. There is a very good chance that Bernhard is a swan. It is unlikely that if either 'Lily is a lion' or 'Sumit is thirsty' but not both then Emily is a sheep. There is little chance that if 'Bernhard is a swan and Lily is a lion' then Mary got the apple. It is probable that if 'Bernhard is a swan' or 'Sumit is thirsty' or both then Fred went to the garden.,It is highly unlikely that 'Sumit is thirsty and Bernhard is a swan'.," 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.7::factA. 0.7::factB. 0.8::factC. %hop1 0.2::factX:-xor(factA,factB). 0.1::factY:-and(factC,factA). 0.7::factZ:-or(factC,factB). %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.5599999999999999,0.9189837967593518,test,better than even,highly unlikely,There is a better than even chance that 'Sumit is thirsty and Bernhard is a swan'.,It is highly unlikely that 'Sumit is thirsty and Bernhard is a swan'.,0,'Sumit is thirsty and Bernhard is a swan'. We believe that Antoine is thirsty. It is highly unlikely that John grabbed the apple. It is unlikely that Bernhard is a frog. There is almost no chance that if 'Antoine is thirsty and Bernhard is a frog' then Jeff went to the garden. It is impossible that if 'John grabbed the apple' or 'Antoine is thirsty' or both then Sandra took the football. There is almost no chance that if 'Antoine is thirsty and Bernhard is a frog' then Lily is a lion.,It is certain that 'Jeff went to the garden and Sandra took the football'.," 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.75::factA. 0.05::factB. 0.2::factC. %hop1 0.02::factX:-and(factA,factC). 0.0::factY:-or(factB,factA). 0.02::factZ:-and(factA,factC). %hop2 conclusion:-and(factX,factY). query(conclusion). ",0.0,0.9205841168233647,test,impossible,certain,It is impossible that 'Jeff went to the garden and Sandra took the football'.,It is certain that 'Jeff went to the garden and Sandra took the football'.,0,'Jeff went to the garden and Sandra took the football'. We believe that Brian is a rhino. There is a better than even chance that Gertrude is a cat. There is a very good chance that Sandra grabbed the apple. It is probable that if 'Brian is a rhino and Gertrude is a cat' then Greg is a frog. It is probable that if either 'Gertrude is a cat' or 'Brian is a rhino' but not both then Fred dropped the milk. Chances are slight that if either 'Gertrude is a cat' or 'Sandra grabbed the apple' but not both then Mary got the football.,Chances are about even that 'Sandra grabbed the apple 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.75::factA. 0.6::factB. 0.8::factC. %hop1 0.7::factX:-and(factA,factB). 0.7::factY:-xor(factB,factA). 0.1::factZ:-xor(factB,factC). %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.48,0.9227845569113823,test,about even,almost certain,Chances are about even that 'Sandra grabbed the apple and Gertrude is a cat'.,It is almost certain that 'Sandra grabbed the apple and Gertrude is a cat'.,1,'Sandra grabbed the apple and Gertrude is a cat'. It is highly likely that Mary went to the bedroom. It is highly likely that John took the football. It is likely that Bernhard is a lion. It is certain that if either 'John took the football' or 'Mary went to the bedroom' but not both then Brian is a rhino. It is probably not the case that if 'John took the football' or 'Bernhard is a lion' or both then Sandra dropped the apple. It is almost certain that if 'Bernhard is a lion and John took the football' then Jeff moved to the garden.,Chances are about even that 'Brian is a rhino' or 'Sandra dropped the apple' or both.," 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.9::factB. 0.7::factC. %hop1 1.0::factX:-xor(factB,factA). 0.25::factY:-or(factB,factC). 0.95::factZ:-and(factC,factB). %hop2 conclusion:-or(factX,factY). query(conclusion). ",0.3842499999999999,0.9647929585917183,test,about even,certain,Chances are about even that 'Brian is a rhino' or 'Sandra dropped the apple' or both.,It is certain that 'Brian is a rhino' or 'Sandra dropped the apple' or both.,1,'Brian is a rhino' or 'Sandra dropped the apple' or both. There is a very good chance that Lily is green. It is certain that Brian is a rhino. There is a very good chance that Julius is gray. There is a better than even chance that if 'Brian is a rhino and Julius is gray' then John took the apple. It is probably not the case that if either 'Lily is green' or 'Julius is gray' but not both then Bill went to the office. It is probably not the case that if 'Julius is gray and Lily is green' then Bernhard is yellow.,It is unlikely that 'Lily is green and Bernhard is yellow'.," 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.8::factA. 1.0::factB. 0.8::factC. %hop1 0.6::factX:-and(factB,factC). 0.25::factY:-xor(factA,factC). 0.25::factZ:-and(factC,factA). %hop2 conclusion:-and(factA,factZ). query(conclusion). ",0.16000000000000003,0.9273854770954191,test,unlikely,we believe,It is unlikely that 'Lily is green and Bernhard is yellow'.,We believe that 'Lily is green and Bernhard is yellow'.,1,'Lily is green and Bernhard is yellow'. It is highly unlikely that Julius is a frog. We doubt that Brian is a lion. We doubt that Mary moved to the garden. It is highly likely that if 'Julius is a frog and Mary moved to the garden' then John dropped the milk. It is certain that if 'Julius is a frog and Mary moved to the garden' then Sumit is thirsty. We doubt that if 'Mary moved to the garden and Brian is a lion' then Lily is green.,It is certain that 'Brian is a lion' or 'Lily is green' or both.," 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.2::factB. 0.2::factC. %hop1 0.9::factX:-and(factA,factC). 1.0::factY:-and(factA,factC). 0.2::factZ:-and(factC,factB). %hop2 conclusion:-or(factB,factZ). query(conclusion). ",0.2,0.9931986397279456,test,unlikely,certain,It is unlikely that 'Brian is a lion' or 'Lily is green' or both.,It is certain that 'Brian is a lion' or 'Lily is green' or both.,0,'Brian is a lion' or 'Lily is green' or both. It is likely that Lily is a rhino. There is little chance that Brian is white. It is highly unlikely that Greg is a frog. It is certain that if either 'Lily is a rhino' or 'Brian is white' but not both then Julius is white. It is impossible that if 'Brian is white and Greg is a frog' then Mary went to the hallway. Chances are slight that if 'Lily is a rhino' or 'Brian is white' or both then Winona is a wolf.,We believe that 'Lily is a rhino' or 'Julius is white' or both.," 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.7::factA. 0.1::factB. 0.05::factC. %hop1 1.0::factX:-xor(factA,factB). 0.0::factY:-and(factB,factC). 0.1::factZ:-or(factA,factB). %hop2 conclusion:-or(factA,factX). query(conclusion). ",0.73,0.9739947989597919,test,we believe,improbable,We believe that 'Lily is a rhino' or 'Julius is white' or both.,It is improbable that 'Lily is a rhino' or 'Julius is white' or both.,1,'Lily is a rhino' or 'Julius is white' or both. It is probably not the case that Yann is thirsty. There is a very good chance that Mary moved to the garden. There is a better than even chance that Brian is a frog. It is certain that if either 'Brian is a frog' or 'Mary moved to the garden' but not both then John put down the apple. It is highly unlikely that if either 'Mary moved to the garden' or 'Yann is thirsty' but not both then Greg is green. We doubt that if 'Yann is thirsty and Brian is a frog' then Julius is yellow.,There is a very good chance that either 'Mary moved to the garden' or 'Julius is yellow' but not both.," 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.25::factA. 0.8::factB. 0.6::factC. %hop1 1.0::factX:-xor(factC,factB). 0.05::factY:-xor(factB,factA). 0.2::factZ:-and(factA,factC). %hop2 conclusion:-xor(factB,factZ). query(conclusion). ",0.782,0.9883976795359072,test,very good chance,little chance,There is a very good chance that either 'Mary moved to the garden' or 'Julius is yellow' but not both.,There is little chance that either 'Mary moved to the garden' or 'Julius is yellow' but not both.,1,Either 'Mary moved to the garden' or 'Julius is yellow' but not both. There is little chance that Gertrude is a sheep. Chances are slight that Mary went to the bedroom. It is almost certain that Sandra is in the kitchen. It is almost certain that if 'Sandra is in the kitchen' or 'Gertrude is a sheep' or both then Brian is green. There is little chance that if either 'Mary went to the bedroom' or 'Sandra is in the kitchen' but not both then Greg is yellow. It is likely that if 'Mary went to the bedroom and Sandra is in the kitchen' then Lily is a lion.,There is little chance that 'Mary went to the bedroom and Brian 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.1::factB. 0.95::factC. %hop1 0.95::factX:-or(factC,factA). 0.1::factY:-xor(factB,factC). 0.7::factZ:-and(factB,factC). %hop2 conclusion:-and(factB,factX). query(conclusion). ",0.09072500000000001,0.9637927585517103,test,little chance,we believe,There is little chance that 'Mary went to the bedroom and Brian is green'.,We believe that 'Mary went to the bedroom and Brian is green'.,1,'Mary went to the bedroom and Brian is green'. It is highly likely that Julius is white. We believe that Lily is a swan. Chances are slight that Sumit is tired. It is probably not the case that if 'Sumit is tired and Julius is white' then Jeff discarded the milk. Chances are slight that if 'Sumit is tired and Julius is white' then Greg is gray. It is probably the case that if 'Sumit is tired' or 'Julius is white' or both then Bernhard is a frog.,Chances are slight that either 'Bernhard is a frog' or 'Greg is gray' but not both.," 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.75::factB. 0.1::factC. %hop1 0.25::factX:-and(factC,factA). 0.1::factY:-and(factC,factA). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-xor(factZ,factY). query(conclusion). ",0.6334,0.9775955191038208,test,better than even,chances are slight,There is a better than even chance that either 'Bernhard is a frog' or 'Greg is gray' but not both.,Chances are slight that either 'Bernhard is a frog' or 'Greg is gray' but not both.,0,Either 'Bernhard is a frog' or 'Greg is gray' but not both. We believe that Gertrude is a mouse. It is certain that Brian is a rhino. It is highly likely that Greg is gray. Chances are about even that if 'Gertrude is a mouse' or 'Greg is gray' or both then John left the football. We believe that if either 'Brian is a rhino' or 'Gertrude is a mouse' but not both then Lily is a swan. Chances are about even that if either 'Greg is gray' or 'Gertrude is a mouse' but not both then Fred dropped the apple.,It is probably the case that 'Fred dropped the apple and Gertrude is a mouse'.," 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.75::factA. 1.0::factB. 0.9::factC. %hop1 0.5::factX:-or(factA,factC). 0.75::factY:-xor(factB,factA). 0.5::factZ:-xor(factC,factA). %hop2 conclusion:-and(factZ,factA). query(conclusion). ",0.03749999999999999,0.9403880776155231,test,highly unlikely,probably,It is highly unlikely that 'Fred dropped the apple and Gertrude is a mouse'.,It is probably the case that 'Fred dropped the apple and Gertrude is a mouse'.,0,'Fred dropped the apple and Gertrude is a mouse'. It is almost certain that Daniel got the football. It is likely that Jason is tired. Chances are about even that Greg is white. We believe that if 'Greg is white' or 'Daniel got the football' or both then Lily is yellow. It is highly unlikely that if either 'Jason is tired' or 'Daniel got the football' but not both then Mary went to the bedroom. It is probably the case that if 'Greg is white' or 'Daniel got the football' or both then Julius is a lion.,Chances are slight that 'Julius is a lion and Daniel got the football'.," 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.95::factA. 0.7::factB. 0.5::factC. %hop1 0.75::factX:-or(factC,factA). 0.05::factY:-xor(factB,factA). 0.7::factZ:-or(factC,factA). %hop2 conclusion:-and(factZ,factA). query(conclusion). ",0.6649999999999999,0.9721944388877776,test,probably,chances are slight,It is probably the case that 'Julius is a lion and Daniel got the football'.,Chances are slight that 'Julius is a lion and Daniel got the football'.,0,'Julius is a lion and Daniel got the football'. There is little chance that John went to the hallway. There is almost no chance that Julius is a swan. There is a very good chance that Mary left the milk. It is highly unlikely that if 'Mary left the milk' or 'John went to the hallway' or both then Bernhard is a swan. It is highly unlikely that if either 'Mary left the milk' or 'Julius is a swan' but not both then Lily is a lion. It is probably the case that if 'John went to the hallway and Julius is a swan' then Brian is a frog.,There is little chance that either 'Mary left the milk' or 'Bernhard is a swan' but not both.," 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.02::factB. 0.8::factC. %hop1 0.05::factX:-or(factC,factA). 0.05::factY:-xor(factC,factB). 0.7::factZ:-and(factA,factB). %hop2 conclusion:-xor(factC,factX). query(conclusion). ",0.761,0.9661932386477295,test,we believe,little chance,We believe that either 'Mary left the milk' or 'Bernhard is a swan' but not both.,There is little chance that either 'Mary left the milk' or 'Bernhard is a swan' but not both.,0,Either 'Mary left the milk' or 'Bernhard is a swan' but not both. It is probable that Sandra left the football. It is probable that Winona is a mouse. It is highly unlikely that John went to the garden. There is little chance that if 'John went to the garden and Winona is a mouse' then Julius is a lion. It is certain that if 'John went to the garden' or 'Sandra left the football' or both then Lily is gray. It is highly likely that if either 'Winona is a mouse' or 'Sandra left the football' but not both then Brian is a rhino.,It is highly unlikely that 'John went to the garden and Sandra left the football'.," 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.7::factA. 0.7::factB. 0.05::factC. %hop1 0.1::factX:-and(factC,factB). 1.0::factY:-or(factC,factA). 0.9::factZ:-xor(factB,factA). %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.035,0.9705941188237648,test,highly unlikely,probably,It is highly unlikely that 'John went to the garden and Sandra left the football'.,It is probably the case that 'John went to the garden and Sandra left the football'.,1,'John went to the garden and Sandra left the football'. Chances are about even that Greg is gray. It is almost certain that Brian is yellow. It is highly unlikely that Mary moved to the garden. There is little chance that if 'Greg is gray' or 'Mary moved to the garden' or both then Julius is a swan. It is certain that if 'Mary moved to the garden and Brian is yellow' then Lily is a lion. It is improbable that if 'Mary moved to the garden and Greg is gray' then John left the football.,There is almost no chance that 'Greg is gray' or 'Julius is a swan' or both.," 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.5::factA. 0.95::factB. 0.05::factC. %hop1 0.1::factX:-or(factA,factC). 1.0::factY:-and(factC,factB). 0.1::factZ:-and(factC,factA). %hop2 conclusion:-or(factA,factX). query(conclusion). ",0.5025000000000001,0.9797959591918384,test,about even,almost no chance,Chances are about even that 'Greg is gray' or 'Julius is a swan' or both.,There is almost no chance that 'Greg is gray' or 'Julius is a swan' or both.,0,'Greg is gray' or 'Julius is a swan' or both. It is probably not the case that Sandra got the milk. There is a very good chance that Bernhard is gray. There is a better than even chance that Brian is a rhino. It is probable that if either 'Brian is a rhino' or 'Bernhard is gray' but not both then Julius is a frog. It is almost certain that if 'Sandra got the milk' or 'Bernhard is gray' or both then Winona is a cat. It is certain that if either 'Brian is a rhino' or 'Sandra got the milk' but not both then John went to the office.,It is certain that 'Sandra got the milk and Bernhard is gray'.," 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.25::factA. 0.8::factB. 0.6::factC. %hop1 0.7::factX:-xor(factC,factB). 0.95::factY:-or(factA,factB). 1.0::factZ:-xor(factC,factA). %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.2,0.9333866773354671,test,unlikely,certain,It is unlikely that 'Sandra got the milk and Bernhard is gray'.,It is certain that 'Sandra got the milk and Bernhard is gray'.,0,'Sandra got the milk and Bernhard is gray'. It is probable that John went to the office. It is probably the case that Greg is white. We believe that Bernhard is yellow. There is almost no chance that if 'Greg is white and John went to the office' then Jeff left the apple. Chances are slight that if either 'Greg is white' or 'John went to the office' but not both then Brian is a swan. It is likely that if 'Bernhard is yellow and Greg is white' then Julius is gray.,We believe that 'Bernhard is yellow' or 'Julius is gray' or both.," 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.7::factA. 0.7::factB. 0.75::factC. %hop1 0.02::factX:-and(factB,factA). 0.1::factY:-xor(factB,factA). 0.7::factZ:-and(factC,factB). %hop2 conclusion:-or(factC,factZ). query(conclusion). ",0.7500000000000001,0.9587917583516703,test,we believe,impossible,We believe that 'Bernhard is yellow' or 'Julius is gray' or both.,It is impossible that 'Bernhard is yellow' or 'Julius is gray' or both.,1,'Bernhard is yellow' or 'Julius is gray' or both. It is certain that Brian is white. There is a very good chance that Julius is a lion. There is little chance that Bernhard is yellow. It is probable that if 'Julius is a lion' or 'Brian is white' or both then Mary dropped the apple. It is improbable that if either 'Brian is white' or 'Bernhard is yellow' but not both then John took the milk. It is almost certain that if 'Brian is white and Bernhard is yellow' then Lily is yellow.,It is almost certain that either 'Mary dropped the apple' or 'Brian is white' but not both.," 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 1.0::factA. 0.8::factB. 0.1::factC. %hop1 0.7::factX:-or(factB,factA). 0.1::factY:-xor(factA,factC). 0.95::factZ:-and(factA,factC). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.30000000000000004,0.9199839967993598,test,probably not,almost certain,It is probably not the case that either 'Mary dropped the apple' or 'Brian is white' but not both.,It is almost certain that either 'Mary dropped the apple' or 'Brian is white' but not both.,0,Either 'Mary dropped the apple' or 'Brian is white' but not both. It is certain that Jessica is a cat. It is unlikely that Brian is white. Chances are about even that Greg is a rhino. Chances are slight that if 'Brian is white and Greg is a rhino' then Julius is a swan. It is probably the case that if either 'Greg is a rhino' or 'Jessica is a cat' but not both then Mary got the milk. There is little chance that if 'Jessica is a cat' or 'Greg is a rhino' or both then John discarded the apple.,It is highly likely that either 'John discarded the apple' or 'Brian is white' but not both.," 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 1.0::factA. 0.2::factB. 0.5::factC. %hop1 0.1::factX:-and(factB,factC). 0.7::factY:-xor(factC,factA). 0.1::factZ:-or(factA,factC). %hop2 conclusion:-xor(factZ,factB). query(conclusion). ",0.26,0.9917983596719344,test,probably not,highly likely,It is probably not the case that either 'John discarded the apple' or 'Brian is white' but not both.,It is highly likely that either 'John discarded the apple' or 'Brian is white' but not both.,0,Either 'John discarded the apple' or 'Brian is white' but not both. Chances are about even that Daniel got the milk. It is likely that Gertrude is a cat. It is probable that Brian is a lion. We doubt that if either 'Brian is a lion' or 'Daniel got the milk' but not both then Julius is white. It is probably the case that if either 'Daniel got the milk' or 'Gertrude is a cat' but not both then Jason is tired. We doubt that if 'Gertrude is a cat and Daniel got the milk' then Fred went to the garden.,There is a better than even chance that either 'Fred went to the garden' or 'Gertrude is a cat' but not both.," 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.5::factA. 0.7::factB. 0.7::factC. %hop1 0.2::factX:-xor(factC,factA). 0.7::factY:-xor(factA,factB). 0.2::factZ:-and(factB,factA). %hop2 conclusion:-xor(factZ,factB). query(conclusion). ",0.6299999999999999,0.9155831166233247,test,better than even,improbable,There is a better than even chance that either 'Fred went to the garden' or 'Gertrude is a cat' but not both.,It is improbable that either 'Fred went to the garden' or 'Gertrude is a cat' but not both.,1,Either 'Fred went to the garden' or 'Gertrude is a cat' but not both. It is impossible that Bill moved to the office. We believe that Antoine is thirsty. It is probably the case that Sandra left the apple. It is certain that if 'Antoine is thirsty' or 'Sandra left the apple' or both then John put down the apple. It is probable that if either 'Antoine is thirsty' or 'Sandra left the apple' but not both then Lily is a rhino. It is highly unlikely that if either 'Sandra left the apple' or 'Antoine is thirsty' but not both then Bernhard is green.,It is highly likely that either 'John put down the apple' or 'Bernhard is green' but not both.," 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.0::factA. 0.75::factB. 0.7::factC. %hop1 1.0::factX:-or(factB,factC). 0.7::factY:-xor(factB,factC). 0.05::factZ:-xor(factC,factB). %hop2 conclusion:-xor(factX,factZ). query(conclusion). ",0.905,0.9229845969193838,test,highly likely,we doubt,It is highly likely that either 'John put down the apple' or 'Bernhard is green' but not both.,We doubt that either 'John put down the apple' or 'Bernhard is green' but not both.,1,Either 'John put down the apple' or 'Bernhard is green' but not both. It is likely that Jessica is a mouse. It is highly unlikely that Greg is a swan. We believe that John went to the kitchen. Chances are slight that if 'John went to the kitchen and Jessica is a mouse' then Mary is in the school. We doubt that if 'Greg is a swan and John went to the kitchen' then Bernhard is a frog. It is improbable that if 'Greg is a swan and Jessica is a mouse' then Lily is a rhino.,It is probable that 'Bernhard is a frog and Jessica is a mouse'.," 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.7::factA. 0.05::factB. 0.75::factC. %hop1 0.1::factX:-and(factC,factA). 0.2::factY:-and(factB,factC). 0.1::factZ:-and(factB,factA). %hop2 conclusion:-and(factY,factA). query(conclusion). ",0.005250000000000003,0.9621924384876975,test,impossible,probable,It is impossible that 'Bernhard is a frog and Jessica is a mouse'.,It is probable that 'Bernhard is a frog and Jessica is a mouse'.,0,'Bernhard is a frog and Jessica is a mouse'. It is likely that Julius is a swan. Chances are slight that Mary moved to the office. It is probable that Greg is a frog. It is highly likely that if 'Julius is a swan and Mary moved to the office' then Brian is a rhino. It is highly unlikely that if 'Greg is a frog and Julius is a swan' then Bernhard is yellow. It is almost certain that if either 'Mary moved to the office' or 'Julius is a swan' but not both then Fred left the apple.,It is impossible that 'Bernhard is yellow' or 'Fred left the apple' or both.," 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.7::factA. 0.1::factB. 0.7::factC. %hop1 0.9::factX:-and(factA,factB). 0.05::factY:-and(factC,factA). 0.95::factZ:-xor(factB,factA). %hop2 conclusion:-or(factY,factZ). query(conclusion). ",0.6305525,0.9301860372074415,test,better than even,impossible,There is a better than even chance that 'Bernhard is yellow' or 'Fred left the apple' or both.,It is impossible that 'Bernhard is yellow' or 'Fred left the apple' or both.,0,'Bernhard is yellow' or 'Fred left the apple' or both. There is almost no chance that Bernhard is a rhino. We doubt that John put down the apple. We doubt that Mary dropped the milk. It is probably not the case that if 'Mary dropped the milk and John put down the apple' then Greg is a swan. We doubt that if either 'John put down the apple' or 'Mary dropped the milk' but not both then Julius is gray. There is little chance that if 'John put down the apple' or 'Mary dropped the milk' or both then Gertrude is a cat.,It is highly likely that either 'Greg is a swan' or 'Bernhard is a rhino' but not both.," 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.02::factA. 0.2::factB. 0.2::factC. %hop1 0.25::factX:-and(factC,factB). 0.2::factY:-xor(factB,factC). 0.1::factZ:-or(factB,factC). %hop2 conclusion:-xor(factX,factA). query(conclusion). ",0.029600000000000005,0.9051810362072414,test,almost no chance,highly likely,There is almost no chance that either 'Greg is a swan' or 'Bernhard is a rhino' but not both.,It is highly likely that either 'Greg is a swan' or 'Bernhard is a rhino' but not both.,0,Either 'Greg is a swan' or 'Bernhard is a rhino' but not both.