Question: What is the relationship between James Stewart (born in Edinburgh) and South Africa?
Choices: geographic distribution
country of citizenship
narrative role
distribution
league
godparent
conflict
license
officially opened by
father
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Stewart" . ?e_1 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Edinburgh" . ?e_2 <pred:name> "South Africa" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Edinburgh
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: James Stewart
function: And
dependencies: 1
2
function: Find
inputs: South Africa
function: QueryRelation
dependencies: 3
4
Answer: country of citizenship