Question: What is the relationship between Take Shelter (the one that has Deborah Ann Woll as a cast member) and Charlie Cox (the one that has the religion Catholicism)?
Choices:
religious order
cast member
screenwriter
voice actor
owned by
chief executive officer
terminus
designed by
located on terrain feature
programming language
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Take Shelter" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Deborah Ann Woll" . ?e_2 <pred:name> "Charlie Cox" . ?e_2 <religion> ?e_4 . ?e_4 <pred:name> "Catholicism" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Deborah Ann Woll
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Take Shelter
function: And
dependencies: 1
2
function: Find
inputs: Catholicism
function: Relate
dependencies: 4
inputs: religion
backward
function: Find
inputs: Charlie Cox
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7