Question: How many astronomical-object types have the Iconclass notation of 24D2 or usually have Wales as a property?
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> "astronomical object type" .  { ?e <Iconclass_notation> ?pv . ?pv <pred:value> "24D2" .  } UNION { ?e <properties_for_this_type> ?e_1 . ?e_1 <pred:name> "Wales" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Iconclass notation
24D2
function: FilterConcept
dependencies: 1
inputs: astronomical object type
function: Find
inputs: Wales
function: Relate
dependencies: 3
inputs: properties for this type
backward
function: FilterConcept
dependencies: 4
inputs: astronomical object type
function: Or
dependencies: 2
5
function: Count
dependencies: 6