Question: How is television director Paul Guilfoyle related to Hollywood where Buddy DeSylva died?
Choices:
industry
drug used for treatment
office held by head of the organisation
record label
has parts of the class
geographic distribution
legislative body
candidate
capital of
place of death
Answer: place of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Paul Guilfoyle" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "television director" . ?e_2 <pred:name> "Hollywood" . ?e_4 <place_of_death> ?e_2 . ?e_4 <pred:name> "Buddy DeSylva" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: television director
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Paul Guilfoyle
function: And
dependencies: 1
2
function: Find
inputs: Buddy DeSylva
function: Relate
dependencies: 4
inputs: place of death
forward
function: Find
inputs: Hollywood
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7