Question: How many landforms are located in or next to the sea having a basin country that is Puerto Rico (whose ISO 3166-1 alpha-3 code is PRI)?
Choices: 6
7
8
9
10
11
12
13
14
15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "landform" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sea" . ?e_1 <basin_country> ?e_2 . ?e_2 <pred:name> "Puerto Rico" . ?e_2 <ISO_3166-1_alpha-3_code> ?pv . ?pv <pred:value> "PRI" .   }
Program:
function: Find
inputs: Puerto Rico
function: FilterStr
dependencies: 0
inputs: ISO 3166-1 alpha-3 code
PRI
function: Relate
dependencies: 1
inputs: basin country
backward
function: FilterConcept
dependencies: 2
inputs: sea
function: Relate
dependencies: 3
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 4
inputs: landform
function: Count
dependencies: 5
Answer: 6