Question: What is the relationship between Transamerica to Graham Greene (the one that has the occupation of actor)?
Choices:
published in
chief executive officer
performer
history of topic
afflicts
main food source
mountain range
spouse
cast member
official color
Program:
function: Find
inputs: Transamerica
function: Find
inputs: actor
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: Graham Greene
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Transamerica" . ?e_2 <pred:name> "Graham Greene" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "actor" . ?e_1 ?p ?e_2 .  }
Answer: cast member