Question: What is the relationship between James Bond (the one that presents in work The Living Daylights) and David Niven?
Choices:
occupant
penalty
named after
culture
performer
appears in the form of
given name
native language
shares border with
movement
Program:
function: Find
inputs: The Living Daylights
function: Relate
dependencies: 0
inputs: present in work
backward
function: Find
inputs: James Bond
function: And
dependencies: 1
2
function: Find
inputs: David Niven
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Bond" . ?e_1 <present_in_work> ?e_3 . ?e_3 <pred:name> "The Living Daylights" . ?e_2 <pred:name> "David Niven" . ?e_1 ?p ?e_2 .  }
Answer: performer