Question: How is Peter Cook (who has a CANTIC-ID of a11175928) related to Hampstead (which is the death place of Billie Whitelaw)?
Choices:
present in work
partially contains
place served by transport hub
place of death
model item
designed to carry
honorific prefix
has effect
mountain range
grants
Answer: place of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Peter Cook" . ?e_1 <CANTIC-ID> ?pv . ?pv <pred:value> "a11175928" . ?e_2 <pred:name> "Hampstead" . ?e_3 <place_of_death> ?e_2 . ?e_3 <pred:name> "Billie Whitelaw" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Peter Cook
function: FilterStr
dependencies: 0
inputs: CANTIC-ID
a11175928
function: Find
inputs: Billie Whitelaw
function: Relate
dependencies: 2
inputs: place of death
forward
function: Find
inputs: Hampstead
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5