Question: What is the number of constitutional monarchy with the nominal GDP over 1110000000000 Czech koruna or that has the Human Development Index is greater than 0.6
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> "constitutional monarchy" .  { ?e <nominal_GDP> ?pv . ?pv <pred:unit> "Czech koruna" . ?pv <pred:value> ?v . FILTER ( ?v > "1110000000000"^^xsd:double ) .  } UNION { ?e <Human_Development_Index> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "0.6"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: nominal GDP
1110000000000 Czech koruna
>
function: FilterConcept
dependencies: 1
inputs: constitutional monarchy
function: FindAll
function: FilterNum
dependencies: 3
inputs: Human Development Index
0.6
>
function: FilterConcept
dependencies: 4
inputs: constitutional monarchy
function: Or
dependencies: 2
5
function: Count
dependencies: 6