Question: What is the connection between Gordon Brown (the one that lives in Hobart) to Hobart?
Choices:
film release region
symptom of
head of government
enclave within
production company
official symbol
heritage designation
product or material produced
mountain range
residence
Answer: residence
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gordon Brown" . ?e_1 <residence> ?e_3 . ?e_3 <pred:name> "Hobart" . ?e_2 <pred:name> "Hobart" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Hobart
function: Relate
dependencies: 0
inputs: residence
backward
function: Find
inputs: Gordon Brown
function: And
dependencies: 1
2
function: Find
inputs: Hobart
function: QueryRelation
dependencies: 3
4