Question: What is the number of metropolitan boroughs whose capital is Solihull (having a population of 206700) or whose capital is Manchester (having the TOID 4000000074567025)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
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> "Solihull" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "206700"^^xsd:double .  } UNION { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Manchester" . ?e_1 <TOID> ?pv . ?pv <pred:value> "4000000074567025" .  } }
Program:
function: Find
inputs: Solihull
function: FilterNum
dependencies: 0
inputs: population
206700
=
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: metropolitan borough
function: Find
inputs: Manchester
function: FilterStr
dependencies: 4
inputs: TOID
4000000074567025
function: Relate
dependencies: 5
inputs: capital of
forward
function: FilterConcept
dependencies: 6
inputs: metropolitan borough
function: Or
dependencies: 3
7
function: Count
dependencies: 8