Question: How many towns are the twinned administrative body of the large city that is located in Utrecht (that is an administrative division of Netherlands)?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "big city" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Utrecht" . ?e_3 <contains_administrative_territorial_entity> ?e_2 . ?e_3 <pred:name> "Netherlands" .   }
Program:
function: Find
inputs: Netherlands
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Utrecht
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: big city
function: Relate
dependencies: 5
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 6
inputs: town
function: Count
dependencies: 7
Answer: 1