Question: What is the number of constituional monarchies that are a part of North Africa or that have an inflation rate of under 560 percentage
Choices:
3
4
5
6
7
8
9
10
11
12
Program:
function: Find
inputs: North Africa
function: Relate
dependencies: 0
inputs: has part
forward
function: FilterConcept
dependencies: 1
inputs: constitutional monarchy
function: FindAll
function: FilterNum
dependencies: 3
inputs: inflation rate
560 percentage
<
function: FilterConcept
dependencies: 4
inputs: constitutional monarchy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constitutional monarchy" .  { ?e_1 <has_part> ?e . ?e_1 <pred:name> "North Africa" .  } UNION { ?e <inflation_rate> ?pv . ?pv <pred:unit> "percentage" . ?pv <pred:value> ?v . FILTER ( ?v < "560"^^xsd:double ) .  } }
Answer: 3