Question: How many chemical compounds whose density is not 3.2 grams per cubic centimetre?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "chemical compound" . ?e <density> ?pv . ?pv <pred:unit> "gram per cubic centimetre" . ?pv <pred:value> ?v . FILTER ( ?v != "3.2"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: density
3.2 gram per cubic centimetre
!=
function: FilterConcept
dependencies: 1
inputs: chemical compound
function: Count
dependencies: 2
Answer: 11