Question: How many software programs preceded the operating system that came after Windows Vista?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "software" . ?e_1 <follows> ?e . ?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: follows
forward
function: FilterConcept
dependencies: 3
inputs: software
function: Count
dependencies: 4