Question: How is John Hughes, who studied at the University of Victoria, related to Canada?
Choices:
country of citizenship
next lower rank
has immediate cause
followed by
location of formation
place of death
executive producer
place of publication
place of origin (Switzerland)
legislative body
Answer: country of citizenship
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Hughes" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "University of Victoria" . ?e_2 <pred:name> "Canada" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: University of Victoria
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Hughes
function: And
dependencies: 1
2
function: Find
inputs: Canada
function: QueryRelation
dependencies: 3
4