Question: How many currencies with PermID 500186 are valued differently than 0.4 USD?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "currency" . ?e <PermID> ?pv . ?pv <pred:value> "500186" . ?e <price> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> ?v . FILTER ( ?v != "0.4"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: PermID
500186
function: FilterConcept
dependencies: 1
inputs: currency
function: FindAll
function: FilterNum
dependencies: 3
inputs: price
0.4 United States dollar
!=
function: FilterConcept
dependencies: 4
inputs: currency
function: And
dependencies: 2
5
function: Count
dependencies: 6