Question: How many republics have a nominal GDP below 14000000000000 Russian rubles or a population other than 59000?
Choices: 35
36
37
38
39
40
41
42
43
44
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" .  { ?e <nominal_GDP> ?pv . ?pv <pred:unit> "Russian ruble" . ?pv <pred:value> ?v . FILTER ( ?v < "14000000000000"^^xsd:double ) .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "59000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: nominal GDP
14000000000000 Russian ruble
<
function: FilterConcept
dependencies: 1
inputs: republic
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
59000
!=
function: FilterConcept
dependencies: 4
inputs: republic
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 35