Question: What's the relationship between Roger Deakins and The Hurricane (based on literature)?
Choices:
official religion
shares border with
owner of
director of photography
father
from fictional universe
hair color
series spin-off
developer
general manager
Answer: director of photography
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Hurricane" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "film based on literature" . ?e_2 <pred:name> "Roger Deakins" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Hurricane
function: And
dependencies: 1
2
function: Find
inputs: Roger Deakins
function: QueryRelation
dependencies: 3
4