Question: What is the connection between the Gold Coast (that is replaced by Ghana) and Accra?
Choices:
this taxon is source of
public holiday
capital
ancestral home
tributary
narrator
enclave within
contains settlement
coextensive with
opposite of
Program:
function: Find
inputs: Ghana
function: Relate
dependencies: 0
inputs: replaced by
backward
function: Find
inputs: Gold Coast
function: And
dependencies: 1
2
function: Find
inputs: Accra
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gold Coast" . ?e_1 <replaced_by> ?e_3 . ?e_3 <pred:name> "Ghana" . ?e_2 <pred:name> "Accra" . ?e_1 ?p ?e_2 .  }
Answer: capital