Question: What is the association of the film Traffic (that has Viola Davis as a cast member) with Miguel Ferrer?
Choices:
creator
twinned administrative body
lowest point
convicted of
location of discovery
sport
cast member
editor
indigenous to
permanent resident of
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Traffic" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Viola Davis" . ?e_2 <pred:name> "Miguel Ferrer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Viola Davis
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Traffic
function: And
dependencies: 1
2
function: Find
inputs: Miguel Ferrer
function: QueryRelation
dependencies: 3
4