Question: What is the relationship betwenn John Broome, a citizen of the United Kingdom, and Kuala Lumpur?
Choices:
discoverer or inventor
voice type
occupant
field of work
license
patron saint
foundational text
fictional universe described in
place of birth
place of death
Answer: place of birth
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Broome" . ?e_1 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United Kingdom" . ?e_2 <pred:name> "Kuala Lumpur" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: John Broome
function: And
dependencies: 1
2
function: Find
inputs: Kuala Lumpur
function: QueryRelation
dependencies: 3
4