Question: How many types of astronomical objects contain an interstellar cloud that comprises the part of a galaxy ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "astronomical object type" . ?e_1 <part_of> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "interstellar cloud" . ?e_1 <part_of> ?e_2 . ?e_2 <pred:name> "galaxy" .   }
Program:
function: Find
inputs: galaxy
function: Relate
dependencies: 0
inputs: part of
backward
function: FilterConcept
dependencies: 1
inputs: interstellar cloud
function: Relate
dependencies: 2
inputs: part of
forward
function: FilterConcept
dependencies: 3
inputs: astronomical object type
function: Count
dependencies: 4
Answer: 1