Question: How is House starring Joel David Moore related to Kal Penn?
Choices:
interests
geography of topic
cast member
legal form
owned by
donated by
published in
signatory
place of burial
does not have part
Program:
function: Find
inputs: Joel David Moore
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: House
function: And
dependencies: 1
2
function: Find
inputs: Kal Penn
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "House" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Joel David Moore" . ?e_2 <pred:name> "Kal Penn" . ?e_1 ?p ?e_2 .  }
Answer: cast member