Question: How many chemical elements there are whose oxidation state is different to 0 or whose oxidation state is more than 10?
Choices:
7
8
9
10
11
12
13
14
15
16
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: oxidation state
0
!=
function: FilterConcept
dependencies: 1
inputs: chemical element
function: FindAll
function: FilterNum
dependencies: 3
inputs: oxidation state
10
>
function: FilterConcept
dependencies: 4
inputs: chemical element
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "chemical element" .  { ?e <oxidation_state> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "0"^^xsd:double ) .  } UNION { ?e <oxidation_state> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "10"^^xsd:double ) .  } }
Answer: 7