context,hypothesis,problog,probability,rnd,split,probability_word,distractor,valid_hypothesis,invalid_hypothesis,label,hypothesis_assertion There is a very good chance that Mary moved to the garden. It is highly likely that Bernhard is green. It is likely that Sandra left the milk.,There is little chance that 'Mary moved to the garden 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.8::factA. 0.9::factB. 0.7::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.5599999999999999,0.9677935587117423,test,better than even,little chance,There is a better than even chance that 'Mary moved to the garden and Sandra left the milk'.,There is little chance that 'Mary moved to the garden and Sandra left the milk'.,0,'Mary moved to the garden and Sandra left the milk'. It is certain that Julius is a swan. Chances are slight that John moved to the garden. There is a better than even chance that Greg is a rhino.,There is a very good chance that 'John moved to the garden 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 1.0::factA. 0.1::factB. 0.6::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.10000000000000002,0.9901980396079216,test,chances are slight,very good chance,Chances are slight that 'John moved to the garden and Julius is a swan'.,There is a very good chance that 'John moved to the garden and Julius is a swan'.,0,'John moved to the garden and Julius is a swan'. It is likely that Bill went to the bedroom. There is a better than even chance that Julius is white. We believe that John left the football.,It is highly unlikely that either 'John left the football' or 'Julius 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.7::factA. 0.6::factB. 0.75::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.45000000000000007,0.9021804360872174,test,about even,highly unlikely,Chances are about even that either 'John left the football' or 'Julius is white' but not both.,It is highly unlikely that either 'John left the football' or 'Julius is white' but not both.,0,Either 'John left the football' or 'Julius is white' but not both. It is impossible that Bernhard is a frog. It is probably not the case that Mary got the milk. It is improbable that Julius is gray.,It is likely that 'Julius is gray' or 'Mary 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.0::factA. 0.25::factB. 0.1::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.325,0.9805961192238448,test,probably not,likely,It is probably not the case that 'Julius is gray' or 'Mary got the milk' or both.,It is likely that 'Julius is gray' or 'Mary got the milk' or both.,0,'Julius is gray' or 'Mary got the milk' or both. There is a better than even chance that Greg is a lion. There is a very good chance that Julius is green. It is highly unlikely that John dropped the apple.,It is certain that either 'Greg is a lion' 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.6::factA. 0.8::factB. 0.05::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.44,0.9185837167433487,test,about even,certain,Chances are about even that either 'Greg is a lion' or 'Julius is green' but not both.,It is certain that either 'Greg is a lion' or 'Julius is green' but not both.,0,Either 'Greg is a lion' or 'Julius is green' but not both. It is probable that Greg is a swan. There is almost no chance that Emily is a sheep. It is improbable that Daniel left the milk.,It is likely that 'Emily is a sheep' or 'Daniel 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.7::factA. 0.02::factB. 0.1::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.11800000000000002,0.9577915583116623,test,little chance,likely,There is little chance that 'Emily is a sheep' or 'Daniel left the milk' or both.,It is likely that 'Emily is a sheep' or 'Daniel left the milk' or both.,0,'Emily is a sheep' or 'Daniel left the milk' or both. It is highly unlikely that John dropped the apple. There is almost no chance that Brian is a swan. It is likely that Greg is green.,It is impossible that either 'John dropped the apple' 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.05::factA. 0.02::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.6799999999999999,0.9971994398879775,test,probably,impossible,It is probably the case that either 'John dropped the apple' or 'Greg is green' but not both.,It is impossible that either 'John dropped the apple' or 'Greg is green' but not both.,0,Either 'John dropped the apple' or 'Greg is green' but not both. It is probably not the case that Bill went to the garden. Chances are about even that Julius is white. It is highly unlikely that John put down the milk.,Chances are about even that 'Julius is white' 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.25::factA. 0.5::factB. 0.05::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.525,0.9479895979195839,test,about even,impossible,Chances are about even that 'Julius is white' or 'John put down the milk' or both.,It is impossible that 'Julius is white' or 'John put down the milk' or both.,1,'Julius is white' or 'John put down the milk' or both. It is likely that Brian is a lion. It is probable that John went to the kitchen. It is highly unlikely that Bernhard is yellow.,It is highly likely that 'Brian is a lion' or 'John 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.7::factA. 0.7::factB. 0.05::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.9099999999999999,0.9039807961592319,test,highly likely,chances are slight,It is highly likely that 'Brian is a lion' or 'John went to the kitchen' or both.,Chances are slight that 'Brian is a lion' or 'John went to the kitchen' or both.,1,'Brian is a lion' or 'John went to the kitchen' or both. It is impossible that Daniel got the milk. We doubt that Julius is a frog. It is probably not the case that Lily is a swan.,It is probably not the case that either 'Lily is a swan' 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.0::factA. 0.2::factB. 0.25::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.25,0.9895979195839167,test,probably not,almost certain,It is probably not the case that either 'Lily is a swan' or 'Daniel got the milk' but not both.,It is almost certain that either 'Lily is a swan' or 'Daniel got the milk' but not both.,1,Either 'Lily is a swan' or 'Daniel got the milk' but not both. We believe that Daniel dropped the apple. There is a better than even chance that Julius is white. There is a better than even chance that Greg is a rhino.,It is probably not the case that 'Greg is a rhino 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.75::factA. 0.6::factB. 0.6::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.36,0.963992798559712,test,probably not,almost certain,It is probably not the case that 'Greg is a rhino and Julius is white'.,It is almost certain that 'Greg is a rhino and Julius is white'.,1,'Greg is a rhino and Julius is white'. It is probably not the case that Daniel left the milk. It is likely that Gertrude is a mouse. Chances are slight that Brian is a frog.,It is probably not the case that 'Brian is a frog' or 'Daniel 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.25::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.325,0.9095819163832767,test,probably not,very good chance,It is probably not the case that 'Brian is a frog' or 'Daniel left the milk' or both.,There is a very good chance that 'Brian is a frog' or 'Daniel left the milk' or both.,1,'Brian is a frog' or 'Daniel left the milk' or both. It is highly unlikely that Mary got the football. It is probably the case that Greg is a frog. It is highly likely that Lily is green.,It is highly unlikely that 'Greg is a frog and Lily is green'.," and(A,B) :- A,B. or(A,B) :- A;B. nand(A,B) :- not(and(A,B)). nor(A,B) :- not(or(A,B)). xor(A,B) :- or(A,B), nand(A,B). %hop0 0.05::factA. 0.7::factB. 0.9::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.63,0.9853970794158832,test,better than even,highly unlikely,There is a better than even chance that 'Greg is a frog and Lily is green'.,It is highly unlikely that 'Greg is a frog and Lily is green'.,0,'Greg is a frog and Lily is green'. It is probably the case that Mary left the apple. It is highly unlikely that John took the football. We believe that Bernhard is green.,It is certain that 'Mary left the apple and John 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.7::factA. 0.05::factB. 0.75::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.035,0.9381876375275056,test,highly unlikely,certain,It is highly unlikely that 'Mary left the apple and John took the football'.,It is certain that 'Mary left the apple and John took the football'.,0,'Mary left the apple and John took the football'. It is unlikely that Mary dropped the milk. There is almost no chance that Lily is a rhino. It is highly likely that John went to the bedroom.,It is impossible that 'Mary dropped the milk 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.2::factA. 0.02::factB. 0.9::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.004000000000000002,0.9155831166233247,test,impossible,about even,It is impossible that 'Mary dropped the milk and Lily is a rhino'.,Chances are about even that 'Mary dropped the milk and Lily is a rhino'.,1,'Mary dropped the milk and Lily is a rhino'. It is unlikely that Mary discarded the milk. There is a better than even chance that Daniel got the football. It is impossible that Brian is gray.,It is likely that 'Mary discarded the milk' or 'Daniel 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.6::factB. 0.0::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.68,0.99499899979996,test,likely,chances are slight,It is likely that 'Mary discarded the milk' or 'Daniel got the football' or both.,Chances are slight that 'Mary discarded the milk' or 'Daniel got the football' or both.,1,'Mary discarded the milk' or 'Daniel got the football' or both. It is probably not the case that Sandra left the football. It is impossible that John got the milk. We doubt that Lily is green.,It is highly unlikely that 'Lily is green 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.25::factA. 0.0::factB. 0.2::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.05000000000000001,0.9681936387277456,test,highly unlikely,almost certain,It is highly unlikely that 'Lily is green and Sandra left the football'.,It is almost certain that 'Lily is green and Sandra left the football'.,1,'Lily is green and Sandra left the football'. It is almost certain that Mary picked up the apple. We believe that Brian is a frog. We doubt that John went to the garden.,There is almost no chance that 'Mary picked up the apple' 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.95::factA. 0.75::factB. 0.2::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.9875,0.9605921184236847,test,certain,almost no chance,It is certain that 'Mary picked up the apple' or 'Brian is a frog' or both.,There is almost no chance that 'Mary picked up the apple' or 'Brian is a frog' or both.,0,'Mary picked up the apple' or 'Brian is a frog' or both. It is almost certain that Bill went to the kitchen. It is improbable that Brian is yellow. It is probably the case that John grabbed the apple.,It is highly likely that either 'Brian is yellow' 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.95::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.86,0.9353870774154831,test,highly likely,impossible,It is highly likely that either 'Brian is yellow' or 'Bill went to the kitchen' but not both.,It is impossible that either 'Brian is yellow' or 'Bill went to the kitchen' but not both.,1,Either 'Brian is yellow' or 'Bill went to the kitchen' but not both. It is likely that John moved to the office. We doubt that Lily is green. It is probable that Bernhard is white.,There is almost no chance that either 'Lily is green' 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.7::factA. 0.2::factB. 0.7::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.62,0.9553910782156432,test,better than even,almost no chance,There is a better than even chance that either 'Lily is green' or 'John moved to the office' but not both.,There is almost no chance that either 'Lily is green' or 'John moved to the office' but not both.,0,Either 'Lily is green' or 'John moved to the office' but not both. It is probably the case that John grabbed the apple. There is almost no chance that Brian is white. It is improbable that Jeff went to the bedroom.,It is probably the case that 'Brian is white 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.02::factB. 0.1::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.0020000000000000005,0.908381676335267,test,impossible,probably,It is impossible that 'Brian is white and Jeff went to the bedroom'.,It is probably the case that 'Brian is white and Jeff went to the bedroom'.,0,'Brian is white and Jeff went to the bedroom'. Chances are about even that John went to the hallway. It is probably not the case that Brian is a rhino. It is impossible that Winona is a mouse.,Chances are about even that 'Winona is a mouse' or 'John 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.5::factA. 0.25::factB. 0.0::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.5,0.9917983596719344,test,about even,certain,Chances are about even that 'Winona is a mouse' or 'John went to the hallway' or both.,It is certain that 'Winona is a mouse' or 'John went to the hallway' or both.,1,'Winona is a mouse' or 'John went to the hallway' or both. There is a very good chance that John picked up the apple. We believe that Yann is thirsty. We doubt that Lily is a rhino.,It is likely that 'Lily is a rhino and Yann 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.8::factA. 0.75::factB. 0.2::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.15,0.9099819963992799,test,improbable,likely,It is improbable that 'Lily is a rhino and Yann is thirsty'.,It is likely that 'Lily is a rhino and Yann is thirsty'.,0,'Lily is a rhino and Yann is thirsty'. We believe that John took the milk. It is likely that Brian is a rhino. It is probably not the case that Greg is a lion.,It is highly unlikely that either 'John took 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.75::factA. 0.7::factB. 0.25::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.4,0.9603920784156832,test,about even,highly unlikely,Chances are about even that either 'John took the milk' or 'Brian is a rhino' but not both.,It is highly unlikely that either 'John took the milk' or 'Brian is a rhino' but not both.,0,Either 'John took the milk' or 'Brian is a rhino' but not both. There is a better than even chance that Yann is thirsty. We believe that Brian is a frog. We doubt that Mary went to the bedroom.,It is almost certain that 'Brian is a frog and Yann 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.6::factA. 0.75::factB. 0.2::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.45,0.9199839967993598,test,about even,almost certain,Chances are about even that 'Brian is a frog and Yann is thirsty'.,It is almost certain that 'Brian is a frog and Yann is thirsty'.,0,'Brian is a frog and Yann is thirsty'. It is likely that Jason is tired. It is improbable that Mary went to the bedroom. It is almost certain that Greg is a swan.,It is highly unlikely that 'Mary went to the bedroom 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.7::factA. 0.1::factB. 0.95::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.07,0.9313862772554511,test,highly unlikely,better than even,It is highly unlikely that 'Mary went to the bedroom and Jason is tired'.,There is a better than even chance that 'Mary went to the bedroom and Jason is tired'.,1,'Mary went to the bedroom and Jason is tired'. We doubt that Mary got the milk. We believe that Lily is green. It is likely that Greg is a frog.,Chances are about even that either 'Greg is a frog' 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.2::factA. 0.75::factB. 0.7::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.4,0.9049809961992399,test,about even,highly unlikely,Chances are about even that either 'Greg is a frog' or 'Lily is green' but not both.,It is highly unlikely that either 'Greg is a frog' or 'Lily is green' but not both.,1,Either 'Greg is a frog' or 'Lily is green' but not both. There is almost no chance that John went to the bedroom. There is almost no chance that Bernhard is a lion. It is certain that Lily is green.,It is certain that either 'John went to the bedroom' or 'Bernhard 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.02::factA. 0.02::factB. 1.0::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.039200000000000006,0.9655931186237248,test,highly unlikely,certain,It is highly unlikely that either 'John went to the bedroom' or 'Bernhard is a lion' but not both.,It is certain that either 'John went to the bedroom' or 'Bernhard is a lion' but not both.,0,Either 'John went to the bedroom' or 'Bernhard is a lion' but not both. There is a very good chance that Daniel got the milk. It is almost certain that Greg is a lion. It is highly likely that Julius is gray.,We doubt that 'Daniel got the milk' 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.8::factA. 0.95::factB. 0.9::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.98,0.9665933186637328,test,certain,we doubt,It is certain that 'Daniel got the milk' or 'Julius is gray' or both.,We doubt that 'Daniel got the milk' or 'Julius is gray' or both.,0,'Daniel got the milk' or 'Julius is gray' or both. We doubt that Bernhard is white. Chances are about even that Mary went to the bedroom. Chances are slight that Sandra got the football.,Chances are about even that 'Mary went to the bedroom 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.2::factA. 0.5::factB. 0.1::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.05000000000000001,0.915383076615323,test,highly unlikely,about even,It is highly unlikely that 'Mary went to the bedroom and Sandra got the football'.,Chances are about even that 'Mary went to the bedroom and Sandra got the football'.,0,'Mary went to the bedroom and Sandra got the football'. It is almost certain that Lily is a lion. It is certain that Mary went to the hallway. It is likely that John left the apple.,There is a very good chance that either 'Mary went to the hallway' or 'John 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.95::factA. 1.0::factB. 0.7::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.30000000000000004,0.9481896379275855,test,probably not,very good chance,It is probably not the case that either 'Mary went to the hallway' or 'John left the apple' but not both.,There is a very good chance that either 'Mary went to the hallway' or 'John left the apple' but not both.,0,Either 'Mary went to the hallway' or 'John left the apple' but not both. It is probable that Bernhard is a rhino. There is little chance that Brian is green. It is likely that Emily is a sheep.,It is probably not the case that 'Emily is a sheep' 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.1::factB. 0.7::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.9099999999999999,0.9685937187437488,test,highly likely,probably not,It is highly likely that 'Emily is a sheep' or 'Bernhard is a rhino' or both.,It is probably not the case that 'Emily is a sheep' or 'Bernhard is a rhino' or both.,0,'Emily is a sheep' or 'Bernhard is a rhino' or both. Chances are about even that Bernhard is yellow. It is highly likely that Greg is a rhino. It is almost certain that Antoine is hungry.,It is improbable that either 'Antoine is hungry' 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.5::factA. 0.9::factB. 0.95::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.14000000000000004,0.9837967593518704,test,improbable,highly likely,It is improbable that either 'Antoine is hungry' or 'Greg is a rhino' but not both.,It is highly likely that either 'Antoine is hungry' or 'Greg is a rhino' but not both.,1,Either 'Antoine is hungry' or 'Greg is a rhino' but not both. It is probably the case that Daniel grabbed the apple. There is little chance that Gertrude is a sheep. It is impossible that Julius is green.,It is highly unlikely that 'Daniel grabbed the apple 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.7::factA. 0.1::factB. 0.0::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.07,0.9657931586317263,test,highly unlikely,highly likely,It is highly unlikely that 'Daniel grabbed the apple and Gertrude is a sheep'.,It is highly likely that 'Daniel grabbed the apple and Gertrude is a sheep'.,1,'Daniel grabbed the apple and Gertrude is a sheep'. It is probably the case that Lily is a rhino. There is a better than even chance that Winona is a mouse. Chances are slight that Jessica is a cat.,There is little chance that 'Winona is a mouse' 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.7::factA. 0.6::factB. 0.1::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.88,0.9703940788157631,test,highly likely,little chance,It is highly likely that 'Winona is a mouse' or 'Lily is a rhino' or both.,There is little chance that 'Winona is a mouse' or 'Lily is a rhino' or both.,0,'Winona is a mouse' or 'Lily is a rhino' or both. There is almost no chance that Sandra is in the kitchen. It is likely that Jeff moved to the office. It is unlikely that Brian is a lion.,It is impossible that 'Brian is a lion and Sandra is in 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. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.004000000000000002,0.9873974794958992,test,impossible,certain,It is impossible that 'Brian is a lion and Sandra is in the kitchen'.,It is certain that 'Brian is a lion and Sandra is in the kitchen'.,1,'Brian is a lion and Sandra is in the kitchen'. It is probably the case that Brian is green. There is little chance that Bernhard is a swan. It is probable that Mary discarded the milk.,There is a better than even chance that 'Bernhard is a swan 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.7::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.07,0.9417883576715343,test,highly unlikely,better than even,It is highly unlikely that 'Bernhard is a swan and Mary discarded the milk'.,There is a better than even chance that 'Bernhard is a swan and Mary discarded the milk'.,0,'Bernhard is a swan and Mary discarded the milk'. It is probably not the case that Brian is yellow. Chances are about even that John put down the apple. It is probably the case that Bernhard is white.,There is little chance that 'Brian is yellow 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. 0.5::factB. 0.7::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.12500000000000003,0.9147829565913183,test,little chance,we believe,There is little chance that 'Brian is yellow and John put down the apple'.,We believe that 'Brian is yellow and John put down the apple'.,1,'Brian is yellow and John put down the apple'. It is probable that Brian is yellow. We doubt that Bernhard is white. It is impossible that John went to the garden.,It is probably the case that either 'John went to the garden' 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.7::factA. 0.2::factB. 0.0::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.2,0.9543908781756352,test,unlikely,probably,It is unlikely that either 'John went to the garden' or 'Bernhard is white' but not both.,It is probably the case that either 'John went to the garden' or 'Bernhard is white' but not both.,0,Either 'John went to the garden' or 'Bernhard is white' but not both. Chances are slight that Greg is a swan. It is almost certain that Brian is a lion. It is highly likely that Mary dropped the apple.,There is little chance that 'Mary dropped the apple' 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.1::factA. 0.95::factB. 0.9::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.91,0.9309861972394479,test,highly likely,little chance,It is highly likely that 'Mary dropped the apple' or 'Greg is a swan' or both.,There is little chance that 'Mary dropped the apple' or 'Greg is a swan' or both.,0,'Mary dropped the apple' or 'Greg is a swan' or both. Chances are about even that Julius is a swan. There is a very good chance that Brian is a frog. There is a better than even chance that Sandra left the football.,It is probably not the case that 'Brian is a frog' 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.8::factB. 0.6::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.9,0.9753950790158031,test,highly likely,probably not,It is highly likely that 'Brian is a frog' or 'Julius is a swan' or both.,It is probably not the case that 'Brian is a frog' or 'Julius is a swan' or both.,0,'Brian is a frog' or 'Julius is a swan' or both. There is almost no chance that Daniel left the football. It is probably not the case that Brian is yellow. Chances are slight that John picked up the apple.,There is a better than even chance that 'Daniel left the football 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.02::factA. 0.25::factB. 0.1::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.0020000000000000005,0.9179835967193438,test,impossible,better than even,It is impossible that 'Daniel left the football and John picked up the apple'.,There is a better than even chance that 'Daniel left the football and John picked up the apple'.,0,'Daniel left the football and John picked up the apple'. It is likely that Bernhard is white. It is highly unlikely that John went to the garden. There is a better than even chance that Julius is a frog.,There is little chance that either 'Julius is a frog' or 'John 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.7::factA. 0.05::factB. 0.6::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.59,0.9315863172634526,test,better than even,little chance,There is a better than even chance that either 'Julius is a frog' or 'John went to the garden' but not both.,There is little chance that either 'Julius is a frog' or 'John went to the garden' but not both.,0,Either 'Julius is a frog' or 'John went to the garden' but not both. It is highly unlikely that Greg is a frog. Chances are slight that Mary went to the kitchen. It is highly unlikely that Sandra put down the milk.,It is impossible that 'Mary went to the kitchen and Sandra 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.05::factA. 0.1::factB. 0.05::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.005000000000000002,0.9097819563912782,test,impossible,we believe,It is impossible that 'Mary went to the kitchen and Sandra put down the milk'.,We believe that 'Mary went to the kitchen and Sandra put down the milk'.,1,'Mary went to the kitchen and Sandra put down the milk'. It is probably not the case that Brian is yellow. There is almost no chance that Sandra got the football. There is little chance that Fred left the apple.,It is probably not the case that either 'Fred left the apple' or 'Brian 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.02::factB. 0.1::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.30000000000000004,0.9145829165833167,test,probably not,likely,It is probably not the case that either 'Fred left the apple' or 'Brian is yellow' but not both.,It is likely that either 'Fred left the apple' or 'Brian is yellow' but not both.,1,Either 'Fred left the apple' or 'Brian is yellow' but not both. It is impossible that Lily is yellow. We believe that John got the apple. There is a better than even chance that Greg is a frog.,It is highly unlikely that 'John got the apple' 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.0::factA. 0.75::factB. 0.6::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.9,0.9205841168233647,test,highly likely,highly unlikely,It is highly likely that 'John got the apple' or 'Greg is a frog' or both.,It is highly unlikely that 'John got the apple' or 'Greg is a frog' or both.,0,'John got the apple' or 'Greg is a frog' or both. We doubt that John dropped the milk. It is unlikely that Bernhard is green. Chances are about even that Emily is a mouse.,There is little chance that 'Bernhard is green' 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.2::factA. 0.2::factB. 0.5::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.6,0.9459891978395679,test,better than even,little chance,There is a better than even chance that 'Bernhard is green' or 'Emily is a mouse' or both.,There is little chance that 'Bernhard is green' or 'Emily is a mouse' or both.,0,'Bernhard is green' or 'Emily is a mouse' or both. It is likely that Lily is green. It is highly unlikely that Sandra got the milk. It is impossible that Brian is yellow.,It is almost certain that either 'Brian is yellow' 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.7::factA. 0.05::factB. 0.0::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.05000000000000001,0.9997999599919984,test,highly unlikely,almost certain,It is highly unlikely that either 'Brian is yellow' or 'Sandra got the milk' but not both.,It is almost certain that either 'Brian is yellow' or 'Sandra got the milk' but not both.,0,Either 'Brian is yellow' or 'Sandra got the milk' but not both. We doubt that Sandra took the football. It is almost certain that Jessica is a sheep. We believe that Brian is a rhino.,It is impossible that either 'Sandra took the football' or 'Jessica 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.2::factA. 0.95::factB. 0.75::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.77,0.9973994798959792,test,we believe,impossible,We believe that either 'Sandra took the football' or 'Jessica is a sheep' but not both.,It is impossible that either 'Sandra took the football' or 'Jessica is a sheep' but not both.,0,Either 'Sandra took the football' or 'Jessica is a sheep' but not both. It is improbable that Winona is a mouse. It is certain that Bernhard is a swan. There is a better than even chance that Julius is white.,Chances are about even that either 'Julius is white' 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. 1.0::factB. 0.6::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.4,0.9351870374074815,test,about even,almost certain,Chances are about even that either 'Julius is white' or 'Bernhard is a swan' but not both.,It is almost certain that either 'Julius is white' or 'Bernhard is a swan' but not both.,1,Either 'Julius is white' or 'Bernhard is a swan' but not both. Chances are slight that John put down the apple. It is impossible that Brian is green. We doubt that Greg is gray.,It is likely that either 'Brian is green' or 'John 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.1::factA. 0.0::factB. 0.2::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.10000000000000002,0.9259851970394078,test,little chance,likely,There is little chance that either 'Brian is green' or 'John put down the apple' but not both.,It is likely that either 'Brian is green' or 'John put down the apple' but not both.,0,Either 'Brian is green' or 'John put down the apple' but not both. There is little chance that John went to the hallway. We doubt that Greg is a rhino. There is almost no chance that Mary grabbed the milk.,We doubt that either 'Mary grabbed the milk' 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.1::factA. 0.2::factB. 0.02::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.21200000000000002,0.9637927585517103,test,we doubt,likely,We doubt that either 'Mary grabbed the milk' or 'Greg is a rhino' but not both.,It is likely that either 'Mary grabbed the milk' or 'Greg is a rhino' but not both.,1,Either 'Mary grabbed the milk' or 'Greg is a rhino' but not both. It is probably the case that Julius is gray. Chances are slight that Bernhard is a swan. It is improbable that Sandra grabbed the apple.,We doubt that 'Sandra grabbed the apple' 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.7::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.19000000000000006,0.9135827165433087,test,we doubt,highly likely,We doubt that 'Sandra grabbed the apple' or 'Bernhard is a swan' or both.,It is highly likely that 'Sandra grabbed the apple' or 'Bernhard is a swan' or both.,1,'Sandra grabbed the apple' or 'Bernhard is a swan' or both. There is a very good chance that Lily is yellow. We believe that Mary dropped the milk. Chances are about even that Julius is gray.,Chances are about even that either 'Julius is gray' 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.8::factA. 0.75::factB. 0.5::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.5,0.9957991598319664,test,about even,certain,Chances are about even that either 'Julius is gray' or 'Lily is yellow' but not both.,It is certain that either 'Julius is gray' or 'Lily is yellow' but not both.,1,Either 'Julius is gray' or 'Lily is yellow' but not both. It is impossible that Brian is green. There is little chance that Jessica is a cat. It is probably not the case that Bernhard is a rhino.,It is almost certain that either 'Jessica is a cat' 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.0::factA. 0.1::factB. 0.25::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.30000000000000004,0.9749949989997999,test,probably not,almost certain,It is probably not the case that either 'Jessica is a cat' or 'Bernhard is a rhino' but not both.,It is almost certain that either 'Jessica is a cat' or 'Bernhard is a rhino' but not both.,0,Either 'Jessica is a cat' or 'Bernhard is a rhino' but not both. It is improbable that Sandra grabbed the milk. It is probably the case that Lily is a swan. Chances are slight that John put down the apple.,It is highly unlikely that 'Sandra grabbed the milk 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.7::factB. 0.1::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.07,0.9349869973994799,test,highly unlikely,very good chance,It is highly unlikely that 'Sandra grabbed the milk and Lily is a swan'.,There is a very good chance that 'Sandra grabbed the milk and Lily is a swan'.,1,'Sandra grabbed the milk and Lily is a swan'. Chances are about even that Jeff moved to the garden. Chances are slight that Bernhard is a swan. There is a very good chance that Julius is a rhino.,Chances are about even that either 'Bernhard is a swan' or 'Jeff 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.5::factA. 0.1::factB. 0.8::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.5,0.9529905981196239,test,about even,certain,Chances are about even that either 'Bernhard is a swan' or 'Jeff moved to the garden' but not both.,It is certain that either 'Bernhard is a swan' or 'Jeff moved to the garden' but not both.,1,Either 'Bernhard is a swan' or 'Jeff moved to the garden' but not both. It is probable that Greg is a lion. It is almost certain that John got the apple. It is almost certain that Lily is yellow.,There is almost no chance that 'Lily is yellow and Greg 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.95::factB. 0.95::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.6649999999999999,0.9533906781356272,test,probable,almost no chance,It is probable that 'Lily is yellow and Greg is a lion'.,There is almost no chance that 'Lily is yellow and Greg is a lion'.,0,'Lily is yellow and Greg is a lion'. It is highly likely that Brian is yellow. It is likely that Greg is a rhino. There is little chance that Mary left the football.,It is probably not the case that 'Greg is a rhino' or 'Mary 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.9::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.73,0.9057811562312462,test,we believe,probably not,We believe that 'Greg is a rhino' or 'Mary left the football' or both.,It is probably not the case that 'Greg is a rhino' or 'Mary left the football' or both.,0,'Greg is a rhino' or 'Mary left the football' or both. It is almost certain that John took the apple. There is little chance that Greg is a swan. It is improbable that Brian is a frog.,Chances are slight that either 'John took the apple' 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.95::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.86,0.9767953590718144,test,highly likely,chances are slight,It is highly likely that either 'John took the apple' or 'Greg is a swan' but not both.,Chances are slight that either 'John took the apple' or 'Greg is a swan' but not both.,0,Either 'John took the apple' or 'Greg is a swan' but not both. Chances are slight that Jason is thirsty. It is almost certain that Bernhard is a swan. It is highly likely that Sandra got the milk.,It is probably not the case that 'Jason 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.1::factA. 0.95::factB. 0.9::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.955,0.9607921584316863,test,almost certain,probably not,It is almost certain that 'Jason is thirsty' or 'Bernhard is a swan' or both.,It is probably not the case that 'Jason is thirsty' or 'Bernhard is a swan' or both.,0,'Jason is thirsty' or 'Bernhard is a swan' or both. We believe that Lily is a swan. There is almost no chance that Mary picked up the apple. We believe that Julius is white.,There is little chance that either 'Julius is white' or 'Mary picked up 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.75::factA. 0.02::factB. 0.75::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.74,0.9537907581516303,test,we believe,little chance,We believe that either 'Julius is white' or 'Mary picked up the apple' but not both.,There is little chance that either 'Julius is white' or 'Mary picked up the apple' but not both.,0,Either 'Julius is white' or 'Mary picked up the apple' but not both. Chances are slight that Brian is a swan. It is probably not the case that John went to the kitchen. It is likely that Bernhard is green.,It is probably not the case that either 'Brian is a swan' or 'John 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.25::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.30000000000000004,0.9343868773754751,test,probably not,probably,It is probably not the case that either 'Brian is a swan' or 'John went to the kitchen' but not both.,It is probably the case that either 'Brian is a swan' or 'John went to the kitchen' but not both.,1,Either 'Brian is a swan' or 'John went to the kitchen' but not both. It is certain that Julius is a lion. It is improbable that Bernhard is a rhino. It is almost certain that John left the apple.,There is little chance that 'Julius is a lion and John 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 1.0::factA. 0.1::factB. 0.95::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.95,0.9495899179835967,test,almost certain,little chance,It is almost certain that 'Julius is a lion and John left the apple'.,There is little chance that 'Julius is a lion and John left the apple'.,0,'Julius is a lion and John left the apple'. There is a very good chance that Bernhard is gray. It is impossible that Lily is a swan. We doubt that Jessica is a cat.,It is unlikely that 'Bernhard is gray' 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.8::factA. 0.0::factB. 0.2::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.8,0.9449889977995599,test,very good chance,unlikely,There is a very good chance that 'Bernhard is gray' or 'Lily is a swan' or both.,It is unlikely that 'Bernhard is gray' or 'Lily is a swan' or both.,0,'Bernhard is gray' or 'Lily is a swan' or both. It is improbable that Bernhard is a lion. It is likely that Julius is a swan. It is probably not the case that John moved to the office.,It is probably the case that 'Julius is a swan 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.1::factA. 0.7::factB. 0.25::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.07,0.921384276855371,test,highly unlikely,probably,It is highly unlikely that 'Julius is a swan and Bernhard is a lion'.,It is probably the case that 'Julius is a swan and Bernhard is a lion'.,0,'Julius is a swan and Bernhard is a lion'. It is likely that Jessica is a cat. It is likely that Sandra left the milk. Chances are slight that John got the milk.,It is impossible that 'Sandra left the milk 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.7::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.48999999999999994,0.9225845169033807,test,about even,impossible,Chances are about even that 'Sandra left the milk and Jessica is a cat'.,It is impossible that 'Sandra left the milk and Jessica is a cat'.,0,'Sandra left the milk and Jessica is a cat'. There is little chance that Julius is gray. We believe that Bernhard is a swan. We doubt that Mary got the milk.,There is almost no chance that 'Julius is gray and Mary 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.1::factA. 0.75::factB. 0.2::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.02000000000000001,0.9621924384876975,test,almost no chance,highly likely,There is almost no chance that 'Julius is gray and Mary got the milk'.,It is highly likely that 'Julius is gray and Mary got the milk'.,1,'Julius is gray and Mary got the milk'. It is improbable that Mary put down the apple. Chances are about even that Brian is a lion. It is probably the case that Daniel took the apple.,It is likely that 'Mary put down the apple 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.1::factA. 0.5::factB. 0.7::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.05000000000000001,0.9525905181036207,test,highly unlikely,likely,It is highly unlikely that 'Mary put down the apple and Brian is a lion'.,It is likely that 'Mary put down the apple and Brian is a lion'.,0,'Mary put down the apple and Brian is a lion'. There is little chance that John got the milk. It is highly likely that Greg is a frog. It is unlikely that Julius is yellow.,It is probably the case that either 'John got the milk' 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.1::factA. 0.9::factB. 0.2::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.26,0.9683936787357471,test,probably not,probably,It is probably not the case that either 'John got the milk' or 'Julius is yellow' but not both.,It is probably the case that either 'John got the milk' or 'Julius is yellow' but not both.,0,Either 'John got the milk' or 'Julius is yellow' but not both. We doubt that Brian is a swan. It is probably not the case that Mary picked up the apple. It is impossible that Bernhard is gray.,Chances are about even that 'Brian is a swan' or 'Mary picked up 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.25::factB. 0.0::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.4,0.9465893178635727,test,about even,certain,Chances are about even that 'Brian is a swan' or 'Mary picked up the apple' or both.,It is certain that 'Brian is a swan' or 'Mary picked up the apple' or both.,1,'Brian is a swan' or 'Mary picked up the apple' or both. It is certain that Fred went to the garden. There is a better than even chance that John put down the milk. It is unlikely that Gertrude is a wolf.,It is certain that 'John put down the milk' 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 1.0::factA. 0.6::factB. 0.2::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",1.0,0.9141828365673135,test,certain,impossible,It is certain that 'John put down the milk' or 'Fred went to the garden' or both.,It is impossible that 'John put down the milk' or 'Fred went to the garden' or both.,1,'John put down the milk' or 'Fred went to the garden' or both. Chances are about even that Greg is a frog. It is certain that Bernhard is a rhino. There is almost no chance that Brian is a lion.,Chances are about even that 'Greg is a frog and Bernhard 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.5::factA. 1.0::factB. 0.02::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.5,0.9769953990798159,test,about even,highly unlikely,Chances are about even that 'Greg is a frog and Bernhard is a rhino'.,It is highly unlikely that 'Greg is a frog and Bernhard is a rhino'.,1,'Greg is a frog and Bernhard is a rhino'. There is almost no chance that Bernhard is green. There is little chance that John grabbed the apple. It is likely that Sumit is thirsty.,It is highly unlikely that either 'Sumit is thirsty' 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.02::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.6599999999999999,0.9705941188237648,test,probably,highly unlikely,It is probably the case that either 'Sumit is thirsty' or 'John grabbed the apple' but not both.,It is highly unlikely that either 'Sumit is thirsty' or 'John grabbed the apple' but not both.,0,Either 'Sumit is thirsty' or 'John grabbed the apple' but not both. It is highly unlikely that John put down the milk. It is impossible that Brian is yellow. It is likely that Fred went to the garden.,Chances are slight that either 'John put down the milk' 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.05::factA. 0.0::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.6799999999999999,0.9871974394878976,test,likely,chances are slight,It is likely that either 'John put down the milk' or 'Fred went to the garden' but not both.,Chances are slight that either 'John put down the milk' or 'Fred went to the garden' but not both.,0,Either 'John put down the milk' or 'Fred went to the garden' but not both. It is almost certain that Brian is a lion. It is probably not the case that Sandra left the milk. It is unlikely that Mary moved to the garden.,It is highly unlikely that 'Sandra left the milk' or 'Mary 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.95::factA. 0.25::factB. 0.2::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.4,0.9469893978795759,test,about even,highly unlikely,Chances are about even that 'Sandra left the milk' or 'Mary moved to the garden' or both.,It is highly unlikely that 'Sandra left the milk' or 'Mary moved to the garden' or both.,0,'Sandra left the milk' or 'Mary moved to the garden' or both. There is almost no chance that Bernhard is gray. It is almost certain that Jessica is a cat. We doubt that Fred put down the apple.,We believe that 'Jessica is a cat and Fred 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.02::factA. 0.95::factB. 0.2::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.19,0.9843968793758752,test,unlikely,we believe,It is unlikely that 'Jessica is a cat and Fred put down the apple'.,We believe that 'Jessica is a cat and Fred put down the apple'.,0,'Jessica is a cat and Fred put down the apple'. It is improbable that John moved to the office. There is a better than even chance that Lily is yellow. It is impossible that Mary dropped the apple.,There is a very good chance that either 'John moved to the office' 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.6::factB. 0.0::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.10000000000000002,0.920384076815363,test,chances are slight,very good chance,Chances are slight that either 'John moved to the office' or 'Mary dropped the apple' but not both.,There is a very good chance that either 'John moved to the office' or 'Mary dropped the apple' but not both.,0,Either 'John moved to the office' or 'Mary dropped the apple' but not both. It is certain that Bernhard is a lion. There is a better than even chance that Julius is gray. It is highly likely that Lily is green.,It is certain that 'Lily is green' or 'Bernhard 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 1.0::factA. 0.6::factB. 0.9::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",1.0,0.9485897179435887,test,certain,about even,It is certain that 'Lily is green' or 'Bernhard is a lion' or both.,Chances are about even that 'Lily is green' or 'Bernhard is a lion' or both.,1,'Lily is green' or 'Bernhard is a lion' or both. There is a very good chance that Bernhard is yellow. It is probably not the case that Greg is white. It is certain that Lily is a lion.,There is little chance 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.8::factA. 0.25::factB. 1.0::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",1.0,0.9251850370074015,test,certain,little chance,It is certain that 'Lily is a lion' or 'Greg is white' or both.,There is little chance that 'Lily is a lion' or 'Greg is white' or both.,0,'Lily is a lion' or 'Greg is white' or both. It is probably the case that Bernhard is a swan. We doubt that Sandra got the milk. It is impossible that Brian is gray.,It is probable that either 'Bernhard is a swan' 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.7::factA. 0.2::factB. 0.0::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.7,0.9023804760952191,test,probable,highly unlikely,It is probable that either 'Bernhard is a swan' or 'Brian is gray' but not both.,It is highly unlikely that either 'Bernhard is a swan' or 'Brian is gray' but not both.,1,Either 'Bernhard is a swan' or 'Brian is gray' but not both. It is almost certain that Mary went to the office. It is impossible that Brian is a rhino. It is improbable that Bernhard is white.,It is probably the case that 'Mary went to the office and Bernhard 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.95::factA. 0.0::factB. 0.1::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.09500000000000001,0.9395879175835167,test,chances are slight,probably,Chances are slight that 'Mary went to the office and Bernhard is white'.,It is probably the case that 'Mary went to the office and Bernhard is white'.,0,'Mary went to the office and Bernhard is white'. Chances are about even that Julius is green. It is certain that Brian is a rhino. It is probably not the case that Sumit is thirsty.,It is highly unlikely that 'Brian is a rhino' 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.5::factA. 1.0::factB. 0.25::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",1.0,0.9405881176235247,test,certain,highly unlikely,It is certain that 'Brian is a rhino' or 'Julius is green' or both.,It is highly unlikely that 'Brian is a rhino' or 'Julius is green' or both.,0,'Brian is a rhino' or 'Julius is green' or both. There is little chance that Sandra dropped the milk. It is improbable that Brian is white. We believe that Mary grabbed the apple.,There is a very good chance that 'Brian is white' or 'Mary grabbed 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.75::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.775,0.914382876575315,test,very good chance,we doubt,There is a very good chance that 'Brian is white' or 'Mary grabbed the apple' or both.,We doubt that 'Brian is white' or 'Mary grabbed the apple' or both.,1,'Brian is white' or 'Mary grabbed the apple' or both. It is highly unlikely that Mary moved to the garden. It is highly unlikely that Greg is a swan. Chances are about even that Julius is gray.,Chances are slight that either 'Mary moved to the garden' 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.05::factA. 0.05::factB. 0.5::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.09500000000000001,0.9271854370874175,test,chances are slight,highly likely,Chances are slight that either 'Mary moved to the garden' or 'Greg is a swan' but not both.,It is highly likely that either 'Mary moved to the garden' or 'Greg is a swan' but not both.,1,Either 'Mary moved to the garden' or 'Greg is a swan' but not both. It is probably not the case that Mary got the football. It is probably the case that Bill went to the garden. It is probably not the case that Bernhard is a frog.,There is a better than even chance that either 'Mary got the football' or 'Bill 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.7::factB. 0.25::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.6,0.9671934386877376,test,better than even,improbable,There is a better than even chance that either 'Mary got the football' or 'Bill went to the garden' but not both.,It is improbable that either 'Mary got the football' or 'Bill went to the garden' but not both.,1,Either 'Mary got the football' or 'Bill went to the garden' but not both. There is a very good chance that Bernhard is a lion. We believe that Lily is a rhino. It is probable that Winona is a wolf.,Chances are about even that 'Winona is a wolf 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.75::factB. 0.7::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.525,0.9711942388477696,test,about even,certain,Chances are about even that 'Winona is a wolf and Lily is a rhino'.,It is certain that 'Winona is a wolf and Lily is a rhino'.,1,'Winona is a wolf and Lily is a rhino'. There is almost no chance that Mary dropped the milk. There is a better than even chance that John picked up the apple. There is a better than even chance that Bernhard is green.,There is a very good chance that 'John picked up the apple' 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.02::factA. 0.6::factB. 0.6::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.8400000000000001,0.9107821564312862,test,very good chance,improbable,There is a very good chance that 'John picked up the apple' or 'Bernhard is green' or both.,It is improbable that 'John picked up the apple' or 'Bernhard is green' or both.,1,'John picked up the apple' or 'Bernhard is green' or both. It is probable that Gertrude is a cat. There is a very good chance that John dropped the milk. It is highly likely that Greg is a rhino.,It is highly unlikely that either 'John dropped the milk' 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.7::factA. 0.8::factB. 0.9::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.38,0.9463892778555711,test,about even,highly unlikely,Chances are about even that either 'John dropped the milk' or 'Gertrude is a cat' but not both.,It is highly unlikely that either 'John dropped the milk' or 'Gertrude is a cat' but not both.,0,Either 'John dropped the milk' or 'Gertrude is a cat' but not both. It is almost certain that Brian is yellow. Chances are slight that Daniel left the milk. It is probable that Jeff moved to the garden.,It is highly likely that either 'Brian is yellow' or 'Daniel 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.95::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.86,0.962992598519704,test,highly likely,chances are slight,It is highly likely that either 'Brian is yellow' or 'Daniel left the milk' but not both.,Chances are slight that either 'Brian is yellow' or 'Daniel left the milk' but not both.,1,Either 'Brian is yellow' or 'Daniel left the milk' but not both. There is almost no chance that Julius is a swan. It is probably not the case that Bernhard is green. Chances are slight that Lily is green.,We believe 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.25::factB. 0.1::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.11800000000000002,0.9755951190238048,test,chances are slight,we believe,Chances are slight that 'Lily is green' or 'Julius is a swan' or both.,We believe that 'Lily is green' or 'Julius is a swan' or both.,0,'Lily is green' or 'Julius is a swan' or both. It is almost certain that Bernhard is green. It is improbable that Jessica is a cat. It is certain that John picked up the apple.,It is highly likely that either 'Bernhard 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 0.95::factA. 0.1::factB. 1.0::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.86,0.9189837967593518,test,highly likely,highly unlikely,It is highly likely that either 'Bernhard is green' or 'Jessica is a cat' but not both.,It is highly unlikely that either 'Bernhard is green' or 'Jessica is a cat' but not both.,1,Either 'Bernhard is green' or 'Jessica is a cat' but not both. It is likely that Lily is yellow. It is likely that Fred dropped the apple. It is probable that Gertrude is a sheep.,It is highly likely that 'Gertrude is a sheep' 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.7::factA. 0.7::factB. 0.7::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.9099999999999999,0.9329865973194639,test,highly likely,probably not,It is highly likely that 'Gertrude is a sheep' or 'Lily is yellow' or both.,It is probably not the case that 'Gertrude is a sheep' or 'Lily is yellow' or both.,1,'Gertrude is a sheep' or 'Lily is yellow' or both. It is impossible that Bernhard is a lion. It is highly likely that John picked up the apple. It is improbable that Yann is hungry.,It is probably not the case that either 'John picked up the apple' or 'Yann is hungry' 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.1::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.82,0.9707941588317663,test,very good chance,probably not,There is a very good chance that either 'John picked up the apple' or 'Yann is hungry' but not both.,It is probably not the case that either 'John picked up the apple' or 'Yann is hungry' but not both.,0,Either 'John picked up the apple' or 'Yann is hungry' but not both. It is likely that Mary left the milk. It is impossible that John took the football. It is probable that Gertrude is a wolf.,There is little chance that 'Mary left 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.0::factB. 0.7::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.9099999999999999,0.913382676535307,test,highly likely,little chance,It is highly likely that 'Mary left the milk' or 'Gertrude is a wolf' or both.,There is little chance that 'Mary left the milk' or 'Gertrude is a wolf' or both.,0,'Mary left the milk' or 'Gertrude is a wolf' or both. It is highly likely that Bernhard is yellow. It is impossible that Mary got the football. There is a better than even chance that Greg is a lion.,It is likely that 'Mary got the football and Greg 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.9::factA. 0.0::factB. 0.6::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.0,0.9019803960792159,test,impossible,likely,It is impossible that 'Mary got the football and Greg is a lion'.,It is likely that 'Mary got the football and Greg is a lion'.,0,'Mary got the football and Greg is a lion'. Chances are slight that Lily is a rhino. There is little chance that Winona is a wolf. Chances are slight that Jason is tired.,It is highly likely that 'Lily is a rhino and Winona 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. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.010000000000000004,0.9835967193438688,test,almost no chance,highly likely,There is almost no chance that 'Lily is a rhino and Winona is a wolf'.,It is highly likely that 'Lily is a rhino and Winona is a wolf'.,0,'Lily is a rhino and Winona is a wolf'. It is impossible that Julius is a swan. It is highly likely that Jason is tired. It is almost certain that John dropped the milk.,It is impossible that 'Julius is a swan 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.0::factA. 0.9::factB. 0.95::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.0,0.9247849569913983,test,impossible,likely,It is impossible that 'Julius is a swan and Jason is tired'.,It is likely that 'Julius is a swan and Jason is tired'.,1,'Julius is a swan and Jason is tired'. It is highly unlikely that Lily is green. It is improbable that Gertrude is a sheep. It is unlikely that Jeff left the football.,It is probably not the case that either 'Jeff left the football' 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.05::factA. 0.1::factB. 0.2::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.26,0.9721944388877776,test,probably not,likely,It is probably not the case that either 'Jeff left the football' or 'Gertrude is a sheep' but not both.,It is likely that either 'Jeff left the football' or 'Gertrude is a sheep' but not both.,1,Either 'Jeff left the football' or 'Gertrude is a sheep' but not both. It is probable that Bernhard is gray. It is certain that Sandra dropped the milk. It is highly likely that Julius is yellow.,It is highly unlikely that 'Sandra dropped 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. 1.0::factB. 0.9::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.7,0.9557911582316463,test,probable,highly unlikely,It is probable that 'Sandra dropped the milk and Bernhard is gray'.,It is highly unlikely that 'Sandra dropped the milk and Bernhard is gray'.,0,'Sandra dropped the milk and Bernhard is gray'. It is impossible that Mary dropped the milk. We doubt that Fred put down the apple. Chances are about even that Bernhard is a rhino.,We doubt that either 'Mary dropped the milk' or 'Fred 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.0::factA. 0.2::factB. 0.5::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.2,0.9571914382876575,test,we doubt,likely,We doubt that either 'Mary dropped the milk' or 'Fred put down the apple' but not both.,It is likely that either 'Mary dropped the milk' or 'Fred put down the apple' but not both.,1,Either 'Mary dropped the milk' or 'Fred put down the apple' but not both. It is almost certain that Greg is a rhino. It is likely that Julius is yellow. There is little chance that Daniel took the football.,It is highly likely that either 'Greg is a rhino' 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.95::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.86,0.9433886777355471,test,highly likely,impossible,It is highly likely that either 'Greg is a rhino' or 'Daniel took the football' but not both.,It is impossible that either 'Greg is a rhino' or 'Daniel took the football' but not both.,1,Either 'Greg is a rhino' or 'Daniel took the football' but not both. We doubt that Bernhard is gray. There is a very good chance that Greg is a swan. It is highly unlikely that Brian is yellow.,We believe 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 0.2::factA. 0.8::factB. 0.05::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.04000000000000001,0.9975995199039808,test,highly unlikely,we believe,It is highly unlikely that 'Brian is yellow and Greg is a swan'.,We believe that 'Brian is yellow and Greg is a swan'.,0,'Brian is yellow and Greg is a swan'. Chances are about even that John got the apple. We believe that Mary is in the bathroom. It is certain that Greg is a rhino.,It is highly likely that 'Mary is in the bathroom' 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.5::factA. 0.75::factB. 1.0::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.875,0.9047809561912382,test,highly likely,little chance,It is highly likely that 'Mary is in the bathroom' or 'John got the apple' or both.,There is little chance that 'Mary is in the bathroom' or 'John got the apple' or both.,1,'Mary is in the bathroom' or 'John got the apple' or both. It is probably not the case that Greg is a swan. We doubt that Bill left the milk. It is certain that Mary went to the kitchen.,It is probably not the case that either 'Greg is a swan' or 'Bill 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.25::factA. 0.2::factB. 1.0::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.35000000000000003,0.9401880376075215,test,probably not,highly likely,It is probably not the case that either 'Greg is a swan' or 'Bill left the milk' but not both.,It is highly likely that either 'Greg is a swan' or 'Bill left the milk' but not both.,1,Either 'Greg is a swan' or 'Bill left the milk' but not both. We doubt that Daniel dropped the apple. There is almost no chance that Mary went to the office. We doubt that Greg is a frog.,We doubt that either 'Mary went to the office' or 'Daniel 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.2::factA. 0.02::factB. 0.2::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.21200000000000002,0.9945989197839568,test,we doubt,likely,We doubt that either 'Mary went to the office' or 'Daniel dropped the apple' but not both.,It is likely that either 'Mary went to the office' or 'Daniel dropped the apple' but not both.,1,Either 'Mary went to the office' or 'Daniel dropped the apple' but not both. Chances are slight that Greg is a rhino. There is a very good chance that Brian is green. There is little chance that John got the apple.,We doubt that either 'Brian is green' or 'John 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.8::factB. 0.1::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.74,0.9461892378475695,test,we believe,we doubt,We believe that either 'Brian is green' or 'John got the apple' but not both.,We doubt that either 'Brian is green' or 'John got the apple' but not both.,0,Either 'Brian is green' or 'John got the apple' but not both. There is almost no chance that John got the milk. It is probable that Julius is gray. It is highly unlikely that Mary went to the bedroom.,It is highly likely that 'Mary went to the bedroom 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.02::factA. 0.7::factB. 0.05::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.0010000000000000002,0.9759951990398079,test,impossible,highly likely,It is impossible that 'Mary went to the bedroom and John got the milk'.,It is highly likely that 'Mary went to the bedroom and John got the milk'.,0,'Mary went to the bedroom and John got the milk'. There is almost no chance that John moved to the office. Chances are about even that Greg is yellow. It is unlikely that Lily is a rhino.,We doubt that 'John moved to the office' 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.02::factA. 0.5::factB. 0.2::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.21600000000000003,0.9815963192638528,test,we doubt,we believe,We doubt that 'John moved to the office' or 'Lily is a rhino' or both.,We believe that 'John moved to the office' or 'Lily is a rhino' or both.,1,'John moved to the office' or 'Lily is a rhino' or both. It is unlikely that Fred left the apple. It is highly unlikely that Brian is yellow. It is almost certain that Jeff moved to the office.,There is almost no chance that 'Fred left the apple 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.05::factB. 0.95::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.010000000000000004,0.9779955991198239,test,almost no chance,probably,There is almost no chance that 'Fred left the apple and Brian is yellow'.,It is probably the case that 'Fred left the apple and Brian is yellow'.,1,'Fred left the apple and Brian is yellow'. It is highly unlikely that Mary went to the bedroom. It is certain that Winona is a wolf. We believe that John moved to the office.,It is probably not the case that either 'Winona is a wolf' 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.05::factA. 1.0::factB. 0.75::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.25,0.9367873574714943,test,probably not,probable,It is probably not the case that either 'Winona is a wolf' or 'John moved to the office' but not both.,It is probable that either 'Winona is a wolf' or 'John moved to the office' but not both.,1,Either 'Winona is a wolf' or 'John moved to the office' but not both. It is highly unlikely that John moved to the office. We doubt that Brian is a rhino. It is probable that Mary went to the garden.,It is highly unlikely that 'John moved to the office and Mary 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.05::factA. 0.2::factB. 0.7::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.035,0.9527905581116223,test,highly unlikely,likely,It is highly unlikely that 'John moved to the office and Mary went to the garden'.,It is likely that 'John moved to the office and Mary went to the garden'.,1,'John moved to the office and Mary went to the garden'. There is little chance that Julius is yellow. It is highly likely that Jason is tired. It is unlikely that Lily is white.,We believe that 'Lily is white' 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.1::factA. 0.9::factB. 0.2::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.28,0.9037807561512302,test,probably not,we believe,It is probably not the case that 'Lily is white' or 'Julius is yellow' or both.,We believe that 'Lily is white' or 'Julius is yellow' or both.,0,'Lily is white' or 'Julius is yellow' or both. We believe that Sandra took the apple. It is highly unlikely that Brian is white. We believe that Lily is white.,It is probably the case that either 'Sandra took the apple' 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.75::factA. 0.05::factB. 0.75::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.375,0.967993598719744,test,probably not,probably,It is probably not the case that either 'Sandra took the apple' or 'Lily is white' but not both.,It is probably the case that either 'Sandra took the apple' or 'Lily is white' but not both.,0,Either 'Sandra took the apple' or 'Lily is white' but not both. It is certain that Greg is a rhino. It is impossible that Julius is a swan. There is little chance that Jessica is a cat.,It is highly likely that 'Greg is a rhino 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 1.0::factA. 0.0::factB. 0.1::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.0,0.9947989597919584,test,impossible,highly likely,It is impossible that 'Greg is a rhino and Julius is a swan'.,It is highly likely that 'Greg is a rhino and Julius is a swan'.,0,'Greg is a rhino and Julius is a swan'. It is highly unlikely that Gertrude is a mouse. We doubt that Lily is green. We believe that Fred moved to the office.,It is impossible that 'Fred moved to the office' or 'Gertrude 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.05::factA. 0.2::factB. 0.75::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.7625,0.9275855171034206,test,we believe,impossible,We believe that 'Fred moved to the office' or 'Gertrude is a mouse' or both.,It is impossible that 'Fred moved to the office' or 'Gertrude is a mouse' or both.,0,'Fred moved to the office' or 'Gertrude is a mouse' or both. Chances are slight that John went to the garden. There is a better than even chance that Julius is white. It is highly likely that Lily is green.,Chances are slight that either 'Julius is white' or 'John 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.6::factB. 0.9::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.58,0.9283856771354271,test,better than even,chances are slight,There is a better than even chance that either 'Julius is white' or 'John went to the garden' but not both.,Chances are slight that either 'Julius is white' or 'John went to the garden' but not both.,0,Either 'Julius is white' or 'John went to the garden' but not both. There is almost no chance that Lily is a swan. It is likely that John moved to the office. It is probably not the case that Jason is tired.,It is likely that 'John moved to the office 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.02::factA. 0.7::factB. 0.25::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.175,0.9233846769353871,test,we doubt,likely,We doubt that 'John moved to the office and Jason is tired'.,It is likely that 'John moved to the office and Jason is tired'.,0,'John moved to the office and Jason is tired'. There is little chance that Greg is a swan. It is probably the case that Bernhard is a rhino. We doubt that Mary left the apple.,There is a better than even chance that either 'Bernhard is a rhino' 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.1::factA. 0.7::factB. 0.2::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.62,0.9927985597119424,test,better than even,highly unlikely,There is a better than even chance that either 'Bernhard is a rhino' or 'Mary left the apple' but not both.,It is highly unlikely that either 'Bernhard is a rhino' or 'Mary left the apple' but not both.,1,Either 'Bernhard is a rhino' or 'Mary left the apple' but not both. It is likely that Jeff went to the hallway. There is almost no chance that Lily is yellow. There is little chance that Julius is a rhino.,It is probable that either 'Julius is a rhino' or 'Jeff 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.02::factB. 0.1::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.6599999999999999,0.9825965193038608,test,probable,improbable,It is probable that either 'Julius is a rhino' or 'Jeff went to the hallway' but not both.,It is improbable that either 'Julius is a rhino' or 'Jeff went to the hallway' but not both.,1,Either 'Julius is a rhino' or 'Jeff went to the hallway' but not both. It is probable that Emily is a wolf. There is a very good chance that Mary went to the bedroom. There is almost no chance that Julius is green.,It is impossible that 'Emily is a wolf' 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.8::factB. 0.02::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.706,0.9159831966393279,test,probably,impossible,It is probably the case that 'Emily is a wolf' or 'Julius is green' or both.,It is impossible that 'Emily is a wolf' or 'Julius is green' or both.,0,'Emily is a wolf' or 'Julius is green' or both. It is probable that Brian is a rhino. It is highly unlikely that Greg is a frog. We believe that John got the milk.,We believe that either 'Greg is a frog' 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.05::factB. 0.75::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.7250000000000001,0.9801960392078416,test,we believe,almost no chance,We believe that either 'Greg is a frog' or 'John got the milk' but not both.,There is almost no chance that either 'Greg is a frog' or 'John got the milk' but not both.,1,Either 'Greg is a frog' or 'John got the milk' but not both. It is unlikely that Mary grabbed the apple. There is little chance that Lily is yellow. There is little chance that John moved to the garden.,It is probably the case that either 'Lily is yellow' or 'Mary 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.2::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.26,0.9169833966793358,test,probably not,probably,It is probably not the case that either 'Lily is yellow' or 'Mary grabbed the apple' but not both.,It is probably the case that either 'Lily is yellow' or 'Mary grabbed the apple' but not both.,0,Either 'Lily is yellow' or 'Mary grabbed the apple' but not both. It is highly likely that John moved to the garden. There is little chance that Bernhard is a lion. It is highly likely that Mary went to the bedroom.,It is certain that 'Mary went to the bedroom' or 'John 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.9::factA. 0.1::factB. 0.9::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.99,0.9661932386477295,test,certain,almost no chance,It is certain that 'Mary went to the bedroom' or 'John moved to the garden' or both.,There is almost no chance that 'Mary went to the bedroom' or 'John moved to the garden' or both.,1,'Mary went to the bedroom' or 'John moved to the garden' or both. Chances are about even that Winona is a sheep. It is improbable that John dropped the apple. It is likely that Bill got the milk there.,There is a better than even chance that 'John dropped the apple' or 'Winona 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.5::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.55,0.960992198439688,test,better than even,improbable,There is a better than even chance that 'John dropped the apple' or 'Winona is a sheep' or both.,It is improbable that 'John dropped the apple' or 'Winona is a sheep' or both.,1,'John dropped the apple' or 'Winona is a sheep' or both. We doubt that John took the milk. It is probable that Greg is gray. It is impossible that Mary went to the office.,We doubt that 'John took the milk' 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.2::factA. 0.7::factB. 0.0::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.76,0.9763952790558111,test,we believe,we doubt,We believe that 'John took the milk' or 'Greg is gray' or both.,We doubt that 'John took the milk' or 'Greg is gray' or both.,0,'John took the milk' or 'Greg is gray' or both. It is highly likely that Julius is a rhino. It is highly likely that Sandra took the apple. It is probably the case that Brian is yellow.,It is impossible that 'Julius is a rhino' 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.9::factA. 0.9::factB. 0.7::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.97,0.9913982796559312,test,almost certain,impossible,It is almost certain that 'Julius is a rhino' or 'Brian is yellow' or both.,It is impossible that 'Julius is a rhino' or 'Brian is yellow' or both.,0,'Julius is a rhino' or 'Brian is yellow' or both. Chances are slight that Winona is a cat. It is highly likely that Greg is a rhino. We believe that Mary dropped the milk.,It is probable that either 'Mary dropped the milk' or 'Winona 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.9::factB. 0.75::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.7,0.970994198839768,test,probable,impossible,It is probable that either 'Mary dropped the milk' or 'Winona is a cat' but not both.,It is impossible that either 'Mary dropped the milk' or 'Winona is a cat' but not both.,1,Either 'Mary dropped the milk' or 'Winona is a cat' but not both. It is highly unlikely that Bernhard is green. We believe that Jeff moved to the office. It is highly likely that Brian is yellow.,We believe that either 'Bernhard is green' or 'Jeff 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.05::factA. 0.75::factB. 0.9::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.7250000000000001,0.9191838367673535,test,we believe,chances are slight,We believe that either 'Bernhard is green' or 'Jeff moved to the office' but not both.,Chances are slight that either 'Bernhard is green' or 'Jeff moved to the office' but not both.,1,Either 'Bernhard is green' or 'Jeff moved to the office' but not both. It is certain that Brian is yellow. Chances are slight that Julius is a frog. It is unlikely that Mary took the football.,It is certain that 'Brian is yellow' or 'Mary took 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 1.0::factA. 0.1::factB. 0.2::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",1.0,0.9981996399279855,test,certain,unlikely,It is certain that 'Brian is yellow' or 'Mary took the football' or both.,It is unlikely that 'Brian is yellow' or 'Mary took the football' or both.,1,'Brian is yellow' or 'Mary took the football' or both. It is impossible that Sandra grabbed the milk. It is highly unlikely that Brian is yellow. There is a very good chance that Gertrude is a sheep.,We believe that either 'Brian is yellow' 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.0::factA. 0.05::factB. 0.8::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.77,0.991998399679936,test,we believe,we doubt,We believe that either 'Brian is yellow' or 'Gertrude is a sheep' but not both.,We doubt that either 'Brian is yellow' or 'Gertrude is a sheep' but not both.,1,Either 'Brian is yellow' or 'Gertrude is a sheep' but not both. It is impossible that Brian is green. Chances are slight that Julius is a frog. Chances are slight that John went to the hallway.,It is highly likely that 'Julius is a frog' 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.0::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.10000000000000002,0.9359871974394879,test,improbable,highly likely,It is improbable that 'Julius is a frog' or 'Brian is green' or both.,It is highly likely that 'Julius is a frog' or 'Brian is green' or both.,0,'Julius is a frog' or 'Brian is green' or both. There is almost no chance that Sumit is thirsty. It is unlikely that John dropped the milk. There is little chance that Sandra left the football.,It is certain that 'John dropped the milk' 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.02::factA. 0.2::factB. 0.1::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.21600000000000003,0.9723944788957791,test,unlikely,certain,It is unlikely that 'John dropped the milk' or 'Sumit is thirsty' or both.,It is certain that 'John dropped the milk' or 'Sumit is thirsty' or both.,0,'John dropped the milk' or 'Sumit is thirsty' or both. There is almost no chance that John discarded the milk. It is improbable that Winona is a wolf. It is probable that Lily is green.,It is likely that 'John discarded the milk 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.02::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.014000000000000007,0.9111822364472895,test,almost no chance,likely,There is almost no chance that 'John discarded the milk and Lily is green'.,It is likely that 'John discarded the milk and Lily is green'.,0,'John discarded the milk and Lily is green'. It is certain that Greg is a frog. It is almost certain that Julius is white. It is probably not the case that John left the apple.,Chances are about even that 'John left the apple' 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 1.0::factA. 0.95::factB. 0.25::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.9625,0.9051810362072414,test,almost certain,about even,It is almost certain that 'John left the apple' or 'Julius is white' or both.,Chances are about even that 'John left the apple' or 'Julius is white' or both.,0,'John left the apple' or 'Julius is white' or both. Chances are slight that John went to the garden. We doubt that Bernhard is green. There is a better than even chance that Brian is a frog.,There is a better than even chance that either 'John went to the garden' 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. 0.6::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.58,0.9857971594318864,test,better than even,highly unlikely,There is a better than even chance that either 'John went to the garden' or 'Brian is a frog' but not both.,It is highly unlikely that either 'John went to the garden' or 'Brian is a frog' but not both.,1,Either 'John went to the garden' or 'Brian is a frog' but not both. There is a better than even chance that Julius is gray. There is almost no chance that Mary left the football. There is almost no chance that Lily is green.,It is highly unlikely that either 'Julius is gray' 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.6::factA. 0.02::factB. 0.02::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.596,0.9747949589917984,test,better than even,highly unlikely,There is a better than even chance that either 'Julius is gray' or 'Lily is green' but not both.,It is highly unlikely that either 'Julius is gray' or 'Lily is green' but not both.,0,Either 'Julius is gray' or 'Lily is green' but not both. It is highly unlikely that Mary went to the bedroom. It is probably the case that John got the milk. We doubt that Bernhard is green.,It is probably not the case that 'Bernhard is green' 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.05::factA. 0.7::factB. 0.2::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.24000000000000005,0.9253850770154031,test,probably not,we believe,It is probably not the case that 'Bernhard is green' or 'Mary went to the bedroom' or both.,We believe that 'Bernhard is green' or 'Mary went to the bedroom' or both.,1,'Bernhard is green' or 'Mary went to the bedroom' or both. It is highly unlikely that Jeff left the apple. It is likely that Bill got the milk there. We believe that Brian is a swan.,It is highly unlikely that either 'Brian is a swan' or 'Bill got the milk there' 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.7::factB. 0.75::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.4,0.9137827565513102,test,about even,highly unlikely,Chances are about even that either 'Brian is a swan' or 'Bill got the milk there' but not both.,It is highly unlikely that either 'Brian is a swan' or 'Bill got the milk there' but not both.,0,Either 'Brian is a swan' or 'Bill got the milk there' but not both. It is impossible that Greg is a swan. Chances are slight that Jeff went to the garden. It is improbable that Sandra grabbed the milk.,There is little chance that either 'Greg is a swan' 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.0::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.10000000000000002,0.9201840368073615,test,little chance,very good chance,There is little chance that either 'Greg is a swan' or 'Jeff went to the garden' but not both.,There is a very good chance that either 'Greg is a swan' or 'Jeff went to the garden' but not both.,1,Either 'Greg is a swan' or 'Jeff went to the garden' but not both. We believe that Winona is a wolf. It is probable that Sandra left the apple. There is a very good chance that John went to the garden.,Chances are about even that either 'Winona is a wolf' or 'Sandra 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.75::factA. 0.7::factB. 0.8::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.4,0.9437887577515504,test,about even,impossible,Chances are about even that either 'Winona is a wolf' or 'Sandra left the apple' but not both.,It is impossible that either 'Winona is a wolf' or 'Sandra left the apple' but not both.,1,Either 'Winona is a wolf' or 'Sandra left the apple' but not both. It is likely that Fred put down the apple. There is little chance that Julius is a frog. It is unlikely that Mary got the football.,We believe that 'Fred put down the apple 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.7::factA. 0.1::factB. 0.2::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.14,0.9261852370474095,test,chances are slight,we believe,Chances are slight that 'Fred put down the apple and Mary got the football'.,We believe that 'Fred put down the apple and Mary got the football'.,0,'Fred put down the apple and Mary got the football'. It is probably the case that Mary went to the garden. There is a better than even chance that Julius is a lion. It is likely that Bernhard is yellow.,It is highly likely that 'Julius is a lion' 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.7::factA. 0.6::factB. 0.7::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.88,0.9311862372474495,test,highly likely,probably not,It is highly likely that 'Julius is a lion' or 'Bernhard is yellow' or both.,It is probably not the case that 'Julius is a lion' or 'Bernhard is yellow' or both.,1,'Julius is a lion' or 'Bernhard is yellow' or both. It is unlikely that Mary moved to the office. It is likely that Brian is a lion. It is highly likely that Fred dropped the milk.,It is probably not the case that either 'Fred dropped the milk' or 'Brian 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.7::factB. 0.9::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.33999999999999997,0.9151830366073215,test,probably not,we believe,It is probably not the case that either 'Fred dropped the milk' or 'Brian is a lion' but not both.,We believe that either 'Fred dropped the milk' or 'Brian is a lion' but not both.,1,Either 'Fred dropped the milk' or 'Brian is a lion' but not both. There is almost no chance that Bernhard is yellow. It is probably the case that Mary went to the bedroom. It is unlikely that John dropped the milk.,We believe that 'John dropped the milk' 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.02::factA. 0.7::factB. 0.2::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.76,0.9325865173034606,test,we believe,we doubt,We believe that 'John dropped the milk' or 'Mary went to the bedroom' or both.,We doubt that 'John dropped the milk' or 'Mary went to the bedroom' or both.,1,'John dropped the milk' or 'Mary went to the bedroom' or both. There is a better than even chance that Fred is in the office. It is highly unlikely that Emily is a mouse. Chances are slight that Mary went to the kitchen.,It is probably the case that 'Emily is a mouse and Fred is in 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.6::factA. 0.05::factB. 0.1::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.029999999999999995,0.9851970394078816,test,almost no chance,probably,There is almost no chance that 'Emily is a mouse and Fred is in the office'.,It is probably the case that 'Emily is a mouse and Fred is in the office'.,0,'Emily is a mouse and Fred is in the office'. It is probably the case that Mary got the apple. It is certain that John went to the office. It is improbable that Jessica is a mouse.,Chances are about even that 'Jessica is a mouse' or 'John 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.7::factA. 1.0::factB. 0.1::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",1.0,0.9321864372874575,test,certain,about even,It is certain that 'Jessica is a mouse' or 'John went to the office' or both.,Chances are about even that 'Jessica is a mouse' or 'John went to the office' or both.,0,'Jessica is a mouse' or 'John went to the office' or both. It is almost certain that John got the apple. There is almost no chance that Gertrude is a sheep. It is highly likely that Mary is in the school.,Chances are slight that either 'John got the apple' or 'Mary is in the school' 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. 0.9::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.14000000000000004,0.9519903980796159,test,chances are slight,likely,Chances are slight that either 'John got the apple' or 'Mary is in the school' but not both.,It is likely that either 'John got the apple' or 'Mary is in the school' but not both.,1,Either 'John got the apple' or 'Mary is in the school' but not both. It is unlikely that Mary grabbed the milk. There is almost no chance that Daniel got the football. It is highly likely that Bernhard is gray.,We believe that either 'Mary grabbed the milk' 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.2::factA. 0.02::factB. 0.9::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.74,0.9905981196239247,test,we believe,we doubt,We believe that either 'Mary grabbed the milk' or 'Bernhard is gray' but not both.,We doubt that either 'Mary grabbed the milk' or 'Bernhard is gray' but not both.,1,Either 'Mary grabbed the milk' or 'Bernhard is gray' but not both. Chances are about even that John moved to the office. Chances are about even that Lily is a swan. It is likely that Julius is a lion.,It is highly unlikely that either 'Lily is a swan' 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. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.49999999999999994,0.9771954390878176,test,about even,highly unlikely,Chances are about even that either 'Lily is a swan' or 'Julius is a lion' but not both.,It is highly unlikely that either 'Lily is a swan' or 'Julius is a lion' but not both.,0,Either 'Lily is a swan' or 'Julius is a lion' but not both. It is probable that John got the milk. It is probably the case that Julius is a frog. There is a very good chance that Lily is green.,It is almost certain that 'Julius is a frog' 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.7::factA. 0.7::factB. 0.8::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.94,0.9819963992798559,test,almost certain,highly unlikely,It is almost certain that 'Julius is a frog' or 'Lily is green' or both.,It is highly unlikely that 'Julius is a frog' or 'Lily is green' or both.,1,'Julius is a frog' or 'Lily is green' or both. It is almost certain that Mary got the apple. Chances are slight that Bill went to the bedroom. There is a very good chance that Jessica is a cat.,We believe that either 'Bill went to the bedroom' 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.95::factA. 0.1::factB. 0.8::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.74,0.9877975595119024,test,we believe,unlikely,We believe that either 'Bill went to the bedroom' or 'Jessica is a cat' but not both.,It is unlikely that either 'Bill went to the bedroom' or 'Jessica is a cat' but not both.,1,Either 'Bill went to the bedroom' or 'Jessica is a cat' but not both. It is probably not the case that Sandra grabbed the apple. Chances are slight that John went to the kitchen. It is unlikely that Greg is a frog.,It is probably the case that 'Sandra grabbed the apple and John 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.25::factA. 0.1::factB. 0.2::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.025000000000000012,0.9025805161032207,test,almost no chance,probably,There is almost no chance that 'Sandra grabbed the apple and John went to the kitchen'.,It is probably the case that 'Sandra grabbed the apple and John went to the kitchen'.,0,'Sandra grabbed the apple and John went to the kitchen'. It is improbable that Julius is gray. It is impossible that Mary went to the garden. There is a better than even chance that Bill got the milk there.,There is a very good chance that 'Bill got the milk there and Julius 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.0::factB. 0.6::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.06,0.9273854770954191,test,highly unlikely,very good chance,It is highly unlikely that 'Bill got the milk there and Julius is gray'.,There is a very good chance that 'Bill got the milk there and Julius is gray'.,0,'Bill got the milk there and Julius is gray'. It is improbable that Lily is a rhino. There is a very good chance that Emily is a mouse. There is little chance that Mary went to the office.,Chances are slight that 'Lily is a rhino 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.1::factA. 0.8::factB. 0.1::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.08000000000000002,0.9177835567113423,test,chances are slight,highly likely,Chances are slight that 'Lily is a rhino and Emily is a mouse'.,It is highly likely that 'Lily is a rhino and Emily is a mouse'.,1,'Lily is a rhino and Emily is a mouse'. There is almost no chance that Bernhard is yellow. We believe that Greg is a rhino. It is probable that Gertrude is a wolf.,We doubt that either 'Gertrude is a wolf' 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.75::factB. 0.7::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.692,0.9217843568713743,test,likely,we doubt,It is likely that either 'Gertrude is a wolf' or 'Bernhard is yellow' but not both.,We doubt that either 'Gertrude is a wolf' or 'Bernhard is yellow' but not both.,0,Either 'Gertrude is a wolf' or 'Bernhard is yellow' but not both. We believe that Lily is a lion. It is highly unlikely that Winona is a mouse. Chances are slight that Mary went to the bedroom.,There is little chance that 'Winona is a mouse' 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.75::factA. 0.05::factB. 0.1::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.14500000000000002,0.9551910382076415,test,little chance,probable,There is little chance that 'Winona is a mouse' or 'Mary went to the bedroom' or both.,It is probable that 'Winona is a mouse' or 'Mary went to the bedroom' or both.,1,'Winona is a mouse' or 'Mary went to the bedroom' or both. It is almost certain that Jason is tired. There is little chance that Brian is gray. It is probably the case that Mary moved to the office.,We doubt that 'Jason is tired' 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 0.95::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.955,0.9385877175435087,test,almost certain,we doubt,It is almost certain that 'Jason is tired' or 'Brian is gray' or both.,We doubt that 'Jason is tired' or 'Brian is gray' or both.,0,'Jason is tired' or 'Brian is gray' or both. It is likely that Julius is a lion. We believe that Emily is a wolf. There is almost no chance that Greg is a frog.,It is almost certain that 'Julius is a lion' or 'Emily 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.75::factB. 0.02::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.925,0.9125825165033007,test,almost certain,little chance,It is almost certain that 'Julius is a lion' or 'Emily is a wolf' or both.,There is little chance that 'Julius is a lion' or 'Emily is a wolf' or both.,1,'Julius is a lion' or 'Emily is a wolf' or both. There is little chance that Brian is green. It is probable that Julius is a frog. There is a better than even chance that Bernhard is a swan.,There is almost no chance that either 'Bernhard is a swan' or 'Brian 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.1::factA. 0.7::factB. 0.6::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.58,0.9675935187037408,test,better than even,almost no chance,There is a better than even chance that either 'Bernhard is a swan' or 'Brian is green' but not both.,There is almost no chance that either 'Bernhard is a swan' or 'Brian is green' but not both.,0,Either 'Bernhard is a swan' or 'Brian is green' but not both. We believe that Mary went to the hallway. It is certain that Winona is a wolf. There is almost no chance that Emily is a wolf.,We doubt that 'Mary went to the hallway' or 'Emily 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.75::factA. 1.0::factB. 0.02::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.755,0.9923984796959392,test,we believe,we doubt,We believe that 'Mary went to the hallway' or 'Emily is a wolf' or both.,We doubt that 'Mary went to the hallway' or 'Emily is a wolf' or both.,0,'Mary went to the hallway' or 'Emily is a wolf' or both. We doubt that Brian is a rhino. It is almost certain that Lily is a swan. There is little chance that Emily is a mouse.,It is improbable that 'Emily is a mouse' 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.2::factA. 0.95::factB. 0.1::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.955,0.9007801560312062,test,almost certain,improbable,It is almost certain that 'Emily is a mouse' or 'Lily is a swan' or both.,It is improbable that 'Emily is a mouse' or 'Lily is a swan' or both.,0,'Emily is a mouse' or 'Lily is a swan' or both. Chances are about even that Fred went to the office. There is little chance that Mary got the apple. It is improbable that Emily is a mouse.,There is a better than even chance that 'Mary got the apple' or 'Fred 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.5::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.55,0.9299859971994399,test,better than even,highly unlikely,There is a better than even chance that 'Mary got the apple' or 'Fred went to the office' or both.,It is highly unlikely that 'Mary got the apple' or 'Fred went to the office' or both.,1,'Mary got the apple' or 'Fred went to the office' or both. It is unlikely that Lily is a lion. It is unlikely that John picked up the milk. It is probably the case that Brian is yellow.,There is little chance that 'Lily is a lion 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.2::factB. 0.7::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.14,0.9413882776555311,test,little chance,probable,There is little chance that 'Lily is a lion and Brian is yellow'.,It is probable that 'Lily is a lion and Brian is yellow'.,1,'Lily is a lion and Brian is yellow'. We doubt that Mary dropped the apple. It is certain that Greg is a swan. It is highly likely that John grabbed the apple.,There is a very good chance that either 'Mary dropped the apple' 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.2::factA. 1.0::factB. 0.9::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.8,0.9737947589517904,test,very good chance,improbable,There is a very good chance that either 'Mary dropped the apple' or 'Greg is a swan' but not both.,It is improbable that either 'Mary dropped the apple' or 'Greg is a swan' but not both.,1,Either 'Mary dropped the apple' or 'Greg is a swan' but not both. It is almost certain that John got the apple. It is likely that Greg is a frog. It is improbable that Mary moved to the office.,It is highly likely that either 'Mary moved to the office' or 'John 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.95::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.86,0.9587917583516703,test,highly likely,unlikely,It is highly likely that either 'Mary moved to the office' or 'John got the apple' but not both.,It is unlikely that either 'Mary moved to the office' or 'John got the apple' but not both.,1,Either 'Mary moved to the office' or 'John got the apple' but not both. We doubt that Mary grabbed the milk. There is a very good chance that Julius is a swan. It is probably not the case that Greg is a rhino.,It is impossible that 'Greg is a rhino' or 'Mary grabbed 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.8::factB. 0.25::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.4,0.911382276455291,test,about even,impossible,Chances are about even that 'Greg is a rhino' or 'Mary grabbed the milk' or both.,It is impossible that 'Greg is a rhino' or 'Mary grabbed the milk' or both.,0,'Greg is a rhino' or 'Mary grabbed the milk' or both. There is almost no chance that Bernhard is yellow. It is probably the case that Brian is a swan. There is almost no chance that Mary picked up the apple.,It is certain that 'Mary picked up the apple' 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.02::factA. 0.7::factB. 0.02::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.0396,0.9787957591518304,test,highly unlikely,certain,It is highly unlikely that 'Mary picked up the apple' or 'Bernhard is yellow' or both.,It is certain that 'Mary picked up the apple' or 'Bernhard is yellow' or both.,0,'Mary picked up the apple' or 'Bernhard is yellow' or both. There is a very good chance that Mary got the football. It is likely that John moved to the office. There is a better than even chance that Brian is white.,There is a better than even chance that 'Mary got the football 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.8::factA. 0.7::factB. 0.6::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.5599999999999999,0.9011802360472094,test,better than even,chances are slight,There is a better than even chance that 'Mary got the football and John moved to the office'.,Chances are slight that 'Mary got the football and John moved to the office'.,1,'Mary got the football and John moved to the office'. Chances are about even that Julius is white. There is a very good chance that Sandra took the milk. It is highly unlikely that Jeff moved to the garden.,It is impossible that 'Julius is white' 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.5::factA. 0.8::factB. 0.05::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.525,0.9231846369273855,test,about even,impossible,Chances are about even that 'Julius is white' or 'Jeff moved to the garden' or both.,It is impossible that 'Julius is white' or 'Jeff moved to the garden' or both.,0,'Julius is white' or 'Jeff moved to the garden' or both. We doubt that Bill left the football. It is highly likely that Brian is a swan. It is unlikely that Greg is a rhino.,We believe that either 'Brian is a swan' 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.2::factA. 0.9::factB. 0.2::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.74,0.9009801960392079,test,we believe,probably not,We believe that either 'Brian is a swan' or 'Greg is a rhino' but not both.,It is probably not the case that either 'Brian is a swan' or 'Greg is a rhino' but not both.,1,Either 'Brian is a swan' or 'Greg is a rhino' but not both. It is probably not the case that Greg is a rhino. It is improbable that John moved to the office. It is highly likely that Jeff went to the bedroom.,It is certain that 'Jeff went to the bedroom 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.25::factA. 0.1::factB. 0.9::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.225,0.9713942788557711,test,unlikely,certain,It is unlikely that 'Jeff went to the bedroom and Greg is a rhino'.,It is certain that 'Jeff went to the bedroom and Greg is a rhino'.,0,'Jeff went to the bedroom and Greg is a rhino'. Chances are about even that John discarded the apple. It is likely that Sandra left the milk. It is probably not the case that Mary went to the bedroom.,There is a very good chance that 'Sandra left the milk 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.5::factA. 0.7::factB. 0.25::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.3499999999999999,0.9281856371274255,test,probably not,very good chance,It is probably not the case that 'Sandra left the milk and John discarded the apple'.,There is a very good chance that 'Sandra left the milk and John discarded the apple'.,0,'Sandra left the milk and John discarded the apple'. There is a very good chance that Greg is green. It is highly unlikely that Lily is a lion. Chances are slight that Brian is white.,It is probably the case that 'Lily is a lion 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 0.8::factA. 0.05::factB. 0.1::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.005000000000000002,0.9017803560712142,test,impossible,probably,It is impossible that 'Lily is a lion and Brian is white'.,It is probably the case that 'Lily is a lion and Brian is white'.,0,'Lily is a lion and Brian is white'. Chances are slight that Daniel left the milk. Chances are slight that Julius is a lion. Chances are slight that Sandra dropped the milk.,There is almost no chance that 'Sandra dropped the milk and Daniel 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.1::factB. 0.1::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.010000000000000004,0.9087817563512702,test,almost no chance,we believe,There is almost no chance that 'Sandra dropped the milk and Daniel left the milk'.,We believe that 'Sandra dropped the milk and Daniel left the milk'.,1,'Sandra dropped the milk and Daniel left the milk'. It is almost certain that Lily is a frog. There is little chance that Gertrude is a wolf. Chances are about even that Bernhard is a rhino.,Chances are about even that either 'Lily is a frog' 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.95::factA. 0.1::factB. 0.5::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.5,0.953990798159632,test,about even,almost certain,Chances are about even that either 'Lily is a frog' or 'Bernhard is a rhino' but not both.,It is almost certain that either 'Lily is a frog' or 'Bernhard is a rhino' but not both.,1,Either 'Lily is a frog' or 'Bernhard is a rhino' but not both. It is probably not the case that Fred moved to the office. It is improbable that Julius is a swan. It is improbable that John dropped the milk.,There is almost no chance that 'Fred moved to the office 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.25::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.025000000000000012,0.95999199839968,test,almost no chance,likely,There is almost no chance that 'Fred moved to the office and Julius is a swan'.,It is likely that 'Fred moved to the office and Julius is a swan'.,1,'Fred moved to the office and Julius is a swan'. It is probably not the case that Greg is a frog. It is probably not the case that Lily is a swan. There is little chance that John dropped the apple.,It is likely that 'John dropped the apple 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 0.25::factA. 0.25::factB. 0.1::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.025000000000000012,0.9903980796159232,test,almost no chance,likely,There is almost no chance that 'John dropped the apple and Greg is a frog'.,It is likely that 'John dropped the apple and Greg is a frog'.,0,'John dropped the apple and Greg is a frog'. It is highly likely that John discarded the apple. It is impossible that Lily is a rhino. There is a very good chance that Julius is a frog.,It is probably not the case that either 'John discarded 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.9::factA. 0.0::factB. 0.8::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.25999999999999995,0.9305861172234446,test,probably not,certain,It is probably not the case that either 'John discarded the apple' or 'Julius is a frog' but not both.,It is certain that either 'John discarded the apple' or 'Julius is a frog' but not both.,1,Either 'John discarded the apple' or 'Julius is a frog' but not both. Chances are about even that Daniel left the apple. It is almost certain that Lily is a rhino. Chances are slight that Mary went to the bedroom.,There is almost no chance that either 'Daniel left the apple' 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.5::factA. 0.95::factB. 0.1::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.5,0.9085817163432687,test,about even,almost no chance,Chances are about even that either 'Daniel left the apple' or 'Mary went to the bedroom' but not both.,There is almost no chance that either 'Daniel left the apple' or 'Mary went to the bedroom' but not both.,0,Either 'Daniel left the apple' or 'Mary went to the bedroom' but not both. It is highly likely that Greg is a swan. It is certain that John moved to the office. It is unlikely that Bernhard is a frog.,It is impossible that either 'John moved to the office' 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. 1.0::factB. 0.2::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.8,0.9791958391678336,test,very good chance,impossible,There is a very good chance that either 'John moved to the office' or 'Bernhard is a frog' but not both.,It is impossible that either 'John moved to the office' or 'Bernhard is a frog' but not both.,0,Either 'John moved to the office' or 'Bernhard is a frog' but not both. There is a very good chance that Brian is a swan. There is a very good chance that Emily is a cat. It is almost certain that Mary went to the bedroom.,It is probably not the case that either 'Emily is a cat' 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.8::factA. 0.8::factB. 0.95::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.32,0.9043808761752351,test,probably not,certain,It is probably not the case that either 'Emily is a cat' or 'Brian is a swan' but not both.,It is certain that either 'Emily is a cat' or 'Brian is a swan' but not both.,1,Either 'Emily is a cat' or 'Brian is a swan' but not both. It is impossible that Mary went to the bedroom. It is almost certain that John dropped the milk. It is probably not the case that Julius is a frog.,It is probably not the case that 'Julius is a frog 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.0::factA. 0.95::factB. 0.25::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.2375,0.9741948389677936,test,probably not,we believe,It is probably not the case that 'Julius is a frog and John dropped the milk'.,We believe that 'Julius is a frog and John dropped the milk'.,1,'Julius is a frog and John dropped the milk'. It is highly unlikely that Mary went to the garden. It is probably the case that Winona is a wolf. It is probably the case that Lily is white.,It is improbable that 'Winona is a wolf' 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.05::factA. 0.7::factB. 0.7::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.9099999999999999,0.9393878775755151,test,highly likely,improbable,It is highly likely that 'Winona is a wolf' or 'Lily is white' or both.,It is improbable that 'Winona is a wolf' or 'Lily is white' or both.,0,'Winona is a wolf' or 'Lily is white' or both. It is probably the case that Lily is a lion. We believe that Bernhard is a swan. We doubt that Mary grabbed the milk.,It is highly unlikely that 'Lily is a lion 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.75::factB. 0.2::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.525,0.9209841968393678,test,about even,highly unlikely,Chances are about even that 'Lily is a lion and Bernhard is a swan'.,It is highly unlikely that 'Lily is a lion and Bernhard is a swan'.,0,'Lily is a lion and Bernhard is a swan'. There is little chance that Lily is a rhino. Chances are slight that Mary went to the hallway. It is highly likely that Bernhard is white.,Chances are slight that 'Mary went to the hallway and Bernhard 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.1::factB. 0.9::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.09000000000000001,0.9357871574314863,test,chances are slight,better than even,Chances are slight that 'Mary went to the hallway and Bernhard is white'.,There is a better than even chance that 'Mary went to the hallway and Bernhard is white'.,1,'Mary went to the hallway and Bernhard is white'. It is highly likely that Brian is a frog. Chances are slight that Julius is a rhino. It is improbable that Mary left the football.,It is highly likely that 'Julius is a rhino' 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.9::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.91,0.9509901980396079,test,highly likely,we doubt,It is highly likely that 'Julius is a rhino' or 'Brian is a frog' or both.,We doubt that 'Julius is a rhino' or 'Brian is a frog' or both.,1,'Julius is a rhino' or 'Brian is a frog' or both. It is unlikely that Bernhard is green. It is probable that Julius is a lion. It is unlikely that John dropped the apple.,Chances are slight that 'Julius is a lion 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.7::factB. 0.2::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.14,0.9399879975995199,test,chances are slight,certain,Chances are slight that 'Julius is a lion and Bernhard is green'.,It is certain that 'Julius is a lion and Bernhard is green'.,1,'Julius is a lion and Bernhard is green'. There is a very good chance that Mary dropped the milk. It is likely that John went to the office. We believe that Brian is a rhino.,It is probably not the case that either 'Brian is a rhino' or 'Mary 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.8::factA. 0.7::factB. 0.75::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.35000000000000003,0.9935987197439488,test,probably not,we believe,It is probably not the case that either 'Brian is a rhino' or 'Mary dropped the milk' but not both.,We believe that either 'Brian is a rhino' or 'Mary dropped the milk' but not both.,1,Either 'Brian is a rhino' or 'Mary dropped the milk' but not both. There is almost no chance that Julius is green. It is likely that Sandra dropped the milk. We believe that John went to the garden.,It is likely that 'Sandra dropped the milk' 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.02::factA. 0.7::factB. 0.75::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.706,0.9831966393278656,test,likely,we doubt,It is likely that 'Sandra dropped the milk' or 'Julius is green' or both.,We doubt that 'Sandra dropped the milk' or 'Julius is green' or both.,1,'Sandra dropped the milk' or 'Julius is green' or both. It is improbable that Greg is a frog. It is almost certain that Jeff dropped the apple. Chances are about even that John moved to the garden.,It is almost certain that 'Jeff dropped the apple' 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.1::factA. 0.95::factB. 0.5::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.955,0.9693938787757551,test,almost certain,improbable,It is almost certain that 'Jeff dropped the apple' or 'Greg is a frog' or both.,It is improbable that 'Jeff dropped the apple' or 'Greg is a frog' or both.,1,'Jeff dropped the apple' or 'Greg is a frog' or both. We doubt that Greg is a swan. It is unlikely that Lily is yellow. There is little chance that Antoine is bored.,We believe that 'Lily is yellow' 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.2::factB. 0.1::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.36000000000000004,0.9823964792958592,test,probably not,we believe,It is probably not the case that 'Lily is yellow' or 'Greg is a swan' or both.,We believe that 'Lily is yellow' or 'Greg is a swan' or both.,0,'Lily is yellow' or 'Greg is a swan' or both. There is a better than even chance that Mary went to the bedroom. There is almost no chance that Brian is green. It is almost certain that Jessica is a cat.,There is little chance that 'Brian is green' 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.6::factA. 0.02::factB. 0.95::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.951,0.9667933586717343,test,almost certain,little chance,It is almost certain that 'Brian is green' or 'Jessica is a cat' or both.,There is little chance that 'Brian is green' or 'Jessica is a cat' or both.,0,'Brian is green' or 'Jessica is a cat' or both. It is probably not the case that John dropped the apple. Chances are about even that Winona is a cat. We believe that Mary got the football.,We doubt that 'John dropped the apple 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.25::factA. 0.5::factB. 0.75::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.1875,0.9369873974794959,test,we doubt,probably,We doubt that 'John dropped the apple and Mary got the football'.,It is probably the case that 'John dropped the apple and Mary got the football'.,1,'John dropped the apple and Mary got the football'. There is almost no chance that Sandra left the milk. Chances are slight that John moved to the garden. It is highly unlikely that Greg is yellow.,It is impossible that 'Greg is yellow 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.02::factA. 0.1::factB. 0.05::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.0010000000000000002,0.9631926385277055,test,impossible,we believe,It is impossible that 'Greg is yellow and Sandra left the milk'.,We believe that 'Greg is yellow and Sandra left the milk'.,1,'Greg is yellow and Sandra left the milk'. It is probably not the case that Greg is a rhino. There is little chance that Julius is a swan. It is highly unlikely that Mary left the football.,There is a better than even chance that 'Julius is a swan 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.25::factA. 0.1::factB. 0.05::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.025000000000000012,0.9277855571114223,test,almost no chance,better than even,There is almost no chance that 'Julius is a swan and Greg is a rhino'.,There is a better than even chance that 'Julius is a swan and Greg is a rhino'.,0,'Julius is a swan and Greg is a rhino'. It is likely that Sandra dropped the milk. It is likely that Winona is a sheep. It is improbable that Mary got the milk.,It is probably the case that either 'Winona is a sheep' or 'Mary 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.1::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.6599999999999999,0.9181836367273455,test,probably,little chance,It is probably the case that either 'Winona is a sheep' or 'Mary got the milk' but not both.,There is little chance that either 'Winona is a sheep' or 'Mary got the milk' but not both.,1,Either 'Winona is a sheep' or 'Mary got the milk' but not both. We believe that John went to the garden. We believe that Julius is a frog. There is almost no chance that Lily is a lion.,It is unlikely that 'Lily is a lion' 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.75::factA. 0.75::factB. 0.02::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.755,0.9863972794558912,test,we believe,unlikely,We believe that 'Lily is a lion' or 'Julius is a frog' or both.,It is unlikely that 'Lily is a lion' or 'Julius is a frog' or both.,0,'Lily is a lion' or 'Julius is a frog' or both. There is a better than even chance that Jessica is a mouse. It is highly likely that Brian is a frog. We doubt that Sandra dropped the milk.,Chances are about even that 'Brian 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.6::factA. 0.9::factB. 0.2::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.5399999999999999,0.9893978795759152,test,about even,almost certain,Chances are about even that 'Brian is a frog and Jessica is a mouse'.,It is almost certain that 'Brian is a frog and Jessica is a mouse'.,1,'Brian is a frog and Jessica is a mouse'. It is improbable that John left the milk. It is highly unlikely that Greg is yellow. It is likely that Emily is a mouse.,It is impossible that either 'Greg is yellow' 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.05::factB. 0.7::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.6799999999999999,0.9285857171434286,test,probable,impossible,It is probable that either 'Greg is yellow' or 'Emily is a mouse' but not both.,It is impossible that either 'Greg is yellow' or 'Emily is a mouse' but not both.,0,Either 'Greg is yellow' or 'Emily is a mouse' but not both. It is probable that Greg is a swan. There is a very good chance that Emily is a cat. Chances are about even that Julius is a lion.,It is probably not the case that 'Julius is a lion' 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.7::factA. 0.8::factB. 0.5::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.9,0.9865973194638927,test,highly likely,probably not,It is highly likely that 'Julius is a lion' or 'Emily is a cat' or both.,It is probably not the case that 'Julius is a lion' or 'Emily is a cat' or both.,0,'Julius is a lion' or 'Emily is a cat' or both. We believe that Yann is hungry. There is little chance that Daniel got the milk. It is highly likely that Greg is yellow.,It is certain that either 'Greg is yellow' or 'Yann is hungry' 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.1::factB. 0.9::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.30000000000000004,0.9955991198239648,test,probably not,certain,It is probably not the case that either 'Greg is yellow' or 'Yann is hungry' but not both.,It is certain that either 'Greg is yellow' or 'Yann is hungry' but not both.,0,Either 'Greg is yellow' or 'Yann is hungry' but not both. It is highly unlikely that Greg is a swan. It is likely that Bernhard is yellow. It is probable that Lily is a lion.,It is likely that 'Greg is a swan' 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.05::factA. 0.7::factB. 0.7::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.715,0.9775955191038208,test,likely,impossible,It is likely that 'Greg is a swan' or 'Bernhard is yellow' or both.,It is impossible that 'Greg is a swan' or 'Bernhard is yellow' or both.,1,'Greg is a swan' or 'Bernhard is yellow' or both. There is a very good chance that Bernhard is a frog. It is probable that Brian is a swan. It is impossible that Greg is a rhino.,It is probable that 'Brian is a swan' 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.7::factB. 0.0::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.7,0.996999399879976,test,probable,almost no chance,It is probable that 'Brian is a swan' or 'Greg is a rhino' or both.,There is almost no chance that 'Brian is a swan' or 'Greg is a rhino' or both.,1,'Brian is a swan' or 'Greg is a rhino' or both. It is certain that Mary left the football. Chances are slight that Lily is yellow. It is certain that Sandra got the milk.,It is probably not the case that either 'Lily is yellow' 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 1.0::factA. 0.1::factB. 1.0::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.9,0.9265853170634127,test,highly likely,probably not,It is highly likely that either 'Lily is yellow' or 'Sandra got the milk' but not both.,It is probably not the case that either 'Lily is yellow' or 'Sandra got the milk' but not both.,0,Either 'Lily is yellow' or 'Sandra got the milk' but not both. It is improbable that Lily is a swan. It is likely that Greg is gray. It is probably not the case that John dropped the apple.,We doubt that 'John dropped the apple 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.7::factB. 0.25::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.175,0.9701940388077616,test,we doubt,probable,We doubt that 'John dropped the apple and Greg is gray'.,It is probable that 'John dropped the apple and Greg is gray'.,1,'John dropped the apple and Greg is gray'. It is likely that Greg is yellow. There is a better than even chance that John took the football. It is unlikely that Brian is yellow.,It is highly likely that 'Greg is yellow' or 'John took 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.7::factA. 0.6::factB. 0.2::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.88,0.9521904380876175,test,highly likely,we doubt,It is highly likely that 'Greg is yellow' or 'John took the football' or both.,We doubt that 'Greg is yellow' or 'John took the football' or both.,1,'Greg is yellow' or 'John took the football' or both. We doubt that Jessica is a cat. It is highly likely that Bernhard is gray. It is unlikely that Mary left the football.,It is highly likely that 'Mary left the football' or 'Bernhard 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.9::factB. 0.2::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.92,0.9761952390478096,test,highly likely,we doubt,It is highly likely that 'Mary left the football' or 'Bernhard is gray' or both.,We doubt that 'Mary left the football' or 'Bernhard is gray' or both.,1,'Mary left the football' or 'Bernhard is gray' or both. There is a very good chance that John dropped the apple. There is little chance that Greg is white. It is probably not the case that Sandra put down the milk.,Chances are slight that 'Greg is white and John 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.8::factA. 0.1::factB. 0.25::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.08000000000000002,0.9845969193838767,test,chances are slight,very good chance,Chances are slight that 'Greg is white and John dropped the apple'.,There is a very good chance that 'Greg is white and John dropped the apple'.,1,'Greg is white and John dropped the apple'. Chances are about even that Bernhard is gray. There is almost no chance that John grabbed the apple. It is probable that Julius is a rhino.,There is little chance that either 'John grabbed 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.5::factA. 0.02::factB. 0.7::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.692,0.9615923184636928,test,probably,little chance,It is probably the case that either 'John grabbed the apple' or 'Julius is a rhino' but not both.,There is little chance that either 'John grabbed the apple' or 'Julius is a rhino' but not both.,0,Either 'John grabbed the apple' or 'Julius is a rhino' but not both. It is unlikely that Julius is a rhino. It is almost certain that Lily is gray. It is probably the case that Bernhard is a frog.,It is likely that 'Bernhard is a frog 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.2::factA. 0.95::factB. 0.7::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.6649999999999999,0.9453890778155631,test,likely,almost no chance,It is likely that 'Bernhard is a frog and Lily is gray'.,There is almost no chance that 'Bernhard is a frog and Lily is gray'.,1,'Bernhard is a frog and Lily is gray'. It is likely that Mary left the football. It is probably not the case that John got the apple. It is probable that Greg is a rhino.,It is improbable that either 'Greg is a rhino' or 'John 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.7::factA. 0.25::factB. 0.7::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.6,0.9931986397279456,test,better than even,improbable,There is a better than even chance that either 'Greg is a rhino' or 'John got the apple' but not both.,It is improbable that either 'Greg is a rhino' or 'John got the apple' but not both.,0,Either 'Greg is a rhino' or 'John got the apple' but not both. It is improbable that John went to the bedroom. Chances are slight that Jason is thirsty. It is probably the case that Julius is gray.,We believe that 'Jason is thirsty' 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.1::factB. 0.7::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.73,0.9237847569513903,test,we believe,impossible,We believe that 'Jason is thirsty' or 'Julius is gray' or both.,It is impossible that 'Jason is thirsty' or 'Julius is gray' or both.,1,'Jason is thirsty' or 'Julius is gray' or both. Chances are about even that Mary put down the apple. It is highly likely that John left the milk. It is unlikely that Greg is green.,There is a better than even chance that 'Greg is green' or 'Mary 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.5::factA. 0.9::factB. 0.2::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.6,0.9119823964792959,test,better than even,impossible,There is a better than even chance that 'Greg is green' or 'Mary put down the apple' or both.,It is impossible that 'Greg is green' or 'Mary put down the apple' or both.,1,'Greg is green' or 'Mary put down the apple' or both. It is likely that Julius is a rhino. It is certain that Mary took the football. It is probably the case that Lily is white.,It is probably not the case that either 'Julius is a rhino' or 'Mary 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. 1.0::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.30000000000000004,0.9523904780956192,test,probably not,probably,It is probably not the case that either 'Julius is a rhino' or 'Mary took the football' but not both.,It is probably the case that either 'Julius is a rhino' or 'Mary took the football' but not both.,1,Either 'Julius is a rhino' or 'Mary took the football' but not both. We believe that Antoine is hungry. It is almost certain that Jeff moved to the garden. There is a very good chance that Sandra took the apple.,There is a very good chance that either 'Jeff moved to the garden' or 'Antoine is hungry' 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.95::factB. 0.8::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.275,0.9075815163032607,test,probably not,very good chance,It is probably not the case that either 'Jeff moved to the garden' or 'Antoine is hungry' but not both.,There is a very good chance that either 'Jeff moved to the garden' or 'Antoine is hungry' but not both.,0,Either 'Jeff moved to the garden' or 'Antoine is hungry' but not both. It is probably the case that Brian is a lion. There is little chance that Julius is yellow. It is probably not the case that John dropped the apple.,There is a very good chance that either 'Julius is yellow' or 'John 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.1::factB. 0.25::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.30000000000000004,0.956991398279656,test,probably not,very good chance,It is probably not the case that either 'Julius is yellow' or 'John dropped the apple' but not both.,There is a very good chance that either 'Julius is yellow' or 'John dropped the apple' but not both.,0,Either 'Julius is yellow' or 'John dropped the apple' but not both. There is almost no chance that Julius is green. It is probably not the case that Fred went to the garden. There is a very good chance that John discarded the apple.,It is highly unlikely that 'Fred 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.02::factA. 0.25::factB. 0.8::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.8500000000000001,0.9653930786157231,test,highly likely,highly unlikely,It is highly likely that 'Fred went to the garden' or 'John discarded the apple' or both.,It is highly unlikely that 'Fred went to the garden' or 'John discarded the apple' or both.,0,'Fred went to the garden' or 'John discarded the apple' or both. It is impossible that Lily is a lion. There is almost no chance that Bernhard is gray. There is a better than even chance that John went to the hallway.,It is likely that 'John went to the hallway 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.0::factA. 0.02::factB. 0.6::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.0,0.9431886377275455,test,impossible,likely,It is impossible that 'John went to the hallway and Lily is a lion'.,It is likely that 'John went to the hallway and Lily is a lion'.,0,'John went to the hallway and Lily is a lion'. It is almost certain that Julius is green. Chances are about even that Brian is a swan. It is probably not the case that Gertrude is a mouse.,It is almost certain that 'Julius is green' 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.95::factA. 0.5::factB. 0.25::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.975,0.9149829965993199,test,almost certain,about even,It is almost certain that 'Julius is green' or 'Brian is a swan' or both.,Chances are about even that 'Julius is green' or 'Brian is a swan' or both.,1,'Julius is green' or 'Brian is a swan' or both. It is likely that John picked up the milk. It is impossible that Greg is gray. It is impossible that Bernhard is gray.,It is probably the case that 'Bernhard is gray 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.7::factA. 0.0::factB. 0.0::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.0,0.9029805961192239,test,impossible,probably,It is impossible that 'Bernhard is gray and Greg is gray'.,It is probably the case that 'Bernhard is gray and Greg is gray'.,0,'Bernhard is gray and Greg is gray'. Chances are slight that Fred went to the garden. It is almost certain that John left the apple. Chances are about even that Greg is a frog.,Chances are slight that 'John left the apple' 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.1::factA. 0.95::factB. 0.5::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.975,0.9339867973594719,test,almost certain,chances are slight,It is almost certain that 'John left the apple' or 'Greg is a frog' or both.,Chances are slight that 'John left the apple' or 'Greg is a frog' or both.,0,'John left the apple' or 'Greg is a frog' or both. It is highly likely that Mary went to the hallway. It is almost certain that Brian is a lion. It is likely that Julius is white.,There is little chance that 'Brian is a lion' 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.9::factA. 0.95::factB. 0.7::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.985,0.9811962392478496,test,certain,little chance,It is certain that 'Brian is a lion' or 'Julius is white' or both.,There is little chance that 'Brian is a lion' or 'Julius is white' or both.,0,'Brian is a lion' or 'Julius is white' or both. It is probably not the case that Mary moved to the office. It is likely that Gertrude is a sheep. It is likely that Sandra dropped the milk.,Chances are about even that 'Gertrude is a sheep and Sandra 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.25::factA. 0.7::factB. 0.7::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.48999999999999994,0.9079815963192639,test,about even,certain,Chances are about even that 'Gertrude is a sheep and Sandra dropped the milk'.,It is certain that 'Gertrude is a sheep and Sandra dropped the milk'.,1,'Gertrude is a sheep and Sandra dropped the milk'. It is probably not the case that Mary put down the apple. It is highly unlikely that Winona is a wolf. It is probably not the case that Brian is green.,It is highly unlikely that 'Brian is green and Mary 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. 0.05::factB. 0.25::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.0625,0.9727945589117823,test,highly unlikely,highly likely,It is highly unlikely that 'Brian is green and Mary put down the apple'.,It is highly likely that 'Brian is green and Mary put down the apple'.,1,'Brian is green and Mary put down the apple'. It is certain that Lily is a swan. It is almost certain that Mary dropped the milk. We doubt that Bernhard is white.,Chances are about even that 'Lily is a swan 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 1.0::factA. 0.95::factB. 0.2::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.95,0.997999599919984,test,almost certain,about even,It is almost certain that 'Lily is a swan and Mary dropped the milk'.,Chances are about even that 'Lily is a swan and Mary dropped the milk'.,0,'Lily is a swan and Mary dropped the milk'. It is almost certain that Sandra got the football. We believe that Gertrude is a cat. There is almost no chance that Bernhard is green.,It is probable that 'Bernhard is green 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.95::factA. 0.75::factB. 0.02::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.014999999999999998,0.9365873174634927,test,almost no chance,probable,There is almost no chance that 'Bernhard is green and Gertrude is a cat'.,It is probable that 'Bernhard is green and Gertrude is a cat'.,0,'Bernhard is green and Gertrude is a cat'. It is probably not the case that John went to the garden. It is certain that Mary discarded the milk. There is little chance that Julius is white.,It is highly likely that either 'Julius is white' 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.25::factA. 1.0::factB. 0.1::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.9,0.9663932786557311,test,highly likely,probably not,It is highly likely that either 'Julius is white' or 'Mary discarded the milk' but not both.,It is probably not the case that either 'Julius is white' or 'Mary discarded the milk' but not both.,1,Either 'Julius is white' or 'Mary discarded the milk' but not both. There is almost no chance that Jessica is a mouse. It is highly unlikely that Mary dropped the milk. We believe that Lily is green.,Chances are slight that either 'Lily is green' or 'Mary 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.02::factA. 0.05::factB. 0.75::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.7250000000000001,0.9875975195039007,test,we believe,chances are slight,We believe that either 'Lily is green' or 'Mary dropped the milk' but not both.,Chances are slight that either 'Lily is green' or 'Mary dropped the milk' but not both.,0,Either 'Lily is green' or 'Mary dropped the milk' but not both. It is probable that Brian is gray. It is probably the case that John went to the bedroom. It is probable that Fred discarded the apple.,It is highly likely that 'Brian is gray' or 'Fred 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.7::factA. 0.7::factB. 0.7::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.9099999999999999,0.9773954790958191,test,highly likely,we doubt,It is highly likely that 'Brian is gray' or 'Fred discarded the apple' or both.,We doubt that 'Brian is gray' or 'Fred discarded the apple' or both.,1,'Brian is gray' or 'Fred discarded the apple' or both. It is almost certain that Sandra took the football. It is unlikely that Greg is white. There is a very good chance that John went to the garden.,It is probably not the case that either 'Sandra took the football' or 'John 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.95::factA. 0.2::factB. 0.8::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.23,0.9807961592318464,test,probably not,likely,It is probably not the case that either 'Sandra took the football' or 'John went to the garden' but not both.,It is likely that either 'Sandra took the football' or 'John went to the garden' but not both.,1,Either 'Sandra took the football' or 'John went to the garden' but not both. It is probably the case that Julius is a frog. It is probably not the case that John discarded the milk. It is probable that Greg is a swan.,It is probable that 'Greg is a swan and John 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.7::factA. 0.25::factB. 0.7::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.175,0.95499099819964,test,we doubt,probable,We doubt that 'Greg is a swan and John discarded the milk'.,It is probable that 'Greg is a swan and John discarded the milk'.,0,'Greg is a swan and John discarded the milk'. It is almost certain that Fred went to the garden. We believe that Daniel dropped the milk. It is improbable that Gertrude is a wolf.,It is probably not the case that either 'Daniel dropped the milk' 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.95::factA. 0.75::factB. 0.1::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.275,0.9861972394478896,test,probably not,very good chance,It is probably not the case that either 'Daniel dropped the milk' or 'Fred went to the garden' but not both.,There is a very good chance that either 'Daniel dropped the milk' or 'Fred went to the garden' but not both.,1,Either 'Daniel dropped the milk' or 'Fred went to the garden' but not both. Chances are about even that Mary grabbed the milk. It is probably not the case that John went to the bedroom. It is highly likely that Bernhard is gray.,Chances are about even that 'Mary grabbed the milk' or 'Bernhard 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.25::factB. 0.9::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.9500000000000001,0.9541908381676335,test,almost certain,about even,It is almost certain that 'Mary grabbed the milk' or 'Bernhard is gray' or both.,Chances are about even that 'Mary grabbed the milk' or 'Bernhard is gray' or both.,0,'Mary grabbed the milk' or 'Bernhard is gray' or both. It is certain that Julius is gray. It is impossible that Lily is a swan. It is impossible that Mary dropped the milk.,It is impossible that either 'Mary dropped the milk' 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 1.0::factA. 0.0::factB. 0.0::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.0,0.9427885577115424,test,impossible,highly likely,It is impossible that either 'Mary dropped the milk' or 'Lily is a swan' but not both.,It is highly likely that either 'Mary dropped the milk' or 'Lily is a swan' but not both.,1,Either 'Mary dropped the milk' or 'Lily is a swan' but not both. It is highly likely that Sandra got the football. It is likely that Bernhard is yellow. There is almost no chance that Julius is a frog.,It is probably not the case that 'Julius is a frog' 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.9::factA. 0.7::factB. 0.02::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.706,0.9221844368873775,test,likely,probably not,It is likely that 'Julius is a frog' or 'Bernhard is yellow' or both.,It is probably not the case that 'Julius is a frog' or 'Bernhard is yellow' or both.,0,'Julius is a frog' or 'Bernhard is yellow' or both. It is certain that John picked up the apple. It is improbable that Mary grabbed the milk. It is highly unlikely that Brian is yellow.,It is impossible that 'John picked up the apple' 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 1.0::factA. 0.1::factB. 0.05::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",1.0,0.9267853570714143,test,certain,impossible,It is certain that 'John picked up the apple' or 'Brian is yellow' or both.,It is impossible that 'John picked up the apple' or 'Brian is yellow' or both.,0,'John picked up the apple' or 'Brian is yellow' or both. It is probable that Sandra took the football. It is almost certain that Daniel dropped the apple. It is certain that Brian is a swan.,It is impossible that 'Sandra took the football 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.7::factA. 0.95::factB. 1.0::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.6649999999999999,0.9887977595519104,test,probable,impossible,It is probable that 'Sandra took the football and Daniel dropped the apple'.,It is impossible that 'Sandra took the football and Daniel dropped the apple'.,0,'Sandra took the football and Daniel dropped the apple'. There is a very good chance that Greg is a lion. It is unlikely that Julius is white. We believe that Mary took the milk.,It is probably not the case that 'Greg is a lion' 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.8::factA. 0.2::factB. 0.75::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.8400000000000001,0.9847969593918784,test,very good chance,probably not,There is a very good chance that 'Greg is a lion' or 'Julius is white' or both.,It is probably not the case that 'Greg is a lion' or 'Julius is white' or both.,0,'Greg is a lion' or 'Julius is white' or both. It is unlikely that Sandra dropped the milk. There is little chance that Mary got the football. There is little chance that Emily is a wolf.,It is probably not the case that either 'Mary got the football' 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.2::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.26,0.9109821964392879,test,probably not,certain,It is probably not the case that either 'Mary got the football' or 'Sandra dropped the milk' but not both.,It is certain that either 'Mary got the football' or 'Sandra dropped the milk' but not both.,1,Either 'Mary got the football' or 'Sandra dropped the milk' but not both. It is likely that John went to the office. It is unlikely that Bernhard is green. It is likely that Brian is a frog.,There is a better than even chance that either 'John went to the office' 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.2::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.62,0.905381076215243,test,better than even,highly unlikely,There is a better than even chance that either 'John went to the office' or 'Bernhard is green' but not both.,It is highly unlikely that either 'John went to the office' or 'Bernhard is green' but not both.,1,Either 'John went to the office' or 'Bernhard is green' but not both. It is probably not the case that Lily is gray. It is probable that Brian is yellow. It is improbable that Fred went to the office.,It is improbable that either 'Fred went to the office' or 'Brian 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.7::factB. 0.1::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.6599999999999999,0.9065813162632527,test,likely,improbable,It is likely that either 'Fred went to the office' or 'Brian is yellow' but not both.,It is improbable that either 'Fred went to the office' or 'Brian is yellow' but not both.,0,Either 'Fred went to the office' or 'Brian is yellow' but not both. It is impossible that Mary took the milk. There is a very good chance that Brian is green. It is improbable that Julius is gray.,There is a very good chance that either 'Mary took the milk' or 'Brian 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.8::factB. 0.1::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.8,0.9505901180236047,test,very good chance,chances are slight,There is a very good chance that either 'Mary took the milk' or 'Brian is green' but not both.,Chances are slight that either 'Mary took the milk' or 'Brian is green' but not both.,1,Either 'Mary took the milk' or 'Brian is green' but not both. Chances are about even that Fred dropped the milk. It is highly likely that Brian is a swan. It is probably not the case that Bernhard is green.,It is probably not the case that 'Bernhard is green and Brian 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.9::factB. 0.25::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.225,0.9361872374474896,test,probably not,almost certain,It is probably not the case that 'Bernhard is green and Brian is a swan'.,It is almost certain that 'Bernhard is green and Brian is a swan'.,1,'Bernhard is green and Brian is a swan'. We believe that John discarded the milk. It is certain that Julius is a rhino. It is certain that Brian is yellow.,It is almost certain that either 'Julius is a rhino' or 'John 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.75::factA. 1.0::factB. 1.0::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.25,0.9157831566313263,test,probably not,almost certain,It is probably not the case that either 'Julius is a rhino' or 'John discarded the milk' but not both.,It is almost certain that either 'Julius is a rhino' or 'John discarded the milk' but not both.,0,Either 'Julius is a rhino' or 'John discarded the milk' but not both. It is highly unlikely that Brian is a lion. We believe that Gertrude is a sheep. It is impossible that John dropped the milk.,It is highly unlikely that 'Brian is a lion' 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.05::factA. 0.75::factB. 0.0::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.05000000000000001,0.907381476295259,test,highly unlikely,very good chance,It is highly unlikely that 'Brian is a lion' or 'John dropped the milk' or both.,There is a very good chance that 'Brian is a lion' or 'John dropped the milk' or both.,1,'Brian is a lion' or 'John dropped the milk' or both. There is little chance that Bernhard is a lion. Chances are slight that Julius is a frog. There is little chance that Sandra left the milk.,There is almost no chance that 'Sandra left the milk 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.1::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.010000000000000004,0.9573914782956592,test,almost no chance,likely,There is almost no chance that 'Sandra left the milk and Bernhard is a lion'.,It is likely that 'Sandra left the milk and Bernhard is a lion'.,1,'Sandra left the milk and Bernhard is a lion'. It is improbable that Brian is a rhino. It is probably the case that Lily is gray. It is probably the case that Mary grabbed the milk.,It is likely that either 'Lily is gray' 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.7::factB. 0.7::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.6599999999999999,0.9207841568313663,test,likely,chances are slight,It is likely that either 'Lily is gray' or 'Brian is a rhino' but not both.,Chances are slight that either 'Lily is gray' or 'Brian is a rhino' but not both.,1,Either 'Lily is gray' or 'Brian is a rhino' but not both. It is highly unlikely that Bernhard is a swan. There is a better than even chance that Brian is green. There is a very good chance that John picked up the apple.,There is almost no chance that either 'Brian is green' or 'John picked up 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.6::factB. 0.8::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.44,0.9777955591118224,test,about even,almost no chance,Chances are about even that either 'Brian is green' or 'John picked up the apple' but not both.,There is almost no chance that either 'Brian is green' or 'John picked up the apple' but not both.,0,Either 'Brian is green' or 'John picked up the apple' but not both. Chances are about even that Bernhard is green. It is almost certain that Lily is yellow. We believe that Greg is a frog.,Chances are about even that 'Bernhard is green 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.5::factA. 0.95::factB. 0.75::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.475,0.9167833566713343,test,about even,highly unlikely,Chances are about even that 'Bernhard is green and Lily is yellow'.,It is highly unlikely that 'Bernhard is green and Lily is yellow'.,1,'Bernhard is green and Lily is yellow'. It is highly likely that Greg is a swan. There is little chance that Mary got the milk. It is improbable that Brian is white.,Chances are slight that 'Greg is a swan' or 'Mary 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.1::factB. 0.1::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.91,0.9337867573514703,test,highly likely,chances are slight,It is highly likely that 'Greg is a swan' or 'Mary got the milk' or both.,Chances are slight that 'Greg is a swan' or 'Mary got the milk' or both.,0,'Greg is a swan' or 'Mary got the milk' or both. It is impossible that Bernhard is a swan. It is almost certain that Emily is a wolf. There is a better than even chance that John put down the milk.,Chances are slight that either 'Bernhard is a swan' or 'John 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.0::factA. 0.95::factB. 0.6::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.6,0.995999199839968,test,better than even,chances are slight,There is a better than even chance that either 'Bernhard is a swan' or 'John put down the milk' but not both.,Chances are slight that either 'Bernhard is a swan' or 'John put down the milk' but not both.,0,Either 'Bernhard is a swan' or 'John put down the milk' but not both. It is improbable that Greg is yellow. It is almost certain that Winona is a sheep. We doubt that Fred is in the school.,There is almost no chance that 'Greg is yellow and Fred is in the school'.," and(A,B) :- A,B. or(A,B) :- A;B. nand(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.2::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.02000000000000001,0.9041808361672334,test,almost no chance,probably,There is almost no chance that 'Greg is yellow and Fred is in the school'.,It is probably the case that 'Greg is yellow and Fred is in the school'.,1,'Greg is yellow and Fred is in the school'. It is likely that Brian is a frog. It is probably not the case that John discarded the apple. There is a very good chance that Greg is a rhino.,It is highly unlikely that either 'Brian is a frog' 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.7::factA. 0.25::factB. 0.8::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.38,0.971994398879776,test,about even,highly unlikely,Chances are about even that either 'Brian is a frog' or 'Greg is a rhino' but not both.,It is highly unlikely that either 'Brian is a frog' or 'Greg is a rhino' but not both.,0,Either 'Brian is a frog' or 'Greg is a rhino' but not both. It is highly unlikely that John dropped the apple. It is improbable that Mary went to the garden. It is impossible that Bernhard is a lion.,It is impossible that 'Mary went to the garden 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.05::factA. 0.1::factB. 0.0::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.0,0.9467893578715744,test,impossible,highly likely,It is impossible that 'Mary went to the garden and Bernhard is a lion'.,It is highly likely that 'Mary went to the garden and Bernhard is a lion'.,1,'Mary went to the garden and Bernhard is a lion'. It is probably the case that John went to the garden. It is improbable that Julius is gray. It is probably not the case that Lily is green.,It is probably not the case that 'Lily is green' 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.1::factB. 0.25::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.325,0.9421884376875375,test,probably not,very good chance,It is probably not the case that 'Lily is green' or 'Julius is gray' or both.,There is a very good chance that 'Lily is green' or 'Julius is gray' or both.,1,'Lily is green' or 'Julius is gray' or both. There is little chance that John took the football. It is probable that Emily is a mouse. It is probably the case that Mary picked up the milk.,It is highly unlikely that 'Mary picked up the milk and John 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.1::factA. 0.7::factB. 0.7::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.07,0.9585917183436687,test,highly unlikely,very good chance,It is highly unlikely that 'Mary picked up the milk and John took the football'.,There is a very good chance that 'Mary picked up the milk and John took the football'.,1,'Mary picked up the milk and John took the football'. It is probable that Greg is a lion. There is almost no chance that Julius is a swan. It is highly likely that Mary left the milk.,It is highly likely that 'Greg is a lion 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.02::factB. 0.9::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.014000000000000007,1.0,test,almost no chance,highly likely,There is almost no chance that 'Greg is a lion and Julius is a swan'.,It is highly likely that 'Greg is a lion and Julius is a swan'.,0,'Greg is a lion and Julius is a swan'. Chances are about even that Daniel dropped the milk. It is improbable that Lily is yellow. Chances are slight that Mary is in the hallway.,It is highly unlikely that 'Lily is yellow and Daniel 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.1::factB. 0.1::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.05000000000000001,0.9287857571514303,test,highly unlikely,about even,It is highly unlikely that 'Lily is yellow and Daniel dropped the milk'.,Chances are about even that 'Lily is yellow and Daniel dropped the milk'.,1,'Lily is yellow and Daniel dropped the milk'. It is improbable that Lily is white. It is unlikely that Brian is a lion. It is highly unlikely that Jason is tired.,It is almost certain that 'Lily is white' 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.1::factA. 0.2::factB. 0.05::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.28,0.9907981596319264,test,probably not,almost certain,It is probably not the case that 'Lily is white' or 'Brian is a lion' or both.,It is almost certain that 'Lily is white' or 'Brian is a lion' or both.,0,'Lily is white' or 'Brian is a lion' or both. It is impossible that Julius is a swan. There is little chance that Fred went to the garden. It is likely that Mary got the football.,It is impossible that 'Julius is a swan and Fred 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.1::factB. 0.7::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.0,0.9757951590318064,test,impossible,highly likely,It is impossible that 'Julius is a swan and Fred went to the garden'.,It is highly likely that 'Julius is a swan and Fred went to the garden'.,1,'Julius is a swan and Fred went to the garden'. It is likely that Julius is a swan. It is almost certain that Bernhard is a rhino. It is improbable that Sandra got the milk.,It is highly unlikely that either 'Sandra got the milk' 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.7::factA. 0.95::factB. 0.1::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.6599999999999999,0.9697939587917583,test,probable,highly unlikely,It is probable that either 'Sandra got the milk' or 'Julius is a swan' but not both.,It is highly unlikely that either 'Sandra got the milk' or 'Julius is a swan' but not both.,0,Either 'Sandra got the milk' or 'Julius is a swan' but not both. It is certain that Sandra dropped the milk. There is a better than even chance that Brian is green. It is unlikely that John grabbed the apple.,Chances are slight that 'Sandra dropped the milk 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 1.0::factA. 0.6::factB. 0.2::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.6,0.9977995599119824,test,better than even,chances are slight,There is a better than even chance that 'Sandra dropped the milk and Brian is green'.,Chances are slight that 'Sandra dropped the milk and Brian is green'.,0,'Sandra dropped the milk and Brian is green'. We doubt that Brian is green. We believe that John got the apple. We believe that Jessica is a wolf.,It is almost certain that 'John got the apple' or 'Jessica 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.2::factA. 0.75::factB. 0.75::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.9375,0.9567913582716543,test,almost certain,unlikely,It is almost certain that 'John got the apple' or 'Jessica is a wolf' or both.,It is unlikely that 'John got the apple' or 'Jessica is a wolf' or both.,1,'John got the apple' or 'Jessica is a wolf' or both. There is almost no chance that Greg is a swan. It is probably the case that Mary grabbed the milk. It is unlikely that Gertrude is a cat.,Chances are slight that 'Gertrude is a cat and Mary grabbed 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.02::factA. 0.7::factB. 0.2::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.14,0.9003800760152031,test,chances are slight,highly likely,Chances are slight that 'Gertrude is a cat and Mary grabbed the milk'.,It is highly likely that 'Gertrude is a cat and Mary grabbed the milk'.,1,'Gertrude is a cat and Mary grabbed the milk'. Chances are about even that Brian is a rhino. It is likely that John went to the garden. There is a better than even chance that Jessica is a cat.,Chances are about even that either 'Jessica is a cat' 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.5::factA. 0.7::factB. 0.6::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.5000000000000001,0.9389877975595119,test,about even,highly unlikely,Chances are about even that either 'Jessica is a cat' or 'Brian is a rhino' but not both.,It is highly unlikely that either 'Jessica is a cat' or 'Brian is a rhino' but not both.,1,Either 'Jessica is a cat' or 'Brian is a rhino' but not both. It is likely that Julius is green. It is improbable that Lily is yellow. Chances are slight that Daniel took the apple.,We believe that 'Julius is green' 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.7::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.73,0.9827965593118624,test,we believe,probably not,We believe that 'Julius is green' or 'Lily is yellow' or both.,It is probably not the case that 'Julius is green' or 'Lily is yellow' or both.,1,'Julius is green' or 'Lily is yellow' or both. It is probable that John picked up the apple. There is a better than even chance that Greg is gray. It is probably the case that Winona is a cat.,Chances are about even that either 'Greg is gray' or 'John picked up 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.6::factB. 0.7::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.45999999999999996,0.9813962792558512,test,about even,impossible,Chances are about even that either 'Greg is gray' or 'John picked up the apple' but not both.,It is impossible that either 'Greg is gray' or 'John picked up the apple' but not both.,1,Either 'Greg is gray' or 'John picked up the apple' but not both. It is probably the case that Gertrude is a mouse. Chances are slight that Bernhard is a swan. It is highly unlikely that Emily is a cat.,We believe that 'Bernhard is a swan' or 'Gertrude 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.05::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.73,0.9555911182236447,test,we believe,highly unlikely,We believe that 'Bernhard is a swan' or 'Gertrude is a mouse' or both.,It is highly unlikely that 'Bernhard is a swan' or 'Gertrude is a mouse' or both.,1,'Bernhard is a swan' or 'Gertrude is a mouse' or both. Chances are about even that John went to the hallway. We doubt that Gertrude is a sheep. It is highly likely that Lily is a swan.,It is highly likely that 'Lily is a swan' 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.5::factA. 0.2::factB. 0.9::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.92,0.9055811162232447,test,highly likely,improbable,It is highly likely that 'Lily is a swan' or 'Gertrude is a sheep' or both.,It is improbable that 'Lily is a swan' or 'Gertrude is a sheep' or both.,1,'Lily is a swan' or 'Gertrude is a sheep' or both. There is a better than even chance that John moved to the garden. Chances are slight that Julius is a swan. It is highly likely that Jessica is a cat.,Chances are about even that either 'John moved to the garden' 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.1::factB. 0.9::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.42000000000000004,0.916383276655331,test,about even,highly unlikely,Chances are about even that either 'John moved to the garden' or 'Jessica is a cat' but not both.,It is highly unlikely that either 'John moved to the garden' or 'Jessica is a cat' but not both.,1,Either 'John moved to the garden' or 'Jessica is a cat' but not both. It is likely that Brian is a frog. It is highly likely that Gertrude is a sheep. It is highly likely that Bernhard is a swan.,There is little chance that 'Bernhard is a swan 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.7::factA. 0.9::factB. 0.9::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.63,0.9227845569113823,test,better than even,little chance,There is a better than even chance that 'Bernhard is a swan and Brian is a frog'.,There is little chance that 'Bernhard is a swan and Brian is a frog'.,0,'Bernhard is a swan and Brian is a frog'. It is probably not the case that Bernhard is gray. It is likely that Mary left the football. Chances are slight that Fred went to the garden.,It is probably the case that either 'Bernhard is gray' 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.25::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.30000000000000004,0.9641928385677135,test,probably not,probably,It is probably not the case that either 'Bernhard is gray' or 'Fred went to the garden' but not both.,It is probably the case that either 'Bernhard is gray' or 'Fred went to the garden' but not both.,0,Either 'Bernhard is gray' or 'Fred went to the garden' but not both. There is a very good chance that Sandra left the milk. There is almost no chance that Brian is yellow. It is probably not the case that Gertrude is a sheep.,It is impossible that 'Brian is yellow 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.8::factA. 0.02::factB. 0.25::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.005000000000000002,0.9375875175035007,test,impossible,probable,It is impossible that 'Brian is yellow and Gertrude is a sheep'.,It is probable that 'Brian is yellow and Gertrude is a sheep'.,1,'Brian is yellow and Gertrude is a sheep'. It is probably the case that John left the apple. It is improbable that Julius is green. It is highly likely that Brian is a lion.,It is improbable that 'Julius is green' 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.7::factA. 0.1::factB. 0.9::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.91,0.9187837567513503,test,highly likely,improbable,It is highly likely that 'Julius is green' or 'Brian is a lion' or both.,It is improbable that 'Julius is green' or 'Brian is a lion' or both.,0,'Julius is green' or 'Brian is a lion' or both. It is certain that Fred is in the school. It is improbable that Lily is a lion. Chances are slight that John moved to the office.,It is highly likely that 'Lily is a lion 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 1.0::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.010000000000000004,0.9601920384076815,test,almost no chance,highly likely,There is almost no chance that 'Lily is a lion and John moved to the office'.,It is highly likely that 'Lily is a lion and John moved to the office'.,0,'Lily is a lion and John moved to the office'. It is highly unlikely that Bernhard is a swan. It is unlikely that Daniel left the milk. It is highly likely that John dropped the apple.,Chances are slight that 'Daniel left the milk' 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.05::factA. 0.2::factB. 0.9::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.92,0.9867973594718944,test,highly likely,chances are slight,It is highly likely that 'Daniel left the milk' or 'John dropped the apple' or both.,Chances are slight that 'Daniel left the milk' or 'John dropped the apple' or both.,0,'Daniel left the milk' or 'John dropped the apple' or both. It is probably the case that John went to the office. There is a very good chance that Lily is a frog. It is impossible that Jessica is a mouse.,It is almost certain that 'Lily is a frog' or 'John 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.7::factA. 0.8::factB. 0.0::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.9400000000000001,0.9487897579515904,test,almost certain,about even,It is almost certain that 'Lily is a frog' or 'John went to the office' or both.,Chances are about even that 'Lily is a frog' or 'John went to the office' or both.,1,'Lily is a frog' or 'John went to the office' or both. It is unlikely that John left the milk. It is certain that Sandra grabbed the apple. It is probably not the case that Julius is gray.,It is likely that 'Sandra grabbed the apple and Julius 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.2::factA. 1.0::factB. 0.25::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.25,0.9633926785357071,test,probably not,likely,It is probably not the case that 'Sandra grabbed the apple and Julius is gray'.,It is likely that 'Sandra grabbed the apple and Julius is gray'.,0,'Sandra grabbed the apple and Julius is gray'. It is probably the case that Bernhard is a frog. We believe that Mary picked up the apple. We doubt that John went to the garden.,It is improbable that either 'John went to the garden' 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.7::factA. 0.75::factB. 0.2::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.62,0.9241848369673935,test,better than even,improbable,There is a better than even chance that either 'John went to the garden' or 'Bernhard is a frog' but not both.,It is improbable that either 'John went to the garden' or 'Bernhard is a frog' but not both.,0,Either 'John went to the garden' or 'Bernhard is a frog' but not both. It is unlikely that John went to the hallway. It is probably not the case that Gertrude is a mouse. It is improbable that Jeff left the apple.,It is probably not the case that 'Gertrude is a mouse' 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 0.2::factA. 0.25::factB. 0.1::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.325,0.9443888777755551,test,probably not,probably,It is probably not the case that 'Gertrude is a mouse' or 'Jeff left the apple' or both.,It is probably the case that 'Gertrude is a mouse' or 'Jeff left the apple' or both.,1,'Gertrude is a mouse' or 'Jeff left the apple' or both. Chances are slight that Bernhard is green. It is improbable that John got the apple. It is improbable that Brian is a lion.,We doubt that either 'Bernhard is green' or 'John 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.1::factB. 0.1::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.18000000000000005,0.9911982396479296,test,we doubt,certain,We doubt that either 'Bernhard is green' or 'John got the apple' but not both.,It is certain that either 'Bernhard is green' or 'John got the apple' but not both.,1,Either 'Bernhard is green' or 'John got the apple' but not both. We doubt that Julius is white. It is probably the case that Greg is a frog. We doubt that Brian is a lion.,It is almost certain that 'Brian is a lion 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 0.2::factA. 0.7::factB. 0.2::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.14,0.9307861572314463,test,chances are slight,almost certain,Chances are slight that 'Brian is a lion and Greg is a frog'.,It is almost certain that 'Brian is a lion and Greg is a frog'.,0,'Brian is a lion and Greg is a frog'. It is highly unlikely that John went to the hallway. There is a very good chance that Bernhard is yellow. There is little chance that Gertrude is a cat.,We believe that 'John went to the hallway 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.05::factA. 0.8::factB. 0.1::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.005000000000000002,0.9839967993598719,test,impossible,we believe,It is impossible that 'John went to the hallway and Gertrude is a cat'.,We believe that 'John went to the hallway and Gertrude is a cat'.,0,'John went to the hallway and Gertrude is a cat'. We doubt that Greg is white. It is likely that Jeff dropped the apple. It is likely that John left the football.,Chances are about even that either 'Jeff dropped the apple' or 'John 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.7::factB. 0.7::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.42,0.9821964392878576,test,about even,almost certain,Chances are about even that either 'Jeff dropped the apple' or 'John left the football' but not both.,It is almost certain that either 'Jeff dropped the apple' or 'John left the football' but not both.,1,Either 'Jeff dropped the apple' or 'John left the football' but not both. It is certain that John went to the office. There is a better than even chance that Sandra took the milk. It is probably the case that Lily is a swan.,It is almost certain that either 'Sandra took the milk' 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 1.0::factA. 0.6::factB. 0.7::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.45999999999999996,0.9951990398079616,test,about even,almost certain,Chances are about even that either 'Sandra took the milk' or 'Lily is a swan' but not both.,It is almost certain that either 'Sandra took the milk' or 'Lily is a swan' but not both.,0,Either 'Sandra took the milk' or 'Lily is a swan' but not both. Chances are about even that Greg is a frog. It is probably the case that Brian is yellow. It is improbable that Julius is a lion.,It is highly unlikely that 'Julius is a lion 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 0.5::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.05000000000000001,0.9781956391278256,test,highly unlikely,highly likely,It is highly unlikely that 'Julius is a lion and Greg is a frog'.,It is highly likely that 'Julius is a lion and Greg is a frog'.,1,'Julius is a lion and Greg is a frog'. It is certain that Julius is a lion. It is almost certain that Lily is a swan. Chances are about even that John put down the milk.,It is certain that 'Julius 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 1.0::factA. 0.95::factB. 0.5::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",1.0,0.9715943188637728,test,certain,almost no chance,It is certain that 'Julius is a lion' or 'Lily is a swan' or both.,There is almost no chance that 'Julius is a lion' or 'Lily is a swan' or both.,1,'Julius is a lion' or 'Lily is a swan' or both. There is a better than even chance that Julius is white. We doubt that Mary went to the kitchen. There is a very good chance that Gertrude is a cat.,There is a better than even chance that either 'Julius 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.6::factA. 0.2::factB. 0.8::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.5599999999999999,0.9489897979595919,test,better than even,improbable,There is a better than even chance that either 'Julius is white' or 'Mary went to the kitchen' but not both.,It is improbable that either 'Julius is white' or 'Mary went to the kitchen' but not both.,1,Either 'Julius is white' or 'Mary went to the kitchen' but not both. There is almost no chance that Gertrude is a sheep. It is likely that Julius is a frog. It is impossible that Brian is a lion.,It is probably the case that 'Brian is a lion' 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.02::factA. 0.7::factB. 0.0::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.7,0.9015803160632127,test,probably,almost no chance,It is probably the case that 'Brian is a lion' or 'Julius is a frog' or both.,There is almost no chance that 'Brian is a lion' or 'Julius is a frog' or both.,1,'Brian is a lion' or 'Julius is a frog' or both. Chances are about even that Brian is a swan. Chances are slight that Winona is a wolf. It is improbable that Lily is a frog.,There is a better than even chance that 'Brian 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.5::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.55,0.9279855971194239,test,better than even,highly unlikely,There is a better than even chance that 'Brian is a swan' or 'Lily is a frog' or both.,It is highly unlikely that 'Brian is a swan' or 'Lily is a frog' or both.,1,'Brian is a swan' or 'Lily is a frog' or both. We doubt that Brian is a rhino. It is impossible that Julius is a swan. It is unlikely that John went to the hallway.,It is highly likely that either 'Brian is a rhino' 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.2::factA. 0.0::factB. 0.2::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.2,0.955991198239648,test,we doubt,highly likely,We doubt that either 'Brian is a rhino' or 'Julius is a swan' but not both.,It is highly likely that either 'Brian is a rhino' or 'Julius is a swan' but not both.,0,Either 'Brian is a rhino' or 'Julius is a swan' but not both. There is a very good chance that Winona is a wolf. We believe that Brian is a frog. There is a better than even chance that Lily is a rhino.,There is a better than even chance that 'Winona is a wolf 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.8::factA. 0.75::factB. 0.6::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.6000000000000001,0.9493898779755952,test,better than even,chances are slight,There is a better than even chance that 'Winona is a wolf and Brian is a frog'.,Chances are slight that 'Winona is a wolf and Brian is a frog'.,1,'Winona is a wolf and Brian is a frog'. It is unlikely that John moved to the office. It is probably not the case that Daniel got the football. There is little chance that Lily is a frog.,It is likely 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.2::factA. 0.25::factB. 0.1::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.28,0.9323864772954591,test,probably not,likely,It is probably not the case that 'John moved to the office' or 'Lily is a frog' or both.,It is likely that 'John moved to the office' or 'Lily is a frog' or both.,0,'John moved to the office' or 'Lily is a frog' or both. It is probably the case that Lily is gray. It is certain that John went to the office. It is probably not the case that Bernhard is a frog.,There is a very good chance that 'Bernhard is a frog' 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 0.7::factA. 1.0::factB. 0.25::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.775,0.9687937587517503,test,very good chance,highly unlikely,There is a very good chance that 'Bernhard is a frog' or 'Lily is gray' or both.,It is highly unlikely that 'Bernhard is a frog' or 'Lily is gray' or both.,1,'Bernhard is a frog' or 'Lily is gray' or both. Chances are slight that Bernhard is white. We doubt that John left the apple. It is likely that Lily is a lion.,We believe that 'John left 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.1::factA. 0.2::factB. 0.7::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.76,0.9789957991598319,test,we believe,improbable,We believe that 'John left the apple' or 'Lily is a lion' or both.,It is improbable that 'John left the apple' or 'Lily is a lion' or both.,1,'John left the apple' or 'Lily is a lion' or both. Chances are slight that Mary went to the hallway. It is highly likely that Emily is a sheep. It is probably not the case that Jeff put down the milk.,There is almost no chance that 'Mary went to the hallway and Jeff 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.1::factA. 0.9::factB. 0.25::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.025000000000000012,0.9165833166633327,test,almost no chance,probable,There is almost no chance that 'Mary went to the hallway and Jeff put down the milk'.,It is probable that 'Mary went to the hallway and Jeff put down the milk'.,1,'Mary went to the hallway and Jeff put down the milk'. We doubt that Bernhard is a swan. Chances are about even that John went to the hallway. It is probably not the case that Bill got the milk there.,It is highly unlikely that 'Bernhard is a swan' 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.2::factA. 0.5::factB. 0.25::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.4,0.9035807161432287,test,about even,highly unlikely,Chances are about even that 'Bernhard is a swan' or 'Bill got the milk there' or both.,It is highly unlikely that 'Bernhard is a swan' or 'Bill got the milk there' or both.,0,'Bernhard is a swan' or 'Bill got the milk there' or both. It is improbable that John left the football. Chances are slight that Gertrude is a wolf. It is certain that Lily is a frog.,It is probable that 'Gertrude is a wolf 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.1::factA. 0.1::factB. 1.0::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.010000000000000004,0.9563912782556512,test,almost no chance,probable,There is almost no chance that 'Gertrude is a wolf and John left the football'.,It is probable that 'Gertrude is a wolf and John left the football'.,0,'Gertrude is a wolf and John left the football'. Chances are slight that Bernhard is a frog. There is a better than even chance that Sumit is hungry. Chances are slight that John dropped the apple.,It is highly likely that 'Sumit is hungry and John 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.1::factA. 0.6::factB. 0.1::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.06,0.9409881976395279,test,highly unlikely,highly likely,It is highly unlikely that 'Sumit is hungry and John dropped the apple'.,It is highly likely that 'Sumit is hungry and John dropped the apple'.,0,'Sumit is hungry and John dropped the apple'. It is impossible that Mary moved to the garden. There is a very good chance that Greg is gray. There is a very good chance that Daniel got the milk.,There is a very good chance that 'Greg is gray' or 'Mary 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.0::factA. 0.8::factB. 0.8::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.8,0.9593918783756752,test,very good chance,almost no chance,There is a very good chance that 'Greg is gray' or 'Mary moved to the garden' or both.,There is almost no chance that 'Greg is gray' or 'Mary moved to the garden' or both.,1,'Greg is gray' or 'Mary moved to the garden' or both. It is probably not the case that Sandra grabbed the apple. It is certain that Mary got the milk. It is unlikely that Bernhard is a frog.,There is little chance that 'Sandra grabbed the apple' or 'Mary 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.25::factA. 1.0::factB. 0.2::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",1.0,0.9611922384476895,test,certain,little chance,It is certain that 'Sandra grabbed the apple' or 'Mary got the milk' or both.,There is little chance that 'Sandra grabbed the apple' or 'Mary got the milk' or both.,0,'Sandra grabbed the apple' or 'Mary got the milk' or both. It is probably the case that Julius is a frog. It is improbable that Mary dropped the milk. We believe that Winona is a mouse.,It is highly likely that 'Mary dropped 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.7::factA. 0.1::factB. 0.75::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.07,0.9829965993198639,test,highly unlikely,highly likely,It is highly unlikely that 'Mary dropped the milk and Julius is a frog'.,It is highly likely that 'Mary dropped the milk and Julius is a frog'.,0,'Mary dropped the milk and Julius is a frog'. It is unlikely that Sandra dropped the milk. There is a better than even chance that Julius is a frog. It is probably the case that Antoine is thirsty.,Chances are about even that 'Julius is a frog 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.2::factA. 0.6::factB. 0.7::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.41999999999999993,0.9985997199439888,test,about even,almost certain,Chances are about even that 'Julius is a frog and Antoine is thirsty'.,It is almost certain that 'Julius is a frog and Antoine is thirsty'.,1,'Julius is a frog and Antoine is thirsty'. It is unlikely that Sandra is in the kitchen. It is improbable that Greg is gray. We doubt that Bernhard is green.,It is probably not the case that either 'Bernhard is green' or 'Sandra is in 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.1::factB. 0.2::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.32,0.9733946789357871,test,probably not,probable,It is probably not the case that either 'Bernhard is green' or 'Sandra is in the kitchen' but not both.,It is probable that either 'Bernhard is green' or 'Sandra is in the kitchen' but not both.,1,Either 'Bernhard is green' or 'Sandra is in the kitchen' but not both. It is probable that Bernhard is a swan. It is unlikely that Brian is yellow. It is probably not the case that Lily is a frog.,There is little chance that 'Brian is yellow 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.2::factB. 0.25::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.14,0.9673934786957391,test,little chance,probably,There is little chance that 'Brian is yellow and Bernhard is a swan'.,It is probably the case that 'Brian is yellow and Bernhard is a swan'.,1,'Brian is yellow and Bernhard is a swan'. There is a very good chance that Greg is a swan. It is highly unlikely that Brian is yellow. We believe that Yann is thirsty.,It is highly unlikely that 'Greg is a swan' 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.8::factA. 0.05::factB. 0.75::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.9500000000000001,0.9651930386077215,test,almost certain,highly unlikely,It is almost certain that 'Greg is a swan' or 'Yann is thirsty' or both.,It is highly unlikely that 'Greg is a swan' or 'Yann is thirsty' or both.,0,'Greg is a swan' or 'Yann is thirsty' or both. There is a very good chance that John went to the office. It is certain that Brian is a swan. It is highly likely that Bernhard is a lion.,It is highly likely that either 'John went to the office' 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.8::factA. 1.0::factB. 0.9::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.19999999999999998,0.9383876775355071,test,we doubt,highly likely,We doubt that either 'John went to the office' or 'Brian is a swan' but not both.,It is highly likely that either 'John went to the office' or 'Brian is a swan' but not both.,0,Either 'John went to the office' or 'Brian is a swan' but not both. We believe that John moved to the garden. There is a very good chance that Mary got the football. It is highly unlikely that Bernhard is green.,It is highly unlikely that 'John moved to the garden 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.75::factA. 0.8::factB. 0.05::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.03750000000000001,0.9345869173834767,test,highly unlikely,likely,It is highly unlikely that 'John moved to the garden and Bernhard is green'.,It is likely that 'John moved to the garden and Bernhard is green'.,1,'John moved to the garden and Bernhard is green'. It is impossible that Bernhard is white. It is unlikely that Brian is green. It is improbable that Sandra left the football.,It is impossible 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.0::factA. 0.2::factB. 0.1::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.0,0.9129825965193039,test,impossible,probable,It is impossible that 'Bernhard is white and Sandra left the football'.,It is probable that 'Bernhard is white and Sandra left the football'.,1,'Bernhard is white and Sandra left the football'. It is probably not the case that John discarded the milk. It is probably not the case that Sandra left the milk. We doubt that Bernhard is a swan.,It is certain that 'Sandra left the milk 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.25::factA. 0.25::factB. 0.2::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.05000000000000001,0.9249849969993998,test,highly unlikely,certain,It is highly unlikely that 'Sandra left the milk and Bernhard is a swan'.,It is certain that 'Sandra left the milk and Bernhard is a swan'.,0,'Sandra left the milk and Bernhard is a swan'. It is improbable that Bernhard is gray. It is probable that Mary got the apple. It is probable that Greg is green.,We believe that 'Bernhard is gray' or 'Mary 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.7::factB. 0.7::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.73,0.9841968393678736,test,we believe,highly unlikely,We believe that 'Bernhard is gray' or 'Mary got the apple' or both.,It is highly unlikely that 'Bernhard is gray' or 'Mary got the apple' or both.,1,'Bernhard is gray' or 'Mary got the apple' or both. Chances are about even that Bill went to the garden. There is almost no chance that Brian is yellow. There is almost no chance that Mary grabbed the milk.,It is highly unlikely that either 'Mary grabbed the milk' or 'Brian 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.5::factA. 0.02::factB. 0.02::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.039200000000000006,0.9071814362872574,test,highly unlikely,we believe,It is highly unlikely that either 'Mary grabbed the milk' or 'Brian is yellow' but not both.,We believe that either 'Mary grabbed the milk' or 'Brian is yellow' but not both.,1,Either 'Mary grabbed the milk' or 'Brian is yellow' but not both. It is likely that Mary went to the garden. It is probably not the case that Julius is white. There is little chance that Sandra got the football.,We doubt that 'Julius is white and Mary 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.7::factA. 0.25::factB. 0.1::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.175,0.9983996799359872,test,we doubt,highly likely,We doubt that 'Julius is white and Mary went to the garden'.,It is highly likely that 'Julius is white and Mary went to the garden'.,1,'Julius is white and Mary went to the garden'. It is impossible that Julius is gray. It is improbable that Daniel got the milk. It is probable that John took the football.,It is unlikely that either 'John took the football' 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.0::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.7,0.9545909181836367,test,likely,unlikely,It is likely that either 'John took the football' or 'Julius is gray' but not both.,It is unlikely that either 'John took the football' or 'Julius is gray' but not both.,0,Either 'John took the football' or 'Julius is gray' but not both. It is highly likely that Brian is a rhino. We doubt that Julius is yellow. It is highly likely that Sandra got the milk.,It is highly likely that 'Julius is yellow 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.9::factA. 0.2::factB. 0.9::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.18000000000000002,0.9647929585917183,test,unlikely,highly likely,It is unlikely that 'Julius is yellow and Brian is a rhino'.,It is highly likely that 'Julius is yellow and Brian is a rhino'.,0,'Julius is yellow and Brian is a rhino'. It is probable that Sandra dropped the milk. It is highly likely that Fred discarded the apple. It is highly unlikely that Greg is a rhino.,It is almost certain that 'Fred discarded the apple 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.7::factA. 0.9::factB. 0.05::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.045000000000000005,0.9967993598719744,test,highly unlikely,almost certain,It is highly unlikely that 'Fred discarded the apple and Greg is a rhino'.,It is almost certain that 'Fred discarded the apple and Greg is a rhino'.,0,'Fred discarded the apple and Greg is a rhino'. There is little chance that Jeff moved to the office. It is almost certain that Brian is green. It is impossible that Gertrude is a mouse.,Chances are slight that 'Jeff moved to the office' 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.1::factA. 0.95::factB. 0.0::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.955,0.966993398679736,test,almost certain,chances are slight,It is almost certain that 'Jeff moved to the office' or 'Brian is green' or both.,Chances are slight that 'Jeff moved to the office' or 'Brian is green' or both.,0,'Jeff moved to the office' or 'Brian is green' or both. We believe that Greg is yellow. It is improbable that Emily is a sheep. It is improbable that Winona is a wolf.,We believe that 'Winona is a wolf' 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.75::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.775,0.9445889177835567,test,we believe,we doubt,We believe that 'Winona is a wolf' or 'Greg is yellow' or both.,We doubt that 'Winona is a wolf' or 'Greg is yellow' or both.,1,'Winona is a wolf' or 'Greg is yellow' or both. Chances are about even that Fred dropped the apple. It is certain that John went to the hallway. It is likely that Lily is a rhino.,It is probably not the case that either 'Lily 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.5::factA. 1.0::factB. 0.7::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.30000000000000004,0.987997599519904,test,probably not,certain,It is probably not the case that either 'Lily is a rhino' or 'John went to the hallway' but not both.,It is certain that either 'Lily is a rhino' or 'John went to the hallway' but not both.,1,Either 'Lily is a rhino' or 'John went to the hallway' but not both. Chances are about even that John took the apple. It is likely that Greg is a swan. It is highly unlikely that Julius is yellow.,It is probable that either 'Julius is yellow' 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.05::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.6799999999999999,0.9407881576315263,test,probable,highly unlikely,It is probable that either 'Julius is yellow' or 'Greg is a swan' but not both.,It is highly unlikely that either 'Julius is yellow' or 'Greg is a swan' but not both.,1,Either 'Julius is yellow' or 'Greg is a swan' but not both. It is probable that Brian is yellow. We believe that Greg is a swan. It is highly likely that John went to the office.,It is probably not the case that either 'John went to the office' or 'Brian 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.75::factB. 0.9::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.33999999999999997,0.9403880776155231,test,probably not,certain,It is probably not the case that either 'John went to the office' or 'Brian is yellow' but not both.,It is certain that either 'John went to the office' or 'Brian is yellow' but not both.,1,Either 'John went to the office' or 'Brian is yellow' but not both. It is probably the case that John discarded the milk. We believe that Mary went to the kitchen. It is probably not the case that Sumit is hungry.,It is improbable that either 'Sumit is hungry' 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.7::factA. 0.75::factB. 0.25::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.625,0.9483896779355871,test,better than even,improbable,There is a better than even chance that either 'Sumit is hungry' or 'Mary went to the kitchen' but not both.,It is improbable that either 'Sumit is hungry' or 'Mary went to the kitchen' but not both.,0,Either 'Sumit is hungry' or 'Mary went to the kitchen' but not both. There is little chance that Julius is yellow. It is likely that Mary got the apple. It is probable that Brian is white.,It is highly unlikely that 'Mary got the apple 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.7::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.07,0.9303860772154431,test,highly unlikely,probably,It is highly unlikely that 'Mary got the apple and Julius is yellow'.,It is probably the case that 'Mary got the apple and Julius is yellow'.,1,'Mary got the apple and Julius is yellow'. It is highly likely that Mary left the football. It is highly unlikely that Bernhard is a frog. Chances are about even that Winona is a mouse.,We doubt that 'Winona is a mouse' or 'Mary 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.9::factA. 0.05::factB. 0.5::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.9500000000000001,0.9289857971594319,test,almost certain,we doubt,It is almost certain that 'Winona is a mouse' or 'Mary left the football' or both.,We doubt that 'Winona is a mouse' or 'Mary left the football' or both.,0,'Winona is a mouse' or 'Mary left the football' or both. It is almost certain that Mary went to the office. It is improbable that Julius is yellow. It is probable that Greg is a rhino.,It is probably the case that 'Mary went to the office 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.95::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.6649999999999999,0.96999399879976,test,probably,improbable,It is probably the case that 'Mary went to the office and Greg is a rhino'.,It is improbable that 'Mary went to the office and Greg is a rhino'.,1,'Mary went to the office and Greg is a rhino'. It is almost certain that Brian is a rhino. It is almost certain that Julius is gray. It is likely that Mary left the football.,It is certain that 'Julius is gray' 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.95::factB. 0.7::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.9975,0.9797959591918384,test,certain,impossible,It is certain that 'Julius is gray' or 'Brian is a rhino' or both.,It is impossible that 'Julius is gray' or 'Brian is a rhino' or both.,1,'Julius is gray' or 'Brian is a rhino' or both. There is a very good chance that Emily is a sheep. It is probably the case that Bernhard is gray. It is likely that Julius is white.,It is highly unlikely that either 'Emily is a sheep' 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.8::factA. 0.7::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.38,0.9855971194238847,test,about even,highly unlikely,Chances are about even that either 'Emily is a sheep' or 'Bernhard is gray' but not both.,It is highly unlikely that either 'Emily is a sheep' or 'Bernhard is gray' but not both.,0,Either 'Emily is a sheep' or 'Bernhard is gray' but not both. We doubt that Mary left the milk. It is improbable that Lily is a swan. There is a very good chance that Julius is white.,It is certain that either 'Mary left the milk' 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.2::factA. 0.1::factB. 0.8::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.26,0.9475895179035807,test,probably not,certain,It is probably not the case that either 'Mary left the milk' or 'Lily is a swan' but not both.,It is certain that either 'Mary left the milk' or 'Lily is a swan' but not both.,0,Either 'Mary left the milk' or 'Lily is a swan' but not both. We doubt that Julius is gray. There is little chance that Lily is a swan. Chances are about even that Fred dropped the milk.,There is almost no chance that 'Lily is a swan' 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.2::factA. 0.1::factB. 0.5::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.55,0.9001800360072014,test,better than even,almost no chance,There is a better than even chance that 'Lily is a swan' or 'Fred dropped the milk' or both.,There is almost no chance that 'Lily is a swan' or 'Fred dropped the milk' or both.,0,'Lily is a swan' or 'Fred dropped the milk' or both. It is probably the case that Mary took the football. It is probably not the case that Jessica is a cat. It is probably the case that Bernhard is a rhino.,It is unlikely that 'Bernhard is a rhino' or 'Mary took 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.7::factA. 0.25::factB. 0.7::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.9099999999999999,0.9717943588717743,test,highly likely,unlikely,It is highly likely that 'Bernhard is a rhino' or 'Mary took the football' or both.,It is unlikely that 'Bernhard is a rhino' or 'Mary took the football' or both.,0,'Bernhard is a rhino' or 'Mary took the football' or both. It is unlikely that Mary moved to the garden. It is highly likely that John got the apple. It is unlikely that Brian is a lion.,It is highly unlikely that 'John got the apple' 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.2::factA. 0.9::factB. 0.2::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.92,0.9751950390078016,test,highly likely,highly unlikely,It is highly likely that 'John got the apple' or 'Brian is a lion' or both.,It is highly unlikely that 'John got the apple' or 'Brian is a lion' or both.,0,'John got the apple' or 'Brian is a lion' or both. It is almost certain that Greg is a rhino. It is impossible that John went to the garden. Chances are about even that Gertrude is a sheep.,There is almost no chance that either 'Greg is a rhino' or 'John 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.95::factA. 0.0::factB. 0.5::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.95,0.9117823564712942,test,almost certain,almost no chance,It is almost certain that either 'Greg is a rhino' or 'John went to the garden' but not both.,There is almost no chance that either 'Greg is a rhino' or 'John went to the garden' but not both.,0,Either 'Greg is a rhino' or 'John went to the garden' but not both. There is almost no chance that Brian is a swan. There is a better than even chance that Winona is a wolf. It is almost certain that Mary went to the bedroom.,It is certain that 'Winona is a wolf' 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.02::factA. 0.6::factB. 0.95::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.98,0.9419883976795359,test,certain,chances are slight,It is certain that 'Winona is a wolf' or 'Mary went to the bedroom' or both.,Chances are slight that 'Winona is a wolf' or 'Mary went to the bedroom' or both.,1,'Winona is a wolf' or 'Mary went to the bedroom' or both. It is probable that Winona is a cat. It is almost certain that Brian is a rhino. There is a very good chance that Mary left the football.,It is improbable that 'Winona is a cat' or 'Mary 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.7::factA. 0.95::factB. 0.8::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.94,0.9161832366473295,test,almost certain,improbable,It is almost certain that 'Winona is a cat' or 'Mary left the football' or both.,It is improbable that 'Winona is a cat' or 'Mary left the football' or both.,0,'Winona is a cat' or 'Mary left the football' or both. It is likely that John took the football. We believe that Bernhard is a frog. Chances are slight that Sandra left the apple.,It is probably not the case that either 'Bernhard is a frog' or 'Sandra 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.7::factA. 0.75::factB. 0.1::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.7,0.9335867173434687,test,likely,probably not,It is likely that either 'Bernhard is a frog' or 'Sandra left the apple' but not both.,It is probably not the case that either 'Bernhard is a frog' or 'Sandra left the apple' but not both.,0,Either 'Bernhard is a frog' or 'Sandra left the apple' but not both. It is improbable that Greg is green. It is probably not the case that Julius is gray. It is highly unlikely that John moved to the office.,Chances are slight that either 'John moved to the office' 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.1::factA. 0.25::factB. 0.05::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.14000000000000004,0.9965993198639728,test,chances are slight,highly likely,Chances are slight that either 'John moved to the office' or 'Greg is green' but not both.,It is highly likely that either 'John moved to the office' or 'Greg is green' but not both.,1,Either 'John moved to the office' or 'Greg is green' but not both. Chances are about even that Lily is a frog. We doubt that Greg is a rhino. It is certain that Brian is a swan.,It is likely that 'Lily is a frog 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.5::factA. 0.2::factB. 1.0::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.10000000000000002,0.957991598319664,test,chances are slight,likely,Chances are slight that 'Lily is a frog and Greg is a rhino'.,It is likely that 'Lily is a frog and Greg is a rhino'.,0,'Lily is a frog and Greg is a rhino'. It is impossible that Mary went to the office. It is probably the case that Brian is a frog. It is highly unlikely that Julius is a rhino.,It is highly unlikely that 'Mary went to the office' 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.0::factA. 0.7::factB. 0.05::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.05000000000000001,0.9729945989197839,test,highly unlikely,certain,It is highly unlikely that 'Mary went to the office' or 'Julius is a rhino' or both.,It is certain that 'Mary went to the office' or 'Julius is a rhino' or both.,1,'Mary went to the office' or 'Julius is a rhino' or both. It is unlikely that Sumit is thirsty. It is highly unlikely that Emily is a sheep. It is highly likely that John took the milk.,It is highly likely that 'Sumit is thirsty' or 'John took 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.05::factB. 0.9::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.92,0.9101820364072815,test,highly likely,little chance,It is highly likely that 'Sumit is thirsty' or 'John took the milk' or both.,There is little chance that 'Sumit is thirsty' or 'John took the milk' or both.,1,'Sumit is thirsty' or 'John took the milk' or both. We believe that Winona is a mouse. It is improbable that Brian is a swan. It is likely that John moved to the office.,It is almost certain that 'John moved to the office' 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.75::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.925,0.9045809161832367,test,almost certain,almost no chance,It is almost certain that 'John moved to the office' or 'Winona is a mouse' or both.,There is almost no chance that 'John moved to the office' or 'Winona is a mouse' or both.,1,'John moved to the office' or 'Winona is a mouse' or both. It is certain that Greg is a swan. It is improbable that John moved to the office. It is highly unlikely that Jeff went to the bedroom.,It is highly unlikely that 'Jeff went to the bedroom 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.1::factB. 0.05::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.05000000000000001,0.992998599719944,test,highly unlikely,certain,It is highly unlikely that 'Jeff went to the bedroom and Greg is a swan'.,It is certain that 'Jeff went to the bedroom and Greg is a swan'.,1,'Jeff went to the bedroom and Greg is a swan'. It is improbable that Winona is a wolf. It is improbable that Lily is a frog. It is certain that John went to the garden.,It is highly likely that either 'Lily is a frog' or 'John 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.1::factB. 1.0::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.9,0.9327865573114623,test,highly likely,almost no chance,It is highly likely that either 'Lily is a frog' or 'John went to the garden' but not both.,There is almost no chance that either 'Lily is a frog' or 'John went to the garden' but not both.,1,Either 'Lily is a frog' or 'John went to the garden' but not both. There is little chance that John dropped the milk. There is a better than even chance that Mary went to the hallway. It is probably the case that Julius is a frog.,Chances are about even that either 'Julius is a frog' 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.1::factA. 0.6::factB. 0.7::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.45999999999999996,0.9229845969193838,test,about even,impossible,Chances are about even that either 'Julius is a frog' or 'Mary went to the hallway' but not both.,It is impossible that either 'Julius is a frog' or 'Mary went to the hallway' but not both.,1,Either 'Julius is a frog' or 'Mary went to the hallway' but not both. We doubt that Julius is gray. We doubt that Sandra left the milk. It is probably the case that Yann is thirsty.,We believe that 'Sandra 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.2::factB. 0.7::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.76,0.990998199639928,test,we believe,impossible,We believe that 'Sandra left the milk' or 'Yann is thirsty' or both.,It is impossible that 'Sandra left the milk' or 'Yann is thirsty' or both.,1,'Sandra left the milk' or 'Yann is thirsty' or both. It is unlikely that Brian is a frog. It is unlikely that Bernhard is a swan. It is highly likely that Lily is white.,It is probably not the case that 'Bernhard is a swan' 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.2::factA. 0.2::factB. 0.9::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.36000000000000004,0.9691938387677536,test,probably not,very good chance,It is probably not the case that 'Bernhard is a swan' or 'Brian is a frog' or both.,There is a very good chance that 'Bernhard is a swan' or 'Brian is a frog' or both.,1,'Bernhard is a swan' or 'Brian is a frog' or both. There is a very good chance that John took the apple. It is probable that Gertrude is a mouse. It is certain that Julius is white.,There is almost no chance that 'Gertrude is a mouse' 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.8::factA. 0.7::factB. 1.0::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",1.0,0.9373874774954991,test,certain,almost no chance,It is certain that 'Gertrude is a mouse' or 'Julius is white' or both.,There is almost no chance that 'Gertrude is a mouse' or 'Julius is white' or both.,0,'Gertrude is a mouse' or 'Julius is white' or both. Chances are slight that John went to the garden. There is a better than even chance that Bernhard is a rhino. It is probably not the case that Julius is yellow.,It is highly unlikely that 'Bernhard is a rhino 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.1::factA. 0.6::factB. 0.25::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.06,0.9235847169433887,test,highly unlikely,probable,It is highly unlikely that 'Bernhard is a rhino and John went to the garden'.,It is probable that 'Bernhard is a rhino and John went to the garden'.,1,'Bernhard is a rhino and John went to the garden'. It is improbable that Antoine is hungry. There is a better than even chance that Greg is yellow. It is highly unlikely that Julius is a rhino.,It is improbable that either 'Antoine is hungry' 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.1::factA. 0.6::factB. 0.05::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.14000000000000004,0.9333866773354671,test,improbable,probably,It is improbable that either 'Antoine is hungry' or 'Julius is a rhino' but not both.,It is probably the case that either 'Antoine is hungry' or 'Julius is a rhino' but not both.,1,Either 'Antoine is hungry' or 'Julius is a rhino' but not both. There is a better than even chance that Lily is gray. It is probable that Yann is hungry. We doubt that Greg is yellow.,There is little chance that 'Lily 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.6::factA. 0.7::factB. 0.2::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.12000000000000001,0.9743948789757951,test,little chance,better than even,There is little chance that 'Lily is gray and Greg is yellow'.,There is a better than even chance that 'Lily is gray and Greg is yellow'.,1,'Lily is gray and Greg is yellow'. We doubt that John dropped the milk. There is a better than even chance that Mary went to the office. There is a very good chance that Julius is green.,There is a better than even chance that either 'John dropped 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.2::factA. 0.6::factB. 0.8::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.5599999999999999,0.9293858771754351,test,better than even,improbable,There is a better than even chance that either 'John dropped the milk' or 'Mary went to the office' but not both.,It is improbable that either 'John dropped the milk' or 'Mary went to the office' but not both.,1,Either 'John dropped the milk' or 'Mary went to the office' but not both. It is improbable that Bernhard is a rhino. It is unlikely that Mary picked up the milk. It is highly likely that John took the football.,We doubt that 'John took the football 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.1::factA. 0.2::factB. 0.9::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.18000000000000002,0.9457891578315664,test,we doubt,we believe,We doubt that 'John took the football and Mary picked up the milk'.,We believe that 'John took the football and Mary picked up the milk'.,1,'John took the football and Mary picked up the milk'. It is highly likely that Greg is yellow. It is impossible that Mary went to the bedroom. There is a better than even chance that Julius is green.,It is impossible that either 'Greg is yellow' 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.9::factA. 0.0::factB. 0.6::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.9,0.9961992398479695,test,highly likely,impossible,It is highly likely that either 'Greg is yellow' or 'Mary went to the bedroom' but not both.,It is impossible that either 'Greg is yellow' or 'Mary went to the bedroom' but not both.,0,Either 'Greg is yellow' or 'Mary went to the bedroom' but not both. It is improbable that Mary moved to the garden. It is unlikely that Julius is a lion. We believe that Yann is hungry.,It is probable that either 'Yann is hungry' 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.1::factA. 0.2::factB. 0.75::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.7,0.9263852770554111,test,probable,almost no chance,It is probable that either 'Yann is hungry' or 'Mary moved to the garden' but not both.,There is almost no chance that either 'Yann is hungry' or 'Mary moved to the garden' but not both.,1,Either 'Yann is hungry' or 'Mary moved to the garden' but not both. It is impossible that Brian is a rhino. There is almost no chance that Antoine is thirsty. There is almost no chance that Julius is a lion.,It is highly unlikely that 'Antoine is thirsty' 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.02::factB. 0.02::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.0396,0.985997199439888,test,highly unlikely,better than even,It is highly unlikely that 'Antoine is thirsty' or 'Julius is a lion' or both.,There is a better than even chance that 'Antoine is thirsty' or 'Julius is a lion' or both.,1,'Antoine is thirsty' or 'Julius is a lion' or both. There is little chance that John took the football. There is a very good chance that Bernhard is green. There is little chance that Lily is a frog.,It is highly unlikely that either 'Lily is a frog' 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.1::factA. 0.8::factB. 0.1::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.74,0.9635927185437088,test,we believe,highly unlikely,We believe that either 'Lily is a frog' or 'Bernhard is green' but not both.,It is highly unlikely that either 'Lily is a frog' or 'Bernhard is green' but not both.,0,Either 'Lily is a frog' or 'Bernhard is green' but not both. It is highly likely that Daniel took the apple. It is probably the case that Lily is a rhino. There is little chance that Mary went to the kitchen.,It is probably the case that 'Mary went to the kitchen 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.9::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.07,0.9379875975195039,test,highly unlikely,probably,It is highly unlikely that 'Mary went to the kitchen and Lily is a rhino'.,It is probably the case that 'Mary went to the kitchen and Lily is a rhino'.,0,'Mary went to the kitchen and Lily is a rhino'. There is little chance that Greg is a lion. It is impossible that Brian is a swan. It is highly likely that John went to the kitchen.,It is impossible that 'John went to the kitchen and Brian 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.0::factB. 0.9::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.0,0.958991798359672,test,impossible,certain,It is impossible that 'John went to the kitchen and Brian is a swan'.,It is certain that 'John went to the kitchen and Brian is a swan'.,1,'John went to the kitchen and Brian is a swan'. It is probable that Winona is a mouse. There is almost no chance that Julius is a frog. It is probably not the case that Daniel took the apple.,There is almost no chance that 'Winona is a mouse 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.02::factB. 0.25::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.014000000000000007,0.9995999199839968,test,almost no chance,probably,There is almost no chance that 'Winona is a mouse and Julius is a frog'.,It is probably the case that 'Winona is a mouse and Julius is a frog'.,1,'Winona is a mouse and Julius is a frog'. It is probably the case that Gertrude is a cat. There is a better than even chance that Julius is yellow. It is likely that John moved to the office.,There is almost no chance that 'Gertrude is a cat' 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.7::factA. 0.6::factB. 0.7::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.88,0.9471894378875775,test,highly likely,almost no chance,It is highly likely that 'Gertrude is a cat' or 'Julius is yellow' or both.,There is almost no chance that 'Gertrude is a cat' or 'Julius is yellow' or both.,0,'Gertrude is a cat' or 'Julius is yellow' or both. There is little chance that Greg is a lion. There is a very good chance that Brian is yellow. It is probably the case that Mary went to the garden.,It is almost certain that 'Brian is yellow' or 'Mary 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.1::factA. 0.8::factB. 0.7::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.9400000000000001,0.9027805561112222,test,almost certain,we doubt,It is almost certain that 'Brian is yellow' or 'Mary went to the garden' or both.,We doubt that 'Brian is yellow' or 'Mary went to the garden' or both.,1,'Brian is yellow' or 'Mary went to the garden' or both. It is unlikely that Sandra left the milk. There is a very good chance that Mary went to the kitchen. Chances are about even that Bernhard is a rhino.,There is almost no chance that either 'Sandra left the milk' 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.2::factA. 0.8::factB. 0.5::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.5,0.961992398479696,test,about even,almost no chance,Chances are about even that either 'Sandra left the milk' or 'Bernhard is a rhino' but not both.,There is almost no chance that either 'Sandra left the milk' or 'Bernhard is a rhino' but not both.,0,Either 'Sandra left the milk' or 'Bernhard is a rhino' but not both. It is highly likely that Bill went to the bedroom. We doubt that Sandra got the milk. It is almost certain that Mary left the football.,It is improbable that 'Sandra got the milk' or 'Mary 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.9::factA. 0.2::factB. 0.95::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.96,0.9121824364872975,test,almost certain,improbable,It is almost certain that 'Sandra got the milk' or 'Mary left the football' or both.,It is improbable that 'Sandra got the milk' or 'Mary left the football' or both.,0,'Sandra got the milk' or 'Mary left the football' or both. Chances are slight that Yann is hungry. It is impossible that Mary took the football. Chances are about even that Lily is yellow.,Chances are about even that 'Lily is yellow' or 'Mary took 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. 0.0::factB. 0.5::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.5,0.9987997599519904,test,about even,almost no chance,Chances are about even that 'Lily is yellow' or 'Mary took the football' or both.,There is almost no chance that 'Lily is yellow' or 'Mary took the football' or both.,1,'Lily is yellow' or 'Mary took the football' or both. Chances are about even that Mary went to the garden. There is a very good chance that Bernhard is gray. It is improbable that Antoine is thirsty.,Chances are about even that 'Bernhard is gray and Mary 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.5::factA. 0.8::factB. 0.1::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.4,0.9725945189037808,test,about even,certain,Chances are about even that 'Bernhard is gray and Mary went to the garden'.,It is certain that 'Bernhard is gray and Mary went to the garden'.,1,'Bernhard is gray and Mary went to the garden'. Chances are about even that Mary went to the bedroom. It is probably not the case that Gertrude is a mouse. We doubt that John put down the apple.,It is almost certain that either 'John put down the apple' 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.5::factA. 0.25::factB. 0.2::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.5,0.906381276255251,test,about even,almost certain,Chances are about even that either 'John put down the apple' or 'Mary went to the bedroom' but not both.,It is almost certain that either 'John put down the apple' or 'Mary went to the bedroom' but not both.,0,Either 'John put down the apple' or 'Mary went to the bedroom' but not both. There is a better than even chance that Greg is gray. There is a very good chance that John discarded the apple. It is impossible that Brian is a frog.,It is impossible that 'Brian is a frog 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.8::factB. 0.0::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.0,0.9531906381276255,test,impossible,very good chance,It is impossible that 'Brian is a frog and Greg is gray'.,There is a very good chance that 'Brian is a frog and Greg is gray'.,1,'Brian is a frog and Greg is gray'. It is unlikely that Mary left the football. Chances are about even that Julius is gray. It is probably the case that Sandra got the milk.,There is a better than even chance that 'Mary left the football' 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.5::factB. 0.7::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.6,0.993998799759952,test,better than even,highly unlikely,There is a better than even chance that 'Mary left the football' or 'Julius is gray' or both.,It is highly unlikely that 'Mary left the football' or 'Julius is gray' or both.,1,'Mary left the football' or 'Julius is gray' or both. It is impossible that John moved to the office. There is almost no chance that Mary got the football. It is improbable that Julius is white.,It is probable that either 'John moved to the office' or 'Julius 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.0::factA. 0.02::factB. 0.1::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.10000000000000002,0.9883976795359072,test,improbable,probable,It is improbable that either 'John moved to the office' or 'Julius is white' but not both.,It is probable that either 'John moved to the office' or 'Julius is white' but not both.,0,Either 'John moved to the office' or 'Julius is white' but not both. There is almost no chance that John grabbed the apple. There is little chance that Julius is gray. There is little chance that Mary discarded the milk.,There is a better than even chance that 'Mary discarded the milk' or 'John grabbed 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.1::factB. 0.1::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.11800000000000002,0.9387877575515103,test,chances are slight,better than even,Chances are slight that 'Mary discarded the milk' or 'John grabbed the apple' or both.,There is a better than even chance that 'Mary discarded the milk' or 'John grabbed the apple' or both.,0,'Mary discarded the milk' or 'John grabbed the apple' or both. There is little chance that Lily is a rhino. It is impossible that Fred dropped the milk. It is probably the case that Bill moved to the office.,Chances are slight that either 'Lily is a rhino' or 'Fred 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.1::factA. 0.0::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.10000000000000002,0.9643928785757151,test,chances are slight,highly likely,Chances are slight that either 'Lily is a rhino' or 'Fred dropped the milk' but not both.,It is highly likely that either 'Lily is a rhino' or 'Fred dropped the milk' but not both.,1,Either 'Lily is a rhino' or 'Fred dropped the milk' but not both. It is impossible that Sandra took the milk. There is almost no chance that Julius is a frog. It is probably not the case that Lily is gray.,It is certain that 'Lily is gray' 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.02::factB. 0.25::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.265,0.9535907181436287,test,probably not,certain,It is probably not the case that 'Lily is gray' or 'Julius is a frog' or both.,It is certain that 'Lily is gray' or 'Julius is a frog' or both.,0,'Lily is gray' or 'Julius is a frog' or both. Chances are about even that Brian is a lion. It is likely that Bernhard is a swan. It is highly unlikely that Julius is green.,There is a very good chance that 'Bernhard is a swan' 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.5::factA. 0.7::factB. 0.05::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.85,0.9069813962792559,test,very good chance,unlikely,There is a very good chance that 'Bernhard is a swan' or 'Brian is a lion' or both.,It is unlikely that 'Bernhard is a swan' or 'Brian is a lion' or both.,1,'Bernhard is a swan' or 'Brian is a lion' or both. It is probable that Julius is green. There is almost no chance that Brian is white. It is improbable that Gertrude is a mouse.,It is likely that 'Julius is green' 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.02::factB. 0.1::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.706,0.986997399479896,test,likely,impossible,It is likely that 'Julius is green' or 'Brian is white' or both.,It is impossible that 'Julius is green' or 'Brian is white' or both.,1,'Julius is green' or 'Brian is white' or both. We doubt that Lily is a swan. It is highly unlikely that John got the milk. It is almost certain that Julius is a lion.,It is probably not the case that either 'John got the milk' 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.2::factA. 0.05::factB. 0.95::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.23,0.9245849169833967,test,probably not,very good chance,It is probably not the case that either 'John got the milk' or 'Lily is a swan' but not both.,There is a very good chance that either 'John got the milk' or 'Lily is a swan' but not both.,1,Either 'John got the milk' or 'Lily is a swan' but not both. It is probably not the case that Mary went to the hallway. It is unlikely that Emily is a mouse. We believe that John left the apple.,It is likely that 'Emily is a mouse 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.25::factA. 0.2::factB. 0.75::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.05000000000000001,0.9735947189437888,test,highly unlikely,likely,It is highly unlikely that 'Emily is a mouse and Mary went to the hallway'.,It is likely that 'Emily is a mouse and Mary went to the hallway'.,0,'Emily is a mouse and Mary went to the hallway'. It is probably the case that John went to the garden. It is probably the case that Brian is white. It is impossible that Lily is a lion.,Chances are about even that 'John went to the garden 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 0.7::factA. 0.7::factB. 0.0::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.48999999999999994,0.9511902380476095,test,about even,impossible,Chances are about even that 'John went to the garden and Brian is white'.,It is impossible that 'John went to the garden and Brian is white'.,1,'John went to the garden and Brian is white'. It is unlikely that Greg is a rhino. It is likely that Lily is green. It is probably the case that Mary went to the office.,There is a better than even chance that either 'Greg is a rhino' 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.2::factA. 0.7::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.62,0.918383676735347,test,better than even,almost no chance,There is a better than even chance that either 'Greg is a rhino' or 'Lily is green' but not both.,There is almost no chance that either 'Greg is a rhino' or 'Lily is green' but not both.,1,Either 'Greg is a rhino' or 'Lily is green' but not both. It is probable that Julius is yellow. It is almost certain that Mary discarded the milk. There is a better than even chance that Lily is a frog.,There is almost no chance that 'Lily is a frog 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.7::factA. 0.95::factB. 0.6::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.41999999999999993,0.9377875575115023,test,about even,almost no chance,Chances are about even that 'Lily is a frog and Julius is yellow'.,There is almost no chance that 'Lily is a frog and Julius is yellow'.,0,'Lily is a frog and Julius is yellow'. It is probably not the case that Jeff went to the garden. It is certain that Brian is a frog. There is almost no chance that Julius is a rhino.,It is probably not the case that 'Julius is a rhino' or 'Jeff 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.25::factA. 1.0::factB. 0.02::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.265,0.9297859571914383,test,probably not,very good chance,It is probably not the case that 'Julius is a rhino' or 'Jeff went to the garden' or both.,There is a very good chance that 'Julius is a rhino' or 'Jeff went to the garden' or both.,1,'Julius is a rhino' or 'Jeff went to the garden' or both. It is improbable that Julius is white. It is unlikely that Brian is a frog. It is likely that Bill left the milk.,It is probably not the case that 'Julius is white' 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.2::factB. 0.7::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.28,0.9439887977595519,test,probably not,likely,It is probably not the case that 'Julius is white' or 'Brian is a frog' or both.,It is likely that 'Julius is white' or 'Brian is a frog' or both.,1,'Julius is white' or 'Brian is a frog' or both. It is highly likely that Sandra grabbed the apple. Chances are about even that Brian is gray. We believe that Julius is green.,It is probably the case that either 'Julius is green' or 'Sandra 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.9::factA. 0.5::factB. 0.75::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.30000000000000004,0.9257851570314063,test,probably not,probably,It is probably not the case that either 'Julius is green' or 'Sandra grabbed the apple' but not both.,It is probably the case that either 'Julius is green' or 'Sandra grabbed the apple' but not both.,0,Either 'Julius is green' or 'Sandra grabbed the apple' but not both. It is probable that Jessica is a cat. It is probably not the case that John went to the garden. It is highly unlikely that Julius is a lion.,It is probably not the case that 'Julius is a lion' 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.25::factB. 0.05::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.2875,0.9597919583916783,test,probably not,probable,It is probably not the case that 'Julius is a lion' or 'John went to the garden' or both.,It is probable that 'Julius is a lion' or 'John went to the garden' or both.,1,'Julius is a lion' or 'John went to the garden' or both. It is improbable that John got the milk. It is probably not the case that Brian is green. It is almost certain that Bernhard is yellow.,We believe that either 'Brian is green' 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.25::factB. 0.95::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.725,0.9031806361272254,test,we believe,little chance,We believe that either 'Brian is green' or 'Bernhard is yellow' but not both.,There is little chance that either 'Brian is green' or 'Bernhard is yellow' but not both.,1,Either 'Brian is green' or 'Bernhard is yellow' but not both. It is impossible that Julius is a rhino. There is little chance that Brian is green. It is improbable that Mary went to the bedroom.,It is impossible that 'Mary went to the bedroom 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.0::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.0,0.9171834366873375,test,impossible,we believe,It is impossible that 'Mary went to the bedroom and Julius is a rhino'.,We believe that 'Mary went to the bedroom and Julius is a rhino'.,1,'Mary went to the bedroom and Julius is a rhino'. Chances are slight that John went to the office. It is highly likely that Gertrude is a cat. We doubt that Greg is a lion.,It is highly likely that 'John went to the office and Greg 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.1::factA. 0.9::factB. 0.2::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.02000000000000001,0.9371874374874976,test,almost no chance,highly likely,There is almost no chance that 'John went to the office and Greg is a lion'.,It is highly likely that 'John went to the office and Greg is a lion'.,0,'John went to the office and Greg is a lion'. There is little chance that John dropped the milk. It is impossible that Bernhard is green. It is highly unlikely that Mary picked up the milk.,It is improbable that either 'John dropped the milk' 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.1::factA. 0.0::factB. 0.05::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.10000000000000002,0.9491898379675935,test,improbable,probably,It is improbable that either 'John dropped the milk' or 'Bernhard is green' but not both.,It is probably the case that either 'John dropped the milk' or 'Bernhard is green' but not both.,1,Either 'John dropped the milk' or 'Bernhard is green' but not both. It is impossible that Mary left the football. It is likely that Greg is a rhino. It is likely that Julius is a swan.,It is likely that 'Julius is a swan' or 'Mary 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.0::factA. 0.7::factB. 0.7::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.7,0.9415883176635327,test,likely,impossible,It is likely that 'Julius is a swan' or 'Mary left the football' or both.,It is impossible that 'Julius is a swan' or 'Mary left the football' or both.,1,'Julius is a swan' or 'Mary left the football' or both. We doubt that Mary went to the bedroom. It is probably the case that Greg is green. It is certain that Sandra left the milk.,There is a better than even chance that either 'Mary went to the bedroom' 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.7::factB. 1.0::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.62,0.9591918383676735,test,better than even,highly unlikely,There is a better than even chance that either 'Mary went to the bedroom' or 'Greg is green' but not both.,It is highly unlikely that either 'Mary went to the bedroom' or 'Greg is green' but not both.,1,Either 'Mary went to the bedroom' or 'Greg is green' but not both. It is unlikely that Greg is a lion. Chances are about even that Brian is gray. It is unlikely that Jessica is a cat.,There is little chance that 'Brian is gray' 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.5::factB. 0.2::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.6000000000000001,0.965993198639728,test,better than even,little chance,There is a better than even chance that 'Brian is gray' or 'Jessica is a cat' or both.,There is little chance that 'Brian is gray' or 'Jessica is a cat' or both.,0,'Brian is gray' or 'Jessica is a cat' or both. We believe that Brian is white. There is little chance that Julius is yellow. There is little chance that Mary put down the apple.,It is certain that 'Julius is yellow and Mary 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.75::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.010000000000000004,0.9943988797759552,test,almost no chance,certain,There is almost no chance that 'Julius is yellow and Mary put down the apple'.,It is certain that 'Julius is yellow and Mary put down the apple'.,0,'Julius is yellow and Mary put down the apple'. It is probable that Greg is gray. It is highly unlikely that Julius is white. It is highly unlikely that Emily is a wolf.,There is a very good chance that either 'Julius is white' 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 0.7::factA. 0.05::factB. 0.05::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.09500000000000001,0.9941988397679536,test,improbable,very good chance,It is improbable that either 'Julius is white' or 'Emily is a wolf' but not both.,There is a very good chance that either 'Julius is white' or 'Emily is a wolf' but not both.,0,Either 'Julius is white' or 'Emily is a wolf' but not both. It is almost certain that Julius is gray. There is almost no chance that Mary moved to the office. It is certain that Sumit is bored.,It is certain that 'Mary moved to the office' or 'Sumit 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.95::factA. 0.02::factB. 1.0::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",1.0,0.9219843968793758,test,certain,unlikely,It is certain that 'Mary moved to the office' or 'Sumit is bored' or both.,It is unlikely that 'Mary moved to the office' or 'Sumit is bored' or both.,1,'Mary moved to the office' or 'Sumit is bored' or both. It is probable that Bernhard is a swan. It is likely that John moved to the garden. It is impossible that Brian is a rhino.,It is likely that 'Bernhard is a swan' 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.7::factA. 0.7::factB. 0.0::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.7,0.9793958791758351,test,likely,highly unlikely,It is likely that 'Bernhard is a swan' or 'Brian is a rhino' or both.,It is highly unlikely that 'Bernhard is a swan' or 'Brian is a rhino' or both.,1,'Bernhard is a swan' or 'Brian is a rhino' or both. It is probably the case that Julius is green. It is likely that John went to the garden. It is probably not the case that Mary took the milk.,There is almost no chance that 'Mary took the milk' 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.7::factB. 0.25::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.775,0.9067813562712542,test,very good chance,almost no chance,There is a very good chance that 'Mary took the milk' or 'Julius is green' or both.,There is almost no chance that 'Mary took the milk' or 'Julius is green' or both.,0,'Mary took the milk' or 'Julius is green' or both. There is a better than even chance that Daniel dropped the milk. It is probable that Brian is a swan. It is impossible that Bernhard is white.,It is certain that 'Bernhard is white and Brian 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.7::factB. 0.0::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.0,0.9933986797359472,test,impossible,certain,It is impossible that 'Bernhard is white and Brian is a swan'.,It is certain that 'Bernhard is white and Brian is a swan'.,0,'Bernhard is white and Brian is a swan'. Chances are slight that Greg is gray. Chances are about even that Bernhard is white. It is probable that Mary left the football.,Chances are about even that 'Greg is gray and Bernhard 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.5::factB. 0.7::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.05000000000000001,0.9497899579915984,test,highly unlikely,about even,It is highly unlikely that 'Greg is gray and Bernhard is white'.,Chances are about even that 'Greg is gray and Bernhard is white'.,0,'Greg is gray and Bernhard is white'. We doubt that Mary got the apple. Chances are about even that John moved to the office. We doubt that Brian is white.,It is probably not the case that 'Mary got the apple' 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.2::factA. 0.5::factB. 0.2::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.36000000000000004,0.9885977195439087,test,probably not,certain,It is probably not the case that 'Mary got the apple' or 'Brian is white' or both.,It is certain that 'Mary got the apple' or 'Brian is white' or both.,1,'Mary got the apple' or 'Brian is white' or both. There is a very good chance that Lily is a frog. It is unlikely that Greg is green. We doubt that Mary took the milk.,It is highly unlikely that 'Mary took the milk' 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.2::factB. 0.2::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.8400000000000001,0.9105821164232847,test,very good chance,highly unlikely,There is a very good chance that 'Mary took the milk' or 'Lily is a frog' or both.,It is highly unlikely that 'Mary took the milk' or 'Lily is a frog' or both.,0,'Mary took the milk' or 'Lily is a frog' or both. It is probably not the case that Jessica is a mouse. There is little chance that Greg is a swan. Chances are about even that Gertrude is a cat.,It is probably the case that 'Jessica is a mouse 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.25::factA. 0.1::factB. 0.5::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.025000000000000012,0.919383876775355,test,almost no chance,probably,There is almost no chance that 'Jessica is a mouse and Greg is a swan'.,It is probably the case that 'Jessica is a mouse and Greg is a swan'.,0,'Jessica is a mouse and Greg is a swan'. There is almost no chance that Lily is a frog. Chances are slight that Bernhard is a swan. It is unlikely that Greg is a rhino.,It is unlikely that either 'Lily is a frog' 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.1::factB. 0.2::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.21200000000000002,0.9809961992398479,test,unlikely,probable,It is unlikely that either 'Lily is a frog' or 'Greg is a rhino' but not both.,It is probable that either 'Lily is a frog' or 'Greg is a rhino' but not both.,1,Either 'Lily is a frog' or 'Greg is a rhino' but not both. It is almost certain that Antoine is bored. It is likely that Greg is gray. There is a better than even chance that Brian is yellow.,It is probably not the case that 'Brian 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.95::factA. 0.7::factB. 0.6::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.88,0.9243848769753951,test,highly likely,probably not,It is highly likely that 'Brian is yellow' or 'Greg is gray' or both.,It is probably not the case that 'Brian is yellow' or 'Greg is gray' or both.,0,'Brian is yellow' or 'Greg is gray' or both. We doubt that Daniel dropped the apple. It is probably the case that John moved to the office. It is likely that Bernhard is gray.,There is little chance that 'Daniel dropped the apple' or 'Bernhard 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.7::factB. 0.7::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.76,0.98499699939988,test,we believe,little chance,We believe that 'Daniel dropped the apple' or 'Bernhard is gray' or both.,There is little chance that 'Daniel dropped the apple' or 'Bernhard is gray' or both.,0,'Daniel dropped the apple' or 'Bernhard is gray' or both. We believe that Lily is a frog. It is highly unlikely that Daniel took the milk. There is little chance that Brian is green.,It is impossible that 'Brian is green 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.75::factA. 0.05::factB. 0.1::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.005000000000000002,0.910382076415283,test,impossible,about even,It is impossible that 'Brian is green and Daniel took the milk'.,Chances are about even that 'Brian is green and Daniel took the milk'.,1,'Brian is green and Daniel took the milk'. It is impossible that Lily is a swan. Chances are about even that Julius is white. It is impossible that Brian is a rhino.,It is impossible that 'Lily is a swan' 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.0::factA. 0.5::factB. 0.0::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.0,0.9239847969593918,test,impossible,highly likely,It is impossible that 'Lily is a swan' or 'Brian is a rhino' or both.,It is highly likely that 'Lily is a swan' or 'Brian is a rhino' or both.,1,'Lily is a swan' or 'Brian is a rhino' or both. It is almost certain that Brian is a frog. There is a very good chance that Julius is a swan. Chances are about even that John got the apple.,It is highly likely that 'John got the apple' 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. 0.8::factB. 0.5::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.9,0.9517903580716143,test,highly likely,highly unlikely,It is highly likely that 'John got the apple' or 'Julius is a swan' or both.,It is highly unlikely that 'John got the apple' or 'Julius is a swan' or both.,1,'John got the apple' or 'Julius is a swan' or both. We believe that Bernhard is a rhino. Chances are about even that Lily is a swan. There is a better than even chance that Greg is gray.,It is highly unlikely that 'Lily is a swan' 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.75::factA. 0.5::factB. 0.6::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.8,0.9195839167833567,test,very good chance,highly unlikely,There is a very good chance that 'Lily is a swan' or 'Greg is gray' or both.,It is highly unlikely that 'Lily is a swan' or 'Greg is gray' or both.,0,'Lily is a swan' or 'Greg is gray' or both. We believe that John dropped the milk. There is a very good chance that Lily is a frog. It is certain that Brian is a lion.,It is probably not the case that 'John dropped the milk' 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.75::factA. 0.8::factB. 1.0::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",1.0,0.968993798759752,test,certain,probably not,It is certain that 'John dropped the milk' or 'Brian is a lion' or both.,It is probably not the case that 'John dropped the milk' or 'Brian is a lion' or both.,0,'John dropped the milk' or 'Brian is a lion' or both. It is highly unlikely that Bernhard is a swan. We believe that John dropped the apple. It is impossible that Brian is yellow.,We believe that either 'Brian is yellow' 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.05::factA. 0.75::factB. 0.0::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.05000000000000001,0.9915983196639327,test,highly unlikely,we believe,It is highly unlikely that either 'Brian is yellow' or 'Bernhard is a swan' but not both.,We believe that either 'Brian is yellow' or 'Bernhard is a swan' but not both.,0,Either 'Brian is yellow' or 'Bernhard is a swan' but not both. It is highly likely that Mary took the football. It is probable that Bernhard is a frog. Chances are about even that Julius is a rhino.,It is probably not the case that either 'Bernhard is a frog' or 'Mary 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.9::factA. 0.7::factB. 0.5::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.33999999999999997,0.9739947989597919,test,probably not,certain,It is probably not the case that either 'Bernhard is a frog' or 'Mary took the football' but not both.,It is certain that either 'Bernhard is a frog' or 'Mary took the football' but not both.,1,Either 'Bernhard is a frog' or 'Mary took the football' but not both. It is almost certain that Julius is a rhino. It is highly unlikely that Brian is a frog. There is a very good chance that Fred moved to the office.,We believe that either 'Fred moved 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.95::factA. 0.05::factB. 0.8::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.77,0.9473894778955791,test,we believe,almost no chance,We believe that either 'Fred moved to the office' or 'Brian is a frog' but not both.,There is almost no chance that either 'Fred moved to the office' or 'Brian is a frog' but not both.,1,Either 'Fred moved to the office' or 'Brian is a frog' but not both. It is almost certain that Jessica is a mouse. There is little chance that John went to the office. It is improbable that Lily is a frog.,It is improbable that 'Lily 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.95::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.09500000000000001,0.9435887177435487,test,improbable,almost certain,It is improbable that 'Lily is a frog and Jessica is a mouse'.,It is almost certain that 'Lily is a frog and Jessica is a mouse'.,1,'Lily is a frog and Jessica is a mouse'. It is likely that Greg is a frog. It is probably the case that Mary left the milk. It is highly unlikely that Winona is a wolf.,It is improbable that 'Winona is a wolf' 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.7::factA. 0.7::factB. 0.05::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.715,0.9613922784556912,test,probably,improbable,It is probably the case that 'Winona is a wolf' or 'Mary left the milk' or both.,It is improbable that 'Winona is a wolf' or 'Mary left the milk' or both.,0,'Winona is a wolf' or 'Mary left the milk' or both. It is certain that Mary got the milk. It is probably not the case that Brian is white. It is almost certain that Bernhard is a frog.,It is almost certain that 'Mary got the milk 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 1.0::factA. 0.25::factB. 0.95::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.95,0.9627925585117023,test,almost certain,almost no chance,It is almost certain that 'Mary got the milk and Bernhard is a frog'.,There is almost no chance that 'Mary got the milk and Bernhard is a frog'.,1,'Mary got the milk and Bernhard is a frog'. It is certain that Brian is green. It is highly unlikely that Mary got the apple. Chances are slight that Greg is gray.,It is almost certain that either 'Mary got the apple' 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 1.0::factA. 0.05::factB. 0.1::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.14000000000000004,0.9347869573914783,test,improbable,almost certain,It is improbable that either 'Mary got the apple' or 'Greg is gray' but not both.,It is almost certain that either 'Mary got the apple' or 'Greg is gray' but not both.,0,Either 'Mary got the apple' or 'Greg is gray' but not both. It is probably the case that Brian is a lion. Chances are slight that Mary left the football. It is impossible that Lily is white.,It is likely that either 'Mary left the football' or 'Brian 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.7::factA. 0.1::factB. 0.0::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.6599999999999999,0.9451890378075615,test,likely,impossible,It is likely that either 'Mary left the football' or 'Brian is a lion' but not both.,It is impossible that either 'Mary left the football' or 'Brian is a lion' but not both.,1,Either 'Mary left the football' or 'Brian is a lion' but not both. It is highly unlikely that John went to the garden. Chances are slight that Lily is a frog. There is almost no chance that Greg is yellow.,It is improbable that 'John went to the garden' 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.05::factA. 0.1::factB. 0.02::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.14500000000000002,0.9197839567913583,test,improbable,highly likely,It is improbable that 'John went to the garden' or 'Lily is a frog' or both.,It is highly likely that 'John went to the garden' or 'Lily is a frog' or both.,1,'John went to the garden' or 'Lily is a frog' or both. It is improbable that Mary went to the office. It is unlikely that Brian is yellow. There is a very good chance that Julius is a rhino.,There is a very good chance that 'Brian is yellow' 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.2::factB. 0.8::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.8400000000000001,0.9127825565113022,test,very good chance,improbable,There is a very good chance that 'Brian is yellow' or 'Julius is a rhino' or both.,It is improbable that 'Brian is yellow' or 'Julius is a rhino' or both.,1,'Brian is yellow' or 'Julius is a rhino' or both. There is almost no chance that John left the football. It is probably not the case that Brian is a rhino. It is improbable that Mary went to the kitchen.,It is likely that 'John left the football 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.02::factA. 0.25::factB. 0.1::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.005000000000000002,0.9515903180636127,test,impossible,likely,It is impossible that 'John left the football and Brian is a rhino'.,It is likely that 'John left the football and Brian is a rhino'.,0,'John left the football and Brian is a rhino'. It is certain that Jeff discarded the milk. It is impossible that Jason is tired. There is a very good chance that Greg is a rhino.,It is probably the case that 'Jason is tired and Jeff 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 1.0::factA. 0.0::factB. 0.8::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.0,0.9513902780556112,test,impossible,probably,It is impossible that 'Jason is tired and Jeff discarded the milk'.,It is probably the case that 'Jason is tired and Jeff discarded the milk'.,0,'Jason is tired and Jeff discarded the milk'. It is improbable that Brian is white. It is almost certain that Bernhard is green. It is almost certain that John moved to the garden.,It is almost certain that 'Brian is white' 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.1::factA. 0.95::factB. 0.95::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.955,0.9317863572714543,test,almost certain,unlikely,It is almost certain that 'Brian is white' or 'Bernhard is green' or both.,It is unlikely that 'Brian is white' or 'Bernhard is green' or both.,1,'Brian is white' or 'Bernhard is green' or both. We believe that Bernhard is a swan. Chances are about even that Jason is tired. It is highly likely that Julius is a rhino.,Chances are about even that 'Jason is tired 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.75::factA. 0.5::factB. 0.9::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.45000000000000007,0.9765953190638128,test,about even,highly unlikely,Chances are about even that 'Jason is tired and Julius is a rhino'.,It is highly unlikely that 'Jason is tired and Julius is a rhino'.,1,'Jason is tired and Julius is a rhino'. It is probable that Jessica is a mouse. It is probable that Gertrude is a sheep. It is likely that Mary went to the kitchen.,It is highly unlikely that either 'Jessica is a mouse' 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.7::factA. 0.7::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.42,0.9005801160232046,test,about even,highly unlikely,Chances are about even that either 'Jessica is a mouse' or 'Mary went to the kitchen' but not both.,It is highly unlikely that either 'Jessica is a mouse' or 'Mary went to the kitchen' but not both.,0,Either 'Jessica is a mouse' or 'Mary went to the kitchen' but not both. We believe that Brian is white. It is likely that Antoine is thirsty. Chances are about even that Jessica is a cat.,There is a very good chance that 'Antoine is thirsty' 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.75::factA. 0.7::factB. 0.5::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.85,0.9091818363672735,test,very good chance,little chance,There is a very good chance that 'Antoine is thirsty' or 'Jessica is a cat' or both.,There is little chance that 'Antoine is thirsty' or 'Jessica is a cat' or both.,1,'Antoine is thirsty' or 'Jessica is a cat' or both. Chances are slight that Mary left the football. It is improbable that John got the apple. Chances are slight that Lily is a lion.,We believe that 'John got the apple 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.1::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.010000000000000004,0.9993998799759952,test,almost no chance,we believe,There is almost no chance that 'John got the apple and Lily is a lion'.,We believe that 'John got the apple and Lily is a lion'.,0,'John got the apple and Lily is a lion'. It is probably the case that Mary moved to the garden. It is probably not the case that Lily is a rhino. It is probable that Yann is thirsty.,It is unlikely that 'Mary moved to the garden 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.7::factA. 0.25::factB. 0.7::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.175,0.96499299859972,test,unlikely,highly likely,It is unlikely that 'Mary moved to the garden and Lily is a rhino'.,It is highly likely that 'Mary moved to the garden and Lily is a rhino'.,1,'Mary moved to the garden and Lily is a rhino'. It is certain that Greg is yellow. Chances are about even that Brian is a swan. It is certain that Lily is green.,It is certain that 'Lily is green' 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 1.0::factA. 0.5::factB. 1.0::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",1.0,0.917383476695339,test,certain,chances are slight,It is certain that 'Lily is green' or 'Brian is a swan' or both.,Chances are slight that 'Lily is green' or 'Brian is a swan' or both.,1,'Lily is green' or 'Brian is a swan' or both. Chances are about even that Winona is a wolf. There is almost no chance that Gertrude is a sheep. It is almost certain that John got the milk.,Chances are about even that 'Winona is a wolf' 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.5::factA. 0.02::factB. 0.95::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.51,0.9411882376475295,test,about even,almost certain,Chances are about even that 'Winona is a wolf' or 'Gertrude is a sheep' or both.,It is almost certain that 'Winona is a wolf' or 'Gertrude is a sheep' or both.,1,'Winona is a wolf' or 'Gertrude is a sheep' or both. It is probably the case that Bernhard is white. It is probable that Mary moved to the garden. It is likely that Brian is a lion.,It is impossible that 'Mary moved to the garden and Bernhard 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.7::factB. 0.7::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.48999999999999994,0.9499899979995999,test,about even,impossible,Chances are about even that 'Mary moved to the garden and Bernhard is white'.,It is impossible that 'Mary moved to the garden and Bernhard is white'.,0,'Mary moved to the garden and Bernhard is white'. It is probably not the case that Mary dropped the apple. It is unlikely that Jason is tired. It is highly unlikely that Greg is yellow.,There is a better than even chance that 'Greg 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.25::factA. 0.2::factB. 0.05::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.010000000000000004,0.9547909581916383,test,almost no chance,better than even,There is almost no chance that 'Greg is yellow and Jason is tired'.,There is a better than even chance that 'Greg is yellow and Jason is tired'.,0,'Greg is yellow and Jason is tired'. It is probably not the case that Julius is a rhino. There is little chance that John moved to the office. It is probably not the case that Bernhard is a swan.,Chances are about even that either 'Julius is a rhino' 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.25::factA. 0.1::factB. 0.25::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.375,0.9477895579115824,test,about even,almost certain,Chances are about even that either 'Julius is a rhino' or 'Bernhard is a swan' but not both.,It is almost certain that either 'Julius is a rhino' or 'Bernhard is a swan' but not both.,1,Either 'Julius is a rhino' or 'Bernhard is a swan' but not both. It is unlikely that John left the football. There is a better than even chance that Lily is a lion. There is a better than even chance that Emily is a sheep.,It is almost certain that 'Lily is a lion 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.2::factA. 0.6::factB. 0.6::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.36,0.9891978395679136,test,probably not,almost certain,It is probably not the case that 'Lily is a lion and Emily is a sheep'.,It is almost certain that 'Lily is a lion and Emily is a sheep'.,0,'Lily is a lion and Emily is a sheep'. It is highly unlikely that Jeff dropped the apple. There is almost no chance that Mary took the football. Chances are slight that Julius is a swan.,There is little chance that 'Julius is a swan' or 'Mary took 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.05::factA. 0.02::factB. 0.1::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.11800000000000002,0.9645929185837168,test,little chance,better than even,There is little chance that 'Julius is a swan' or 'Mary took the football' or both.,There is a better than even chance that 'Julius is a swan' or 'Mary took the football' or both.,1,'Julius is a swan' or 'Mary took the football' or both. It is unlikely that John dropped the apple. There is almost no chance that Bernhard is a swan. It is improbable that Jason is tired.,It is improbable that 'Bernhard is a swan' 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.2::factA. 0.02::factB. 0.1::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.11800000000000002,0.9175835167033407,test,improbable,very good chance,It is improbable that 'Bernhard is a swan' or 'Jason is tired' or both.,There is a very good chance that 'Bernhard is a swan' or 'Jason is tired' or both.,1,'Bernhard is a swan' or 'Jason is tired' or both. It is probably not the case that John went to the office. It is probably the case that Bernhard is a lion. It is probably not the case that Greg is yellow.,It is highly unlikely that 'John went to the office 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.25::factA. 0.7::factB. 0.25::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.0625,0.9363872774554911,test,highly unlikely,almost certain,It is highly unlikely that 'John went to the office and Greg is yellow'.,It is almost certain that 'John went to the office and Greg is yellow'.,1,'John went to the office and Greg is yellow'. Chances are about even that Bernhard is a frog. We doubt that John went to the hallway. It is probable that Gertrude is a sheep.,It is impossible that either 'John went to the hallway' 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.5::factA. 0.2::factB. 0.7::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.5,0.9331866373274655,test,about even,impossible,Chances are about even that either 'John went to the hallway' or 'Bernhard is a frog' but not both.,It is impossible that either 'John went to the hallway' or 'Bernhard is a frog' but not both.,0,Either 'John went to the hallway' or 'Bernhard is a frog' but not both. There is a very good chance that Lily is white. It is unlikely that John went to the garden. It is probably not the case that Julius is a swan.,It is highly unlikely that 'Julius is a swan 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.8::factA. 0.2::factB. 0.25::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.05000000000000001,0.9581916383276655,test,highly unlikely,almost certain,It is highly unlikely that 'Julius is a swan and John went to the garden'.,It is almost certain that 'Julius is a swan and John went to the garden'.,1,'Julius is a swan and John went to the garden'. It is probably not the case that Julius is a swan. There is a better than even chance that Lily is gray. We doubt that Sandra got the milk.,It is improbable that 'Julius is a swan 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.25::factA. 0.6::factB. 0.2::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.15,0.9211842368473695,test,improbable,very good chance,It is improbable that 'Julius is a swan and Lily is gray'.,There is a very good chance that 'Julius is a swan and Lily is gray'.,1,'Julius is a swan and Lily is gray'. It is probably the case that Greg is a swan. There is little chance that John took the football. There is a very good chance that Brian is a frog.,It is almost certain that 'Brian is a frog' 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.7::factA. 0.1::factB. 0.8::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.9400000000000001,0.9429885977195439,test,almost certain,almost no chance,It is almost certain that 'Brian is a frog' or 'Greg is a swan' or both.,There is almost no chance that 'Brian is a frog' or 'Greg is a swan' or both.,1,'Brian is a frog' or 'Greg is a swan' or both. It is likely that Brian is a frog. It is certain that Bernhard is white. It is almost certain that Mary picked up the milk.,It is probable that either 'Brian is a frog' 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.7::factA. 1.0::factB. 0.95::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.30000000000000004,0.9061812362472494,test,probably not,probable,It is probably not the case that either 'Brian is a frog' or 'Bernhard is white' but not both.,It is probable that either 'Brian is a frog' or 'Bernhard is white' but not both.,0,Either 'Brian is a frog' or 'Bernhard is white' but not both. We believe that Yann is tired. Chances are slight that Sandra left the apple. It is improbable that Julius is a swan.,We believe that 'Julius is a swan' 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.75::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.775,0.9881976395279056,test,we believe,highly unlikely,We believe that 'Julius is a swan' or 'Yann is tired' or both.,It is highly unlikely that 'Julius is a swan' or 'Yann is tired' or both.,1,'Julius is a swan' or 'Yann is tired' or both. It is unlikely that John went to the office. There is a better than even chance that Greg is a rhino. It is probably the case that Julius is a swan.,We believe that 'John went to the office' 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.2::factA. 0.6::factB. 0.7::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.76,0.9081816363272655,test,we believe,almost no chance,We believe that 'John went to the office' or 'Julius is a swan' or both.,There is almost no chance that 'John went to the office' or 'Julius is a swan' or both.,1,'John went to the office' or 'Julius is a swan' or both. It is probable that Brian is yellow. It is unlikely that John went to the office. It is highly likely that Mary discarded the apple.,It is probably the case that 'John went to the office 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.7::factA. 0.2::factB. 0.9::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.14,0.9341868373674735,test,chances are slight,probably,Chances are slight that 'John went to the office and Brian is yellow'.,It is probably the case that 'John went to the office and Brian is yellow'.,0,'John went to the office and Brian is yellow'. There is a very good chance that Sandra got the milk. There is almost no chance that Mary grabbed the apple. It is likely that John moved to the office.,There is a very good chance that 'Mary grabbed the apple' or 'Sandra 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.8::factA. 0.02::factB. 0.7::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.804,0.9953990798159632,test,very good chance,improbable,There is a very good chance that 'Mary grabbed the apple' or 'Sandra got the milk' or both.,It is improbable that 'Mary grabbed the apple' or 'Sandra got the milk' or both.,1,'Mary grabbed the apple' or 'Sandra got the milk' or both. There is a very good chance that Lily is a frog. It is certain that John discarded the apple. There is a better than even chance that Julius is a lion.,Chances are about even that 'Julius is a lion 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.8::factA. 1.0::factB. 0.6::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.48,0.9215843168633727,test,about even,certain,Chances are about even that 'Julius is a lion and Lily is a frog'.,It is certain that 'Julius is a lion and Lily is a frog'.,1,'Julius is a lion and Lily is a frog'. It is highly likely that Bernhard is a rhino. It is probably the case that Greg is a frog. We doubt that Brian is gray.,It is almost certain that 'Greg is a frog' 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.9::factA. 0.7::factB. 0.2::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.97,0.9785957191438288,test,almost certain,chances are slight,It is almost certain that 'Greg is a frog' or 'Bernhard is a rhino' or both.,Chances are slight that 'Greg is a frog' or 'Bernhard is a rhino' or both.,1,'Greg is a frog' or 'Bernhard is a rhino' or both. It is probably the case that Lily is a lion. There is almost no chance that John picked up the apple. It is certain that Fred left the football.,It is certain that either 'John picked up the apple' 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.7::factA. 0.02::factB. 1.0::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.98,0.9089817963592719,test,certain,probably not,It is certain that either 'John picked up the apple' or 'Fred left the football' but not both.,It is probably not the case that either 'John picked up the apple' or 'Fred left the football' but not both.,1,Either 'John picked up the apple' or 'Fred left the football' but not both. Chances are slight that Mary put down the apple. There is a very good chance that Bill went to the bedroom. Chances are about even that Bernhard is a rhino.,We doubt that 'Bernhard is a rhino' or 'Bill 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.1::factA. 0.8::factB. 0.5::factC. %hop2 conclusion:-or(factC,factB). query(conclusion). ",0.9,0.9695939187837568,test,highly likely,we doubt,It is highly likely that 'Bernhard is a rhino' or 'Bill went to the bedroom' or both.,We doubt that 'Bernhard is a rhino' or 'Bill went to the bedroom' or both.,0,'Bernhard is a rhino' or 'Bill went to the bedroom' or both. It is highly unlikely that John went to the hallway. We believe that Sandra took the football. We believe that Greg is gray.,It is probably not the case that 'Sandra took the football' 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.05::factA. 0.75::factB. 0.75::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.9375,0.98999799959992,test,almost certain,probably not,It is almost certain that 'Sandra took the football' or 'Greg is gray' or both.,It is probably not the case that 'Sandra took the football' or 'Greg is gray' or both.,0,'Sandra took the football' or 'Greg is gray' or both. There is little chance that Mary dropped the milk. It is almost certain that John left the football. It is improbable that Sumit is tired.,We doubt that either 'Sumit is tired' or 'Mary 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.1::factA. 0.95::factB. 0.1::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.18000000000000005,0.912382476495299,test,we doubt,likely,We doubt that either 'Sumit is tired' or 'Mary dropped the milk' but not both.,It is likely that either 'Sumit is tired' or 'Mary dropped the milk' but not both.,1,Either 'Sumit is tired' or 'Mary dropped the milk' but not both. There is a very good chance that John moved to the office. It is probably the case that Daniel got the football. We doubt that Bernhard is yellow.,There is almost no chance that 'Daniel got the football' 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.8::factA. 0.7::factB. 0.2::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.7599999999999999,0.9731946389277856,test,we believe,almost no chance,We believe that 'Daniel got the football' or 'Bernhard is yellow' or both.,There is almost no chance that 'Daniel got the football' or 'Bernhard is yellow' or both.,0,'Daniel got the football' or 'Bernhard is yellow' or both. It is certain that Brian is a rhino. Chances are about even that John discarded the apple. There is a very good chance that Gertrude is a sheep.,It is certain that 'John discarded 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. 0.8::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",1.0,0.9595919183836767,test,certain,almost no chance,It is certain that 'John discarded the apple' or 'Brian is a rhino' or both.,There is almost no chance that 'John discarded the apple' or 'Brian is a rhino' or both.,1,'John discarded the apple' or 'Brian is a rhino' or both. There is little chance that Antoine is hungry. It is impossible that Lily is a lion. It is likely that Brian is white.,It is likely that 'Antoine is hungry' 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.0::factB. 0.7::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.10000000000000002,0.9425885177035407,test,little chance,likely,There is little chance that 'Antoine is hungry' or 'Lily is a lion' or both.,It is likely that 'Antoine is hungry' or 'Lily is a lion' or both.,0,'Antoine is hungry' or 'Lily is a lion' or both. It is certain that John took the apple. There is almost no chance that Julius is green. It is certain that Mary put down the apple.,Chances are slight that 'Mary put down the apple' 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 1.0::factA. 0.02::factB. 1.0::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",1.0,0.9355871174234847,test,certain,chances are slight,It is certain that 'Mary put down the apple' or 'John took the apple' or both.,Chances are slight that 'Mary put down the apple' or 'John took the apple' or both.,0,'Mary put down the apple' or 'John took the apple' or both. It is probable that Julius is a lion. We believe that Lily is a swan. It is probable that Mary left the milk.,It is highly likely that 'Julius 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.7::factA. 0.75::factB. 0.7::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.9099999999999999,0.9059811962392479,test,highly likely,almost no chance,It is highly likely that 'Julius is a lion' or 'Mary left the milk' or both.,There is almost no chance that 'Julius is a lion' or 'Mary left the milk' or both.,1,'Julius is a lion' or 'Mary left the milk' or both. It is certain that John grabbed the apple. It is almost certain that Mary left the milk. It is probably the case that Jessica is a mouse.,It is almost certain that 'John grabbed the apple and Mary 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 1.0::factA. 0.95::factB. 0.7::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.95,0.9295859171834366,test,almost certain,chances are slight,It is almost certain that 'John grabbed the apple and Mary left the milk'.,Chances are slight that 'John grabbed the apple and Mary left the milk'.,1,'John grabbed the apple and Mary left the milk'. Chances are about even that Bernhard is a frog. It is almost certain that Winona is a wolf. It is likely that Jeff left the football.,There is a very good chance that 'Jeff left the football' 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.5::factA. 0.95::factB. 0.7::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.85,0.9291858371674335,test,very good chance,unlikely,There is a very good chance that 'Jeff left the football' or 'Bernhard is a frog' or both.,It is unlikely that 'Jeff left the football' or 'Bernhard is a frog' or both.,1,'Jeff left the football' or 'Bernhard is a frog' or both. There is a very good chance that Jessica is a mouse. There is a better than even chance that Greg is a rhino. We believe that Lily is a lion.,Chances are about even that 'Lily is a lion 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.8::factA. 0.6::factB. 0.75::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.45,0.9925985197039408,test,about even,highly unlikely,Chances are about even that 'Lily is a lion and Greg is a rhino'.,It is highly unlikely that 'Lily is a lion and Greg is a rhino'.,1,'Lily is a lion and Greg is a rhino'. It is improbable that Greg is a lion. There is little chance that Brian is green. Chances are slight that John left the apple.,It is probably the case that either 'Greg is a lion' or 'Brian 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.1::factA. 0.1::factB. 0.1::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.18000000000000005,0.9565913182636527,test,we doubt,probably,We doubt that either 'Greg is a lion' or 'Brian is green' but not both.,It is probably the case that either 'Greg is a lion' or 'Brian is green' but not both.,0,Either 'Greg is a lion' or 'Brian is green' but not both. It is probable that Julius is a lion. There is little chance that John discarded the apple. It is impossible that Daniel got the football.,It is highly unlikely that 'Julius is a lion 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.7::factA. 0.1::factB. 0.0::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.07,0.998999799959992,test,highly unlikely,likely,It is highly unlikely that 'Julius is a lion and John discarded the apple'.,It is likely that 'Julius is a lion and John discarded the apple'.,1,'Julius is a lion and John discarded the apple'. There is a better than even chance that Gertrude is a mouse. It is probably the case that Sandra got the football. Chances are slight that John went to the garden.,There is a better than even chance that either 'Gertrude is a mouse' or 'John 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.6::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-xor(factA,factC). query(conclusion). ",0.58,0.9795959191838368,test,better than even,impossible,There is a better than even chance that either 'Gertrude is a mouse' or 'John went to the garden' but not both.,It is impossible that either 'Gertrude is a mouse' or 'John went to the garden' but not both.,1,Either 'Gertrude is a mouse' or 'John went to the garden' but not both. It is almost certain that Brian is a frog. We believe that John moved to the garden. It is probably not the case that Lily is gray.,It is impossible 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.95::factA. 0.75::factB. 0.25::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.9625,0.9625925185037008,test,almost certain,impossible,It is almost certain that 'Lily is gray' or 'Brian is a frog' or both.,It is impossible that 'Lily is gray' or 'Brian is a frog' or both.,0,'Lily is gray' or 'Brian is a frog' or both. We doubt that Bernhard is a swan. Chances are slight that Greg is a frog. It is almost certain that John dropped the apple.,It is almost certain that 'Greg is a frog and John 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.2::factA. 0.1::factB. 0.95::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.09500000000000001,0.9833966793358672,test,little chance,almost certain,There is little chance that 'Greg is a frog and John dropped the apple'.,It is almost certain that 'Greg is a frog and John dropped the apple'.,0,'Greg is a frog and John dropped the apple'. We doubt that John put down the apple. It is probably the case that Greg is a swan. There is little chance that Brian is white.,It is improbable that 'Greg is a swan 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.2::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.14,0.9817963592718544,test,improbable,better than even,It is improbable that 'Greg is a swan and John put down the apple'.,There is a better than even chance that 'Greg is a swan and John put down the apple'.,1,'Greg is a swan and John put down the apple'. It is likely that Jeff left the apple. It is highly likely that Mary dropped the milk. We believe that Julius is yellow.,Chances are slight that 'Mary dropped the milk 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.7::factA. 0.9::factB. 0.75::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.63,0.9447889577915584,test,better than even,chances are slight,There is a better than even chance that 'Mary dropped the milk and Jeff left the apple'.,Chances are slight that 'Mary dropped the milk and Jeff left the apple'.,0,'Mary dropped the milk and Jeff left the apple'. Chances are about even that Brian is a rhino. It is highly unlikely that Greg is a frog. There is little chance that John took the football.,It is certain that 'Greg is a frog' 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.5::factA. 0.05::factB. 0.1::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.525,0.9745949189837968,test,about even,certain,Chances are about even that 'Greg is a frog' or 'Brian is a rhino' or both.,It is certain that 'Greg is a frog' or 'Brian is a rhino' or both.,0,'Greg is a frog' or 'Brian is a rhino' or both. It is probably the case that Lily is green. There is almost no chance that Greg is a frog. It is probably not the case that Julius is a lion.,It is probably the case that 'Greg is a frog' 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.7::factA. 0.02::factB. 0.25::factC. %hop2 conclusion:-or(factB,factA). query(conclusion). ",0.706,0.9397879575915183,test,probably,improbable,It is probably the case that 'Greg is a frog' or 'Lily is green' or both.,It is improbable that 'Greg is a frog' or 'Lily is green' or both.,1,'Greg is a frog' or 'Lily is green' or both. There is almost no chance that Lily is a swan. There is little chance that Greg is yellow. It is impossible that Brian is a frog.,There is almost no chance that either 'Brian 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.02::factA. 0.1::factB. 0.0::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.02,0.9803960792158432,test,almost no chance,very good chance,There is almost no chance that either 'Brian is a frog' or 'Lily is a swan' but not both.,There is a very good chance that either 'Brian is a frog' or 'Lily is a swan' but not both.,1,Either 'Brian is a frog' or 'Lily is a swan' but not both. There is almost no chance that Brian is a swan. It is highly unlikely that Mary left the football. We believe that Greg is gray.,It is highly likely that 'Brian is a swan 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.02::factA. 0.05::factB. 0.75::factC. %hop2 conclusion:-and(factA,factB). query(conclusion). ",0.0010000000000000002,0.9991998399679936,test,impossible,highly likely,It is impossible that 'Brian is a swan and Mary left the football'.,It is highly likely that 'Brian is a swan and Mary left the football'.,0,'Brian is a swan and Mary left the football'. It is impossible that John moved to the office. It is probable that Julius is green. Chances are slight that Mary went to the bedroom.,It is likely 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.0::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.0,0.9783956791358271,test,impossible,likely,It is impossible that 'Julius is green and John moved to the office'.,It is likely that 'Julius is green and John moved to the office'.,0,'Julius is green and John moved to the office'. We doubt that Mary left the football. It is highly likely that Sandra dropped the milk. There is almost no chance that John went to the hallway.,It is probable that 'Mary left the football' or 'John 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.2::factA. 0.9::factB. 0.02::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.21600000000000003,0.909381876375275,test,we doubt,probable,We doubt that 'Mary left the football' or 'John went to the hallway' or both.,It is probable that 'Mary left the football' or 'John went to the hallway' or both.,0,'Mary left the football' or 'John went to the hallway' or both. It is almost certain that Mary left the football. We doubt that Jessica is a mouse. It is probable that Emily is a wolf.,It is highly likely that 'Jessica is a mouse 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.95::factA. 0.2::factB. 0.7::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.19,0.9617923584716943,test,we doubt,highly likely,We doubt that 'Jessica is a mouse and Mary left the football'.,It is highly likely that 'Jessica is a mouse and Mary left the football'.,0,'Jessica is a mouse and Mary left the football'. There is almost no chance that John went to the garden. It is unlikely that Daniel took the apple. There is almost no chance that Lily is a swan.,It is probably the case that either 'Daniel took the apple' 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.02::factA. 0.2::factB. 0.02::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.21200000000000002,0.9131826365273055,test,we doubt,probably,We doubt that either 'Daniel took the apple' or 'Lily is a swan' but not both.,It is probably the case that either 'Daniel took the apple' or 'Lily is a swan' but not both.,0,Either 'Daniel took the apple' or 'Lily is a swan' but not both. It is highly unlikely that Bernhard is gray. We doubt that Jessica is a sheep. It is certain that Mary grabbed the milk.,It is probably not the case that either 'Mary grabbed the milk' 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.05::factA. 0.2::factB. 1.0::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.95,0.9561912382476495,test,almost certain,probably not,It is almost certain that either 'Mary grabbed the milk' or 'Bernhard is gray' but not both.,It is probably not the case that either 'Mary grabbed the milk' or 'Bernhard is gray' but not both.,0,Either 'Mary grabbed the milk' or 'Bernhard is gray' but not both. There is almost no chance that Gertrude is a wolf. We believe that Mary went to the garden. It is highly likely that John picked up the milk.,It is highly unlikely that 'Mary went to the garden' 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.02::factA. 0.75::factB. 0.9::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.975,0.9319863972794559,test,certain,highly unlikely,It is certain that 'Mary went to the garden' or 'John picked up the milk' or both.,It is highly unlikely that 'Mary went to the garden' or 'John picked up the milk' or both.,0,'Mary went to the garden' or 'John picked up the milk' or both. It is impossible that Bill went to the kitchen. It is probable that Julius is a frog. There is a better than even chance that Bernhard is yellow.,There is a better than even chance that 'Bernhard is yellow' or 'Bill 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.0::factA. 0.7::factB. 0.6::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.6,0.9423884776955391,test,better than even,little chance,There is a better than even chance that 'Bernhard is yellow' or 'Bill went to the kitchen' or both.,There is little chance that 'Bernhard is yellow' or 'Bill went to the kitchen' or both.,1,'Bernhard is yellow' or 'Bill went to the kitchen' or both. It is almost certain that John got the milk. It is probable that Mary went to the office. There is little chance that Julius is a rhino.,There is a very good chance that 'Julius is a rhino 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.95::factA. 0.7::factB. 0.1::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.09500000000000001,0.9799959991998399,test,little chance,very good chance,There is little chance that 'Julius is a rhino and John got the milk'.,There is a very good chance that 'Julius is a rhino and John got the milk'.,0,'Julius is a rhino and John got the milk'. It is probably not the case that John left the football. We doubt that Lily is white. It is impossible that Bernhard is a frog.,It is certain that 'Lily is white 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.25::factA. 0.2::factB. 0.0::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.0,0.9507901580316063,test,impossible,certain,It is impossible that 'Lily is white and Bernhard is a frog'.,It is certain that 'Lily is white and Bernhard is a frog'.,0,'Lily is white and Bernhard is a frog'. It is probable that Bernhard is green. It is probably the case that Lily is a swan. It is highly unlikely that Sandra got the football.,It is highly unlikely that 'Bernhard is green 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.7::factA. 0.7::factB. 0.05::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.035,0.9583916783356672,test,highly unlikely,probable,It is highly unlikely that 'Bernhard is green and Sandra got the football'.,It is probable that 'Bernhard is green and Sandra got the football'.,1,'Bernhard is green and Sandra got the football'. It is improbable that John put down the apple. There is a better than even chance that Sandra took the milk. It is probable that Lily is a frog.,It is highly unlikely that either 'Lily 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.1::factA. 0.6::factB. 0.7::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.45999999999999996,0.9223844768953791,test,about even,highly unlikely,Chances are about even that either 'Lily is a frog' or 'Sandra took the milk' but not both.,It is highly unlikely that either 'Lily is a frog' or 'Sandra took the milk' but not both.,0,Either 'Lily is a frog' or 'Sandra took the milk' but not both. It is improbable that Gertrude is a wolf. It is unlikely that Mary put down the milk. It is probably the case that Brian is yellow.,It is highly likely that either 'Gertrude is a wolf' or 'Mary 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.1::factA. 0.2::factB. 0.7::factC. %hop2 conclusion:-xor(factA,factB). query(conclusion). ",0.26,0.9963992798559712,test,probably not,highly likely,It is probably not the case that either 'Gertrude is a wolf' or 'Mary put down the milk' but not both.,It is highly likely that either 'Gertrude is a wolf' or 'Mary put down the milk' but not both.,0,Either 'Gertrude is a wolf' or 'Mary put down the milk' but not both. We believe that Mary dropped the milk. It is probable that Greg is white. It is probably not the case that Bernhard is a swan.,We doubt that 'Mary dropped the milk 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.75::factA. 0.7::factB. 0.25::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.1875,0.9269853970794159,test,we doubt,probable,We doubt that 'Mary dropped the milk and Bernhard is a swan'.,It is probable that 'Mary dropped the milk and Bernhard is a swan'.,1,'Mary dropped the milk and Bernhard is a swan'. There is almost no chance that Lily is yellow. It is improbable that Greg is a swan. There is almost no chance that Julius is green.,It is probable that either 'Greg is a swan' 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.02::factA. 0.1::factB. 0.02::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.116,0.9501900380076015,test,improbable,probable,It is improbable that either 'Greg is a swan' or 'Lily is yellow' but not both.,It is probable that either 'Greg is a swan' or 'Lily is yellow' but not both.,0,Either 'Greg is a swan' or 'Lily is yellow' but not both. There is little chance that John went to the garden. It is impossible that Lily is yellow. It is impossible that Brian is gray.,We believe that either 'Lily is yellow' or 'John 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.0::factB. 0.0::factC. %hop2 conclusion:-xor(factB,factA). query(conclusion). ",0.10000000000000002,0.9897979595919184,test,little chance,we believe,There is little chance that either 'Lily is yellow' or 'John went to the garden' but not both.,We believe that either 'Lily is yellow' or 'John went to the garden' but not both.,0,Either 'Lily is yellow' or 'John went to the garden' but not both. There is a better than even chance that Gertrude is a cat. It is likely that Greg is a swan. It is almost certain that Mary left the football.,It is improbable that 'Gertrude is a cat' 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.6::factA. 0.7::factB. 0.95::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.88,0.9391878375675135,test,highly likely,improbable,It is highly likely that 'Gertrude is a cat' or 'Greg is a swan' or both.,It is improbable that 'Gertrude is a cat' or 'Greg is a swan' or both.,0,'Gertrude is a cat' or 'Greg is a swan' or both. It is almost certain that Emily is a wolf. We doubt that Greg is a swan. It is likely that Julius is a frog.,It is probable that 'Julius is a frog 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.95::factA. 0.2::factB. 0.7::factC. %hop2 conclusion:-and(factC,factB). query(conclusion). ",0.14,0.9301860372074415,test,chances are slight,probable,Chances are slight that 'Julius is a frog and Greg is a swan'.,It is probable that 'Julius is a frog and Greg is a swan'.,0,'Julius is a frog and Greg is a swan'. There is a very good chance that Julius is yellow. There is almost no chance that Lily is a rhino. Chances are slight that Mary went to the hallway.,It is impossible that 'Lily 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.8::factA. 0.02::factB. 0.1::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.0020000000000000005,0.9623924784956991,test,impossible,very good chance,It is impossible that 'Lily is a rhino and Mary went to the hallway'.,There is a very good chance that 'Lily is a rhino and Mary went to the hallway'.,1,'Lily is a rhino and Mary went to the hallway'. It is impossible that Julius is yellow. There is a very good chance that Brian is a frog. It is likely that Mary left the apple.,It is likely that either 'Mary left the apple' 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.0::factA. 0.8::factB. 0.7::factC. %hop2 conclusion:-xor(factC,factA). query(conclusion). ",0.7,0.9255851170234047,test,likely,we doubt,It is likely that either 'Mary left the apple' or 'Julius is yellow' but not both.,We doubt that either 'Mary left the apple' or 'Julius is yellow' but not both.,1,Either 'Mary left the apple' or 'Julius is yellow' but not both. It is certain that Brian is white. We believe that Julius is a lion. There is a better than even chance that John went to the garden.,It is certain that either 'Julius is a lion' or 'John 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 1.0::factA. 0.75::factB. 0.6::factC. %hop2 conclusion:-xor(factB,factC). query(conclusion). ",0.45000000000000007,0.9503900780156032,test,about even,certain,Chances are about even that either 'Julius is a lion' or 'John went to the garden' but not both.,It is certain that either 'Julius is a lion' or 'John went to the garden' but not both.,0,Either 'Julius is a lion' or 'John went to the garden' but not both. There is almost no chance that Brian is green. Chances are about even that Greg is gray. It is impossible that Lily is yellow.,There is a very good chance that 'Lily is yellow' 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.02::factA. 0.5::factB. 0.0::factC. %hop2 conclusion:-or(factC,factA). query(conclusion). ",0.02,0.9921984396879376,test,almost no chance,very good chance,There is almost no chance that 'Lily is yellow' or 'Brian is green' or both.,There is a very good chance that 'Lily is yellow' or 'Brian is green' or both.,0,'Lily is yellow' or 'Brian is green' or both. There is almost no chance that John moved to the garden. There is little chance that Sandra dropped the apple. It is probable that Lily is white.,It is likely that 'John moved to the garden 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.02::factA. 0.1::factB. 0.7::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.014000000000000007,0.9441888377675535,test,almost no chance,likely,There is almost no chance that 'John moved to the garden and Lily is white'.,It is likely that 'John moved to the garden and Lily is white'.,0,'John moved to the garden and Lily is white'. There is almost no chance that Gertrude is a cat. We doubt that John dropped the apple. It is probably the case that Bill went to the garden.,It is impossible that 'John dropped 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.02::factA. 0.2::factB. 0.7::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.004000000000000002,0.988997799559912,test,impossible,likely,It is impossible that 'John dropped the apple and Gertrude is a cat'.,It is likely that 'John dropped the apple and Gertrude is a cat'.,1,'John dropped the apple and Gertrude is a cat'. It is impossible that Julius is gray. It is probable that Mary went to the kitchen. It is almost certain that Brian is green.,It is certain that 'Mary went to the kitchen' 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.0::factA. 0.7::factB. 0.95::factC. %hop2 conclusion:-or(factB,factC). query(conclusion). ",0.985,0.9937987597519504,test,certain,about even,It is certain that 'Mary went to the kitchen' or 'Brian is green' or both.,Chances are about even that 'Mary went to the kitchen' or 'Brian is green' or both.,1,'Mary went to the kitchen' or 'Brian is green' or both. We believe that Bernhard is gray. It is certain that Lily is a lion. It is probably the case that Sandra took the football.,Chances are about even that 'Bernhard is gray 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. 1.0::factB. 0.7::factC. %hop2 conclusion:-and(factA,factC). query(conclusion). ",0.525,0.9139827965593119,test,about even,impossible,Chances are about even that 'Bernhard is gray and Sandra took the football'.,It is impossible that 'Bernhard is gray and Sandra took the football'.,1,'Bernhard is gray and Sandra took the football'. It is highly likely that Bernhard is white. It is unlikely that Sumit is tired. There is almost no chance that Brian is white.,It is highly likely that 'Bernhard 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.9::factA. 0.2::factB. 0.02::factC. %hop2 conclusion:-or(factA,factC). query(conclusion). ",0.902,0.9115823164632927,test,highly likely,we doubt,It is highly likely that 'Bernhard is white' or 'Brian is white' or both.,We doubt that 'Bernhard is white' or 'Brian is white' or both.,1,'Bernhard is white' or 'Brian is white' or both. It is almost certain that Bernhard is a swan. It is probable that Greg is a lion. It is certain that Brian is a frog.,It is probably the case that 'Greg is a lion 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.95::factA. 0.7::factB. 1.0::factC. %hop2 conclusion:-and(factB,factC). query(conclusion). ",0.7,0.9077815563112622,test,probably,chances are slight,It is probably the case that 'Greg is a lion and Brian is a frog'.,Chances are slight that 'Greg is a lion and Brian is a frog'.,1,'Greg is a lion and Brian is a frog'. It is highly likely that Sandra got the milk. It is probably not the case that Gertrude is a sheep. There is little chance that Bill went to the kitchen.,It is probable that either 'Bill went to the kitchen' 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.9::factA. 0.25::factB. 0.1::factC. %hop2 conclusion:-xor(factC,factB). query(conclusion). ",0.30000000000000004,0.9575915183036607,test,probably not,probable,It is probably not the case that either 'Bill went to the kitchen' or 'Gertrude is a sheep' but not both.,It is probable that either 'Bill went to the kitchen' or 'Gertrude is a sheep' but not both.,0,Either 'Bill went to the kitchen' or 'Gertrude is a sheep' but not both. We doubt that Lily is green. There is a better than even chance that Mary got the football. We doubt that Julius is a swan.,It is impossible that 'Lily is green' 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.6::factB. 0.2::factC. %hop2 conclusion:-or(factA,factB). query(conclusion). ",0.68,0.9033806761352271,test,probable,impossible,It is probable that 'Lily is green' or 'Mary got the football' or both.,It is impossible that 'Lily is green' or 'Mary got the football' or both.,0,'Lily is green' or 'Mary got the football' or both. There is little chance that Bernhard is green. It is highly unlikely that John went to the garden. There is little chance that Jason is tired.,It is almost certain that 'John went to the garden 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.1::factA. 0.05::factB. 0.1::factC. %hop2 conclusion:-and(factB,factA). query(conclusion). ",0.005000000000000002,0.9455891178235647,test,impossible,almost certain,It is impossible that 'John went to the garden and Bernhard is green'.,It is almost certain that 'John went to the garden and Bernhard is green'.,0,'John went to the garden and Bernhard is green'. We believe that Greg is a rhino. There is almost no chance that Brian is a frog. It is highly unlikely that Sandra grabbed the apple.,It is likely that 'Sandra grabbed the apple 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.02::factB. 0.05::factC. %hop2 conclusion:-and(factC,factA). query(conclusion). ",0.03750000000000001,0.9013802760552111,test,highly unlikely,likely,It is highly unlikely that 'Sandra grabbed the apple and Greg is a rhino'.,It is likely that 'Sandra grabbed the apple and Greg is a rhino'.,0,'Sandra grabbed the apple and Greg is a rhino'.