Question: How is Frankenstein, featuring the character Frankenstein's monster, related to Mary Shelley, whose death resulted from natural causes?
Choices:
cast member
distributor
capital
talk show guest
architect
highest judicial authority
main subject
author
presenter
destination point
Answer: author
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Frankenstein" . ?e_1 <characters> ?e_3 . ?e_3 <pred:name> "Frankenstein's monster" . ?e_2 <pred:name> "Mary Shelley" . ?e_2 <manner_of_death> ?e_4 . ?e_4 <pred:name> "natural causes" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Frankenstein's monster
function: Relate
dependencies: 0
inputs: characters
backward
function: Find
inputs: Frankenstein
function: And
dependencies: 1
2
function: Find
inputs: natural causes
function: Relate
dependencies: 4
inputs: manner of death
backward
function: Find
inputs: Mary Shelley
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7