Question: How is John Adams (with Sarah Polley) related to Tak Fujimoto?
Choices:
culture
found
official symbol
medical treatment
appears in the form of
director of photography
official religion
political alignment
superhuman feature or ability
narrative location
Program:
function: Find
inputs: Sarah Polley
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: John Adams
function: And
dependencies: 1
2
function: Find
inputs: Tak Fujimoto
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Adams" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Sarah Polley" . ?e_2 <pred:name> "Tak Fujimoto" . ?e_1 ?p ?e_2 .  }
Answer: director of photography