Question: How many different software do we know that contains macOs or that is officially called Mac OS X?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "software" .  { ?e_1 <part_of_the_series> ?e . ?e_1 <pred:name> "macOS" .  } UNION { ?e <official_name> ?pv . ?pv <pred:value> "Mac OS X" .  } }
Program:
function: Find
inputs: macOS
function: Relate
dependencies: 0
inputs: part of the series
forward
function: FilterConcept
dependencies: 1
inputs: software
function: FindAll
function: FilterStr
dependencies: 3
inputs: official name
Mac OS X
function: FilterConcept
dependencies: 4
inputs: software
function: Or
dependencies: 2
5
function: Count
dependencies: 6