Question: How is Eureka, with Mickey Rourke as a cast member, linked to Joe Pesci?
Choices:
health specialty
connects with
commissioned by
professorship
position held
has immediate cause
family
make-up artist
cast member
inspired by
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Eureka" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Mickey Rourke" . ?e_2 <pred:name> "Joe Pesci" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Mickey Rourke
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Eureka
function: And
dependencies: 1
2
function: Find
inputs: Joe Pesci
function: QueryRelation
dependencies: 3
4