Question: How many organizations have a patronage greater than 1210000 or not 5100000?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "organization" .  { ?e <patronage> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "1210000"^^xsd:double ) .  } UNION { ?e <patronage> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "5100000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: patronage
1210000
>
function: FilterConcept
dependencies: 1
inputs: organization
function: FindAll
function: FilterNum
dependencies: 3
inputs: patronage
5100000
!=
function: FilterConcept
dependencies: 4
inputs: organization
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 7