Question: How is Western Cape related to Eastern Cape?
Choices:
diplomatic relation
office held by head of the organisation
place of birth
art director
military branch
newspaper format
shares border with
appears in the form of
diaspora
head of government
Program:
function: Find
inputs: Western Cape
function: Find
inputs: Eastern Cape
function: QueryRelation
dependencies: 0
1
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Western Cape" . ?e_2 <pred:name> "Eastern Cape" . ?e_1 ?p ?e_2 .  }
Answer: shares border with