Question: What is the relationship between The Count of Monte Cristo (the one that has Trevor Howard as a cast member) and Kate Nelligan?
Choices:
location of formation
cast member
manufacturer
basin country
work location
parent organization
operating area
participant of
sport
geographic distribution
Program:
function: Find
inputs: Trevor Howard
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Count of Monte Cristo
function: And
dependencies: 1
2
function: Find
inputs: Kate Nelligan
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Count of Monte Cristo" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Trevor Howard" . ?e_2 <pred:name> "Kate Nelligan" . ?e_1 ?p ?e_2 .  }
Answer: cast member