Question: Tell me the number of mountain range that connects with Iberian Peninsula or that is located in Newfoundland and Labrador
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> "mountain range" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Newfoundland and Labrador" .  } UNION { ?e_1 <connects_with> ?e . ?e_1 <pred:name> "Iberian Peninsula" .  } }
Program:
function: Find
inputs: Newfoundland and Labrador
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: mountain range
function: Find
inputs: Iberian Peninsula
function: Relate
dependencies: 3
inputs: connects with
forward
function: FilterConcept
dependencies: 4
inputs: mountain range
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2