Question: How many types of astronomical objects have a volume exceeding 250000000 cubic kilometres and a temperature other than 60 degrees Fahrenheit?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "astronomical object type" . ?e <volume_as_quantity> ?pv . ?pv <pred:unit> "cubic kilometre" . ?pv <pred:value> ?v . FILTER ( ?v > "250000000"^^xsd:double ) . ?e <temperature> ?pv_1 . ?pv_1 <pred:unit> "degree Fahrenheit" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 != "60"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: volume as quantity
250000000 cubic kilometre
>
function: FilterConcept
dependencies: 1
inputs: astronomical object type
function: FindAll
function: FilterNum
dependencies: 3
inputs: temperature
60 degree Fahrenheit
!=
function: FilterConcept
dependencies: 4
inputs: astronomical object type
function: And
dependencies: 2
5
function: Count
dependencies: 6