Question: How many software products are part of FreeBSD or are developed by Apple?
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 <has_part> ?e . ?e_1 <pred:name> "FreeBSD" .  } UNION { ?e <developer> ?e_1 . ?e_1 <pred:name> "Apple" .  } }
Program:
function: Find
inputs: FreeBSD
function: Relate
dependencies: 0
inputs: has part
forward
function: FilterConcept
dependencies: 1
inputs: software
function: Find
inputs: Apple
function: Relate
dependencies: 3
inputs: developer
backward
function: FilterConcept
dependencies: 4
inputs: software
function: Or
dependencies: 2
5
function: Count
dependencies: 6