Question: How is Spider-Man 2, with Tobey Maguire as a cast member, related to Rosemary Harris, an alumnus of the Royal Academy of Dramatic Art?
Choices:
cast member
sports season of league or competition
manufacturer
located on astronomical location
place of burial
is a list of
has effect
military casualty classification
twinned administrative body
replaces
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Spider-Man 2" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Tobey Maguire" . ?e_2 <pred:name> "Rosemary Harris" . ?e_2 <educated_at> ?e_4 . ?e_4 <pred:name> "Royal Academy of Dramatic Art" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Tobey Maguire
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Spider-Man 2
function: And
dependencies: 1
2
function: Find
inputs: Royal Academy of Dramatic Art
function: Relate
dependencies: 4
inputs: educated at
backward
function: Find
inputs: Rosemary Harris
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7