Question: How is Algiers, capital of Algeria, related to Dakar, twinned administrative body of Marseille?
Choices:
is a list of
filmography
screenwriter
twinned administrative body
musical conductor
official symbol
next lower rank
collection
edition or translation of
has part
Program:
function: Find
inputs: Algeria
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Algiers
function: And
dependencies: 1
2
function: Find
inputs: Marseille
function: Relate
dependencies: 4
inputs: twinned administrative body
forward
function: Find
inputs: Dakar
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Algiers" . ?e_3 <capital> ?e_1 . ?e_3 <pred:name> "Algeria" . ?e_2 <pred:name> "Dakar" . ?e_4 <twinned_administrative_body> ?e_2 . ?e_4 <pred:name> "Marseille" . ?e_1 ?p ?e_2 .  }
Answer: twinned administrative body