Question: What is the connection between The Singing Detective (the one that has Adrien Brody as a cast member) to Katie Holmes?
Choices: work location
home venue
position held
model item
rector
industry
public holiday
use
contains settlement
cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Singing Detective" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Adrien Brody" . ?e_2 <pred:name> "Katie Holmes" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Adrien Brody
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Singing Detective
function: And
dependencies: 1
2
function: Find
inputs: Katie Holmes
function: QueryRelation
dependencies: 3
4
Answer: cast member