Question: How many Netherlands provinces contain Amsterdam (the one that is the formation location of KLM)?
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> "province of the Netherlands" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Amsterdam" . ?e_2 <location_of_formation> ?e_1 . ?e_2 <pred:name> "KLM" .   }
Program:
function: Find
inputs: KLM
function: Relate
dependencies: 0
inputs: location of formation
forward
function: Find
inputs: Amsterdam
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: province of the Netherlands
function: Count
dependencies: 5
Answer: 1