Question: How many operating systems that is followed by Windows Vista or whose nickname is Vienna?
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> "operating system" .  { ?e <followed_by> ?e_1 . ?e_1 <pred:name> "Windows Vista" .  } UNION { ?e <nickname> ?pv . ?pv <pred:value> "Vienna" .  } }
Program:
function: Find
inputs: Windows Vista
function: Relate
dependencies: 0
inputs: followed by
backward
function: FilterConcept
dependencies: 1
inputs: operating system
function: FindAll
function: FilterStr
dependencies: 3
inputs: nickname
Vienna
function: FilterConcept
dependencies: 4
inputs: operating system
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2