Question: What is the relationship between James Brown (the one that works in the location Ottawa) and Canada?
Choices: diplomatic relation
illustrator
language of work or name
characters
field of work
field of this occupation
interested in
developer
country of citizenship
country
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Brown" . ?e_1 <work_location> ?e_3 . ?e_3 <pred:name> "Ottawa" . ?e_2 <pred:name> "Canada" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ottawa
function: Relate
dependencies: 0
inputs: work location
backward
function: Find
inputs: James Brown
function: And
dependencies: 1
2
function: Find
inputs: Canada
function: QueryRelation
dependencies: 3
4
Answer: country of citizenship