Question: How many software products have the operating system edition that comes after Windows Vista?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "software" . ?e <has_edition> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "operating system" . ?e_2 <followed_by> ?e_1 . ?e_2 <pred:name> "Windows Vista" .   }
Program:
function: Find
inputs: Windows Vista
function: Relate
dependencies: 0
inputs: followed by
forward
function: FilterConcept
dependencies: 1
inputs: operating system
function: Relate
dependencies: 2
inputs: has edition
backward
function: FilterConcept
dependencies: 3
inputs: software
function: Count
dependencies: 4
Answer: 1