Question: What ceremonial county of England that has the capital Preston (the one whose population is 141801), and shares a border with Cumbria?
Choices: Northumberland
Staffordshire
Somerset
Cumbria
Lancashire
Norfolk
County Durham
Essex
Warwickshire
Derbyshire
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Preston" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "141801"^^xsd:double .  ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "Cumbria" .  }
Program:
function: Find
inputs: Preston
function: FilterNum
dependencies: 0
inputs: population
141801
=
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: ceremonial county of England
function: Find
inputs: Cumbria
function: Relate
dependencies: 4
inputs: shares border with
forward
function: FilterConcept
dependencies: 5
inputs: ceremonial county of England
function: And
dependencies: 3
6
function: What
dependencies: 7
Answer: Lancashire