Question: How are Gordon Douglas and Harlow, which had Peter Lawford as a cast member, related?
Choices:
sidekick of
general manager
present in work
different from
participant of
film release region
continent
narrative role
collection
director
Answer: director
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Harlow" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Peter Lawford" . ?e_2 <pred:name> "Gordon Douglas" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Peter Lawford
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harlow
function: And
dependencies: 1
2
function: Find
inputs: Gordon Douglas
function: QueryRelation
dependencies: 3
4