Question: How many astronomical object types are a part of the Solar System or have the Dewey Decimal Classification 523.112?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "astronomical object type" .  { ?e_1 <has_part> ?e . ?e_1 <pred:name> "Solar System" .  } UNION { ?e <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "523.112" .  } }
Program:
function: Find
inputs: Solar System
function: Relate
dependencies: 0
inputs: has part
forward
function: FilterConcept
dependencies: 1
inputs: astronomical object type
function: FindAll
function: FilterStr
dependencies: 3
inputs: Dewey Decimal Classification
523.112
function: FilterConcept
dependencies: 4
inputs: astronomical object type
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2