Question: How many astronomical object types have as a child the astronomical body Earth (whose population is 5000000000) or have the Iconclass notation 24D2?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "astronomical object type" .  { ?e <child_astronomical_body> ?e_1 . ?e_1 <pred:name> "Earth" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "5000000000"^^xsd:double .  } UNION { ?e <Iconclass_notation> ?pv . ?pv <pred:value> "24D2" .  } }
Program:
function: Find
inputs: Earth
function: FilterNum
dependencies: 0
inputs: population
5000000000
=
function: Relate
dependencies: 1
inputs: child astronomical body
backward
function: FilterConcept
dependencies: 2
inputs: astronomical object type
function: FindAll
function: FilterStr
dependencies: 4
inputs: Iconclass notation
24D2
function: FilterConcept
dependencies: 5
inputs: astronomical object type
function: Or
dependencies: 3
6
function: Count
dependencies: 7