Question: What are the number of industries that is a relative of Unix or that contains macOS ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "industry" .  { ?e <relative> ?e_1 . ?e_1 <pred:name> "Unix" .  } UNION { ?e_1 <part_of_the_series> ?e . ?e_1 <pred:name> "macOS" .  } }
Program:
function: Find
inputs: Unix
function: Relate
dependencies: 0
inputs: relative
backward
function: FilterConcept
dependencies: 1
inputs: industry
function: Find
inputs: macOS
function: Relate
dependencies: 3
inputs: part of the series
forward
function: FilterConcept
dependencies: 4
inputs: industry
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3