Question: What is the number of operating systems that has the updated method of academic major that is update method of iOS (this is subject to statement is iOS 5)
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "operating system" . ?e <update_method> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "academic major" . ?e_2 <update_method> ?e_1 . ?e_2 <pred:name> "iOS" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <update_method> ; <pred:fact_t> ?e_1 ] <relative_to> ?qpv . ?qpv <pred:value> "iOS 5" .   }
Program:
function: Find
inputs: iOS
function: Relate
dependencies: 0
inputs: update method
forward
function: QFilterStr
dependencies: 1
inputs: relative to
iOS 5
function: FilterConcept
dependencies: 2
inputs: academic major
function: Relate
dependencies: 3
inputs: update method
backward
function: FilterConcept
dependencies: 4
inputs: operating system
function: Count
dependencies: 5