---
# System prepended metadata

title: Lab Exercise 4 (Drama in the Clue Mansion)

---

# Lab Exercise 4 (Drama in the Clue Mansion)

- Create a knowledge base according to propositions
  - Miss Scarlet, Mrs. White, Mrs. Peacock, Dr. Orchid are female
  - Prof. Plum, Colonel Mustard, and Rev. Green are all male
  - Miss Scarlet hates Rev. Green.
  - Rev. Green and Mrs. White hate each other.
  - Prof. Plum and Mrs. White hate each other.
  - Col. Mustard hates all females and Prof. Plum.
  - Miss Scarlet and Mrs. Peacock both like Dr. Orchid.
  - Dr. Orchid likes Mrs. Peacock
  - Miss Scarlet likes Mrs. White
  - Miss Scarlet and Prof. Plum like each other.
  - Prof. Plum likes everyone Col. Mustard hates.
  - Dr. Orchid likes everyone who likes Dr. Orchid.
  - People who hate each other are enemies
  - People who like each other are friends
  - The enemy of one's enemy is his/her friend.

- Based on the knowledge base you created. Write the solutions to these queries:
  - Which pairs are enemies?
  - Which pairs are friends?
  - Which people are liked by Prof. Plum.
  - Which people like themselves?
  - Which males are liked by females?
  - Which people are hated by the one they like?