Question: How many natural languages are the official language of the administrative territorial entity that is named after Hampshire (that shares a border with Wiltshire)?
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> "natural language" . ?e_1 <official_language> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "administrative territorial entity" . ?e_1 <named_after> ?e_3 . ?e_3 <pred:name> "Hampshire" . ?e_3 <shares_border_with> ?e_4 . ?e_4 <pred:name> "Wiltshire" .   }
Program:
function: Find
inputs: Wiltshire
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Hampshire
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: Relate
dependencies: 5
inputs: official language
forward
function: FilterConcept
dependencies: 6
inputs: natural language
function: Count
dependencies: 7
Answer: 0