Question: What is the relationship between Benin to Niger?
Choices: league
place of birth
location of discovery
shares border with
foundational text
subsidiary
legislative body
operator
donated by
place of burial
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Benin" . ?e_2 <pred:name> "Niger" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Benin
function: Find
inputs: Niger
function: QueryRelation
dependencies: 0
1
Answer: shares border with