Question: How many industries have a Windows XP edition or are followed by Solaris (programming language is C++)?
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 <has_edition> ?e_1 . ?e_1 <pred:name> "Windows XP" .  } UNION { ?e_1 <follows> ?e . ?e_1 <pred:name> "Solaris" . ?e_1 <programming_language> ?e_2 . ?e_2 <pred:name> "C++" .  } }
Program:
function: Find
inputs: Windows XP
function: Relate
dependencies: 0
inputs: has edition
backward
function: FilterConcept
dependencies: 1
inputs: industry
function: Find
inputs: C++
function: Relate
dependencies: 3
inputs: programming language
backward
function: Find
inputs: Solaris
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: follows
forward
function: FilterConcept
dependencies: 7
inputs: industry
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 1