Question: How many constitutional monarchies have a population less than 7000000000 and are a member of the African Union?
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 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "7000000000"^^xsd:double ) . ?e <member_of> ?e_1 . ?e_1 <pred:name> "African Union" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
7000000000
<
function: FilterConcept
dependencies: 1
inputs: constitutional monarchy
function: Find
inputs: African Union
function: Relate
dependencies: 3
inputs: member of
backward
function: FilterConcept
dependencies: 4
inputs: constitutional monarchy
function: And
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2