Question: Which chemical elements have element symbol MG or are not manganese?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: element symbol
Mg
function: FilterConcept
dependencies: 1
inputs: chemical element
function: Find
inputs: manganese
function: Relate
dependencies: 3
inputs: different from
forward
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 <element_symbol> ?pv . ?pv <pred:value> "Mg" .  } UNION { ?e_1 <different_from> ?e . ?e_1 <pred:name> "manganese" .  } }
Answer: 1