Question: How many metropolitan boroughs, have the capital Leeds (whose OS grid reference is SE297338) or are located in England (that contains Lincolnshire)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Leeds
function: FilterStr
dependencies: 0
inputs: OS grid reference
SE297338
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: metropolitan borough
function: Find
inputs: Lincolnshire
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
forward
function: Find
inputs: England
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 8
inputs: metropolitan borough
function: Or
dependencies: 3
9
function: Count
dependencies: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan borough" .  { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Leeds" . ?e_1 <OS_grid_reference> ?pv . ?pv <pred:value> "SE297338" .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "England" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Lincolnshire" .  } }
Answer: 2