Question: How many software do we know with Stock Exchange tag of https://stackoverflow.com/tags/windows-xp or with macOS as their operating system?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "software" .  { ?e <Stack_Exchange_tag> ?pv . ?pv <pred:value> "https://stackoverflow.com/tags/windows-xp" .  } UNION { ?e <operating_system> ?e_1 . ?e_1 <pred:name> "macOS" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Stack Exchange tag
https://stackoverflow.com/tags/windows-xp
function: FilterConcept
dependencies: 1
inputs: software
function: Find
inputs: macOS
function: Relate
dependencies: 3
inputs: operating system
backward
function: FilterConcept
dependencies: 4
inputs: software
function: Or
dependencies: 2
5
function: Count
dependencies: 6