FUNCTION mother
FUNCTION father
RELATION son
RELATION daughter
RELATION brother
RELATION sister

FACTIVE know

DISTINCT i you mary john alice bob

ASK who is x
 ANSWER x
 IF y's mother is x
  TRUE
   ANSWER y's mother
 IF y's father is x
  TRUE
   ANSWER y's father
 IF y's son is x
  TRUE
   ANSWER y's son
 IF y's daughter is x
  TRUE
   ANSWER y's daughter
 IF y's brother is x
  TRUE
   ANSWER y's brother
 IF y's sister is x
  TRUE
   ANSWER y's sister

ASSERT i am not you

IF x's father is y's father
 TRUE
  IF x's mother is y's mother
   TRUE
    IF x is y
     FALSE
      IF x is a girl
       TRUE
        ASSERT y's sister is x
       FALSE
        ASSERT y's brother is x

IF x is mary
 TRUE
  ASSERT x is a girl
  ASSERT x is not a boy
IF x is john
 TRUE
  ASSERT x is a boy
  ASSERT x is not a girl
IF x is alice
 TRUE
  ASSERT x is a girl
  ASSERT x is not a boy
IF x is bob
 TRUE
  ASSERT x is a boy
  ASSERT x is not a girl

IF x is a girl
 TRUE
  ASSERT x is not a boy
 FALSE
  ASSERT x is a boy

IF x is a boy
 TRUE
  ASSERT x is not a girl
 FALSE
  ASSERT x is a girl

IF x is y's mother
 TRUE
  ASSERT x is a girl
  ASSERT x is not a boy
  ASSERT x is not y
  IF y is a boy
   TRUE
    ASSERT y is x's son
   FALSE
    ASSERT y is x's daughter

IF x is y's father
 TRUE
  ASSERT x is a boy
  ASSERT x is not a girl
  ASSERT x is not y
  IF y is a boy
   TRUE
    ASSERT y is x's son
   FALSE
    ASSERT y is x's daughter

IF x is y's son
 TRUE
  ASSERT x is a boy
  ASSERT x is not a girl
  ASSERT x is not y
  IF y is a girl
   TRUE
    ASSERT y is x's mother
   FALSE
    ASSERT y is x's father

IF x is y's daughter
 TRUE
  ASSERT x is a girl
  ASSERT x is not a boy
  ASSERT x is not y
  IF y is a girl
   TRUE
    ASSERT y is x's mother
   FALSE
    ASSERT y is x's father

IF x is y's brother
 TRUE
  ASSERT x is a boy
  ASSERT x is not a girl
  ASSERT x is not y
  ASSERT x's father is y's father
  ASSERT x's mother is y's mother
  IF y is a boy
   TRUE
    ASSERT y is x's brother
   FALSE
    ASSERT y is x's sister

IF x is y's sister
 TRUE
  ASSERT x is a girl
  ASSERT x is not a boy
  ASSERT x is not y
  ASSERT x's father is y's father
  ASSERT x's mother is y's mother
  IF y is a boy
   TRUE
    ASSERT y is x's brother
   FALSE
    ASSERT y is x's sister

IF x is dead
 TRUE
  ASSERT x is not alive
 FALSE
  ASSERT x is alive

IF x is alive
 TRUE
  ASSERT x is not dead
 FALSE
  ASSERT x is dead

IF x kills y
 TRUE
  ASSERT y is dead
  ASSERT x knows that x kills y
  ASSERT x knows that y is dead

IF x knows that y knows that z is dead
 TRUE
  ASSERT x knows that z is dead
  ASSERT y knows that z is dead
  ASSERT z is dead