Question: How is Marv Wolfman related to Brooklyn, residence of Paul Bettany?
Choices:
had as last meal
work location
distributor
partner
capital
drafted by
native language
residence
characters
place of birth
Answer: place of birth
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Marv Wolfman" . ?e_2 <pred:name> "Brooklyn" . ?e_3 <residence> ?e_2 . ?e_3 <pred:name> "Paul Bettany" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Marv Wolfman
function: Find
inputs: Paul Bettany
function: Relate
dependencies: 1
inputs: residence
forward
function: Find
inputs: Brooklyn
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4