Question: What is the relationship between Contact (the one that has Elias Koteas as a cast member) and Brad Pitt?
Choices:
cast member
official color
kit supplier
manner of death
ancestral home
medical treatment
collection
based on
mother
does not have part
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Contact" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Elias Koteas" . ?e_2 <pred:name> "Brad Pitt" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Elias Koteas
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Contact
function: And
dependencies: 1
2
function: Find
inputs: Brad Pitt
function: QueryRelation
dependencies: 3
4