Question: Which city has the local dialing code 01228 and is contained by Carlisle (whose mean age is 41.3 annum)?
Choices:
Trieste
Cairo
Abidjan
Bergen
Cork
Carlisle
Kingston
Chihuahua
Kilkenny
Santo Domingo
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
01228
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: Carlisle
function: FilterNum
dependencies: 3
inputs: mean age
41.3 annum
=
function: Relate
dependencies: 4
inputs: contains settlement
forward
function: FilterConcept
dependencies: 5
inputs: city
function: And
dependencies: 2
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <local_dialing_code> ?pv . ?pv <pred:value> "01228" . ?e_1 <contains_settlement> ?e . ?e_1 <pred:name> "Carlisle" . ?e_1 <mean_age> ?pv_1 . ?pv_1 <pred:unit> "annum" . ?pv_1 <pred:value> "41.3"^^xsd:double .  }
Answer: Carlisle