Question: What is the connection between I Spy (the one that has Malcolm McDowell as a cast member) to Eddie Murphy (the one that has the occupation of voice actor)?
Choices:
cast member
nutrient
license
position played on team / speciality
family name
make-up artist
destination point
highest judicial authority
office held by head of state
followed by
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "I Spy" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Malcolm McDowell" . ?e_2 <pred:name> "Eddie Murphy" . ?e_2 <occupation> ?e_4 . ?e_4 <pred:name> "voice actor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Malcolm McDowell
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: I Spy
function: And
dependencies: 1
2
function: Find
inputs: voice actor
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: Eddie Murphy
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7