Question: The Portrait of a Lady, with Richard E. Grant as a cast member, has what connection to Richard E. Grant?
Choices:
history of topic
location of formation
honorific prefix
continent
inspired by
family
cites
cast member
participant
director/manager
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Portrait of a Lady" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Richard E. Grant" . ?e_2 <pred:name> "Richard E. Grant" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Richard E. Grant
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Portrait of a Lady
function: And
dependencies: 1
2
function: Find
inputs: Richard E. Grant
function: QueryRelation
dependencies: 3
4