Question: How is Harlow, with Martin Balsam as a cast member, linked to Peter Lawford?
Choices:
twinned administrative body
found
collection
next lower rank
cast member
industry
language of work or name
head coach
start point
relative
Program:
function: Find
inputs: Martin Balsam
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harlow
function: And
dependencies: 1
2
function: Find
inputs: Peter Lawford
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Harlow" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Martin Balsam" . ?e_2 <pred:name> "Peter Lawford" . ?e_1 ?p ?e_2 .  }
Answer: cast member