Question: Is the GSS code (2011) of  administrative territorial entity that shares border with Newport (the one that shares border with Monmouthshire) equal to W06000021 ?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Newport" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Monmouthshire" .  ?e <GSS_code_(2011)> ?pv . ?pv <pred:value> "W06000021" .  }
Program:
function: Find
inputs: Monmouthshire
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Newport
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: QueryAttr
dependencies: 5
inputs: GSS code (2011)
function: VerifyStr
dependencies: 6
inputs: W06000021