Question: How many cities have diplomatic ties with the island nation occupying over 8500 sq. km.?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "island nation" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v > "8500"^^xsd:double ) .   }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
8500 square kilometre
>
function: FilterConcept
dependencies: 1
inputs: island nation
function: Relate
dependencies: 2
inputs: diplomatic relation
backward
function: FilterConcept
dependencies: 3
inputs: city
function: Count
dependencies: 4
Answer: 1