Question: How many census-designated places have 20814 as their postal code, and the population of more or less than 310 mil. people?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "census-designated place" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "310000000"^^xsd:double ) . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "20814" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
310000000
!=
function: FilterConcept
dependencies: 1
inputs: census-designated place
function: FindAll
function: FilterStr
dependencies: 3
inputs: postal code
20814
function: FilterConcept
dependencies: 4
inputs: census-designated place
function: And
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1