Question: What is the connection between The Scarlet Letter (the one that has Robert Duvall as a cast member) to Andrew G. Vajna?
Choices:
producer
genre
source of material
member of
maintained by
performer
has part
approved by
country of origin
successful candidate
Answer: producer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Scarlet Letter" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Robert Duvall" . ?e_2 <pred:name> "Andrew G. Vajna" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Robert Duvall
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Scarlet Letter
function: And
dependencies: 1
2
function: Find
inputs: Andrew G. Vajna
function: QueryRelation
dependencies: 3
4