Question: I would like to know the relationship between Donald Sutherland (who works in Ottowa) to politician
Choices:
follows
continent
occupation
source of material
military branch
lifestyle
father
quotes work
film editor
capital
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Donald Sutherland" . ?e_1 <work_location> ?e_3 . ?e_3 <pred:name> "Ottawa" . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ottawa
function: Relate
dependencies: 0
inputs: work location
backward
function: Find
inputs: Donald Sutherland
function: And
dependencies: 1
2
function: Find
inputs: politician
function: QueryRelation
dependencies: 3
4