Question: What is the relationship between Sabrina (that has Julia Ormond as a cast member) and Greg Kinnear?
Choices:
cast member
start point
costume designer
coextensive with
dedicated to
fictional universe described in
location
official residence
grants
field of work
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Sabrina" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Julia Ormond" . ?e_2 <pred:name> "Greg Kinnear" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Julia Ormond
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Sabrina
function: And
dependencies: 1
2
function: Find
inputs: Greg Kinnear
function: QueryRelation
dependencies: 3
4