Question: What is the number of metropolitan boroughs having the ISO 3166-2 code GB-SOL or a population that is over 400?
Choices: 16
17
18
19
20
21
22
23
24
25
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan borough" .  { ?e <ISO_3166-2_code> ?pv . ?pv <pred:value> "GB-SOL" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "400"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
GB-SOL
function: FilterConcept
dependencies: 1
inputs: metropolitan borough
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
400
>
function: FilterConcept
dependencies: 4
inputs: metropolitan borough
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 16