Question: Does the city which is the capital of Stirling (the one whose GSS code (2011) is S12000030), have an OS grid reference equal to NS795935?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Stirling" . ?e_1 <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "S12000030" . ?e <OS_grid_reference> ?pv . ?pv <pred:value> "NS795935" .  }
Program:
function: Find
inputs: Stirling
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
S12000030
function: Relate
dependencies: 1
inputs: capital of
backward
function: FilterConcept
dependencies: 2
inputs: city
function: QueryAttr
dependencies: 3
inputs: OS grid reference
function: VerifyStr
dependencies: 4
inputs: NS795935
Answer: yes