Question: How is Happy Together, with Brad Pitt as a cast member, related to movie director Dan Schneider?
Choices: official religion
director/manager
distribution
located in or next to body of water
cast member
taxon rank
copyright representative
spouse
capital
product or material produced
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Happy Together" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Brad Pitt" . ?e_2 <pred:name> "Dan Schneider" . ?e_2 <occupation> ?e_4 . ?e_4 <pred:name> "film director" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Brad Pitt
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Happy Together
function: And
dependencies: 1
2
function: Find
inputs: film director
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: Dan Schneider
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: cast member