Question: How many port cities are a basin country of the Caribbean Sea and that borders Sydney?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Caribbean Sea
function: Relate
dependencies: 0
inputs: basin country
forward
function: FilterConcept
dependencies: 1
inputs: port city
function: Find
inputs: Sydney
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: port city
function: And
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "port city" . ?e_1 <basin_country> ?e . ?e_1 <pred:name> "Caribbean Sea" .  ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "Sydney" .  }
Answer: 0