Question: How many democracies have the demonym Slovakiyänan or a nominal GDP greater than 15000000000000 Russian rubles?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" .  { ?e <demonym> ?pv . ?pv <pred:value> "Slovakiyänan" .  } UNION { ?e <nominal_GDP> ?pv . ?pv <pred:unit> "Russian ruble" . ?pv <pred:value> ?v . FILTER ( ?v > "15000000000000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
Slovakiyänan
function: FilterConcept
dependencies: 1
inputs: democracy
function: FindAll
function: FilterNum
dependencies: 3
inputs: nominal GDP
15000000000000 Russian ruble
>
function: FilterConcept
dependencies: 4
inputs: democracy
function: Or
dependencies: 2
5
function: Count
dependencies: 6