Question: How many port cities are counted as a twinned administrative body of Singapore (the one that has a diplomatic relation with Taiwan)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Taiwan
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: Find
inputs: Singapore
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 4
inputs: port city
function: Relate
dependencies: 5
inputs: capital
backward
function: FilterConcept
dependencies: 6
inputs: port city
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "port city" . ?e <capital> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "port city" . ?e_1 <twinned_administrative_body> ?e_3 . ?e_3 <pred:name> "Singapore" . ?e_3 <diplomatic_relation> ?e_4 . ?e_4 <pred:name> "Taiwan" .   }
Answer: 1