Question: What is the relationship between Pittsburgh (the one that has Moby as a cast member) and Jeff Goldblum?
Choices:
partner
killed by
film distribute region
officeholder
location of formation
opposite of
cast member
legal form
has part
interests
Program:
function: Find
inputs: Moby
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Pittsburgh
function: And
dependencies: 1
2
function: Find
inputs: Jeff Goldblum
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Pittsburgh" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Moby" . ?e_2 <pred:name> "Jeff Goldblum" . ?e_1 ?p ?e_2 .  }
Answer: cast member