Question: What is the relationship between The Amazing Spider-Man (the one that has Sally Field as a cast member) and Rhys Ifans?
Choices: operator
contains administrative territorial entity
use
officeholder
located on astronomical location
cast member
is a list of
shares border with
place of birth
color
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Amazing Spider-Man" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Sally Field" . ?e_2 <pred:name> "Rhys Ifans" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Sally Field
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Amazing Spider-Man
function: And
dependencies: 1
2
function: Find
inputs: Rhys Ifans
function: QueryRelation
dependencies: 3
4
Answer: cast member