Question: How is Little Women with Janet Leigh connected to Peter Lawford?
Choices: candidacy in election
political alignment
participant of
lifestyle
hair color
head of state
film crew member
award disciplines or subjects
capital of
cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Little Women" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Janet Leigh" . ?e_2 <pred:name> "Peter Lawford" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Janet Leigh
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Little Women
function: And
dependencies: 1
2
function: Find
inputs: Peter Lawford
function: QueryRelation
dependencies: 3
4
Answer: cast member