Question: How many United States cities have a population that is not equal to 4800000?
Choices:
497
498
499
500
501
502
503
504
505
506
Answer: 497
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "4800000"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
4800000
!=
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Count
dependencies: 2