Question: Does the administrative territorial entity that contains Hampstead (the one whose postal code is NW3), have a population not equal to 19000000?
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_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Hampstead" . ?e_1 <postal_code> ?pv_1 . ?pv_1 <pred:value> "NW3" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "19000000"^^xsd:double ) .  }
Program:
function: Find
inputs: Hampstead
function: FilterStr
dependencies: 0
inputs: postal code
NW3
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: administrative territorial entity
function: QueryAttr
dependencies: 3
inputs: population
function: VerifyNum
dependencies: 4
inputs: 19000000
!=