Question: How many counties in New York, located in the USA, have the number of inhabitants different from 4,900 ?
Choices:
41
42
43
44
45
46
47
48
49
50
Answer: 45
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "4900"^^xsd:double ) .  }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: county of New York
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
4900
!=
function: FilterConcept
dependencies: 4
inputs: county of New York
function: And
dependencies: 2
5
function: Count
dependencies: 6