Question: What is the relationship between Scoop (the one that has Anthony Head as a cast member) and John Davis (the one that has the occupation of actor)?
Choices: influenced by
inspired by
narrator
work location
interests
family
sex or gender
head of government
official religion
producer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Scoop" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Anthony Head" . ?e_2 <pred:name> "John Davis" . ?e_2 <occupation> ?e_4 . ?e_4 <pred:name> "actor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Anthony Head
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Scoop
function: And
dependencies: 1
2
function: Find
inputs: actor
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: John Davis
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: producer