Question: What is the relationship between Skyfall (the one that has Javier Bardem as a cast member) and Roger Deakins?
Choices:
has parts of the class
exclave of
country
platform
significant person
subsidiary
drafted by
director of photography
famous people
grants
Program:
function: Find
inputs: Javier Bardem
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Skyfall
function: And
dependencies: 1
2
function: Find
inputs: Roger Deakins
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Skyfall" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Javier Bardem" . ?e_2 <pred:name> "Roger Deakins" . ?e_1 ?p ?e_2 .  }
Answer: director of photography