Question: How many medications are there whose density is not 5.9 grams per cubic centimetre, or that are the opposite of a prescription drug ?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: density
5.9 gram per cubic centimetre
!=
function: FilterConcept
dependencies: 1
inputs: medication
function: Find
inputs: prescription drug
function: Relate
dependencies: 3
inputs: opposite of
forward
function: FilterConcept
dependencies: 4
inputs: medication
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "medication" .  { ?e <density> ?pv . ?pv <pred:unit> "gram per cubic centimetre" . ?pv <pred:value> ?v . FILTER ( ?v != "5.9"^^xsd:double ) .  } UNION { ?e_1 <opposite_of> ?e . ?e_1 <pred:name> "prescription drug" .  } }
Answer: 3