Question: How many administrative territorial entities maintain a diplomatic relation with the sovereign state with the capital Dakar (twin-town of Taipei) ?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Taipei
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Dakar
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital
backward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: Relate
dependencies: 5
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 6
inputs: administrative territorial entity
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <capital> ?e_2 . ?e_2 <pred:name> "Dakar" . ?e_3 <twinned_administrative_body> ?e_2 . ?e_3 <pred:name> "Taipei" .   }
Answer: 1