Question: How many mathematics have a Classification of Instructional Programs code 27.05 or are a part of mathematics?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "mathematics" .  { ?e <Classification_of_Instructional_Programs_code> ?pv . ?pv <pred:value> "27.05" .  } UNION { ?e <part_of> ?e_1 . ?e_1 <pred:name> "mathematics" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Classification of Instructional Programs code
27.05
function: FilterConcept
dependencies: 1
inputs: mathematics
function: Find
inputs: mathematics
function: Relate
dependencies: 3
inputs: part of
backward
function: FilterConcept
dependencies: 4
inputs: mathematics
function: Or
dependencies: 2
5
function: Count
dependencies: 6