Question: How many constitutional monarchies have a nominal GDP equal to 18500000 United States dollars or have an inflation rate less than 7400 percentage?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constitutional monarchy" .  { ?e <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "18500000"^^xsd:double .  } UNION { ?e <inflation_rate> ?pv . ?pv <pred:unit> "percentage" . ?pv <pred:value> ?v . FILTER ( ?v < "7400"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: nominal GDP
18500000 United States dollar
=
function: FilterConcept
dependencies: 1
inputs: constitutional monarchy
function: FindAll
function: FilterNum
dependencies: 3
inputs: inflation rate
7400 percentage
<
function: FilterConcept
dependencies: 4
inputs: constitutional monarchy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3