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
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
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 .  }
Answer: cast member