Question: How many county towns border Halifax whose OS grid reference is SE090254?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county town" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Halifax" . ?e_1 <OS_grid_reference> ?pv . ?pv <pred:value> "SE090254" .   }
Program:
function: Find
inputs: Halifax
function: FilterStr
dependencies: 0
inputs: OS grid reference
SE090254
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: county town
function: Count
dependencies: 3