Question: How many independent cities with a population other than 9000000 are the capital of New Mexico, which is 315194 square kilometers in size?
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> "independent city" . ?e_1 <capital> ?e . ?e_1 <pred:name> "New Mexico" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "315194"^^xsd:double .  ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v != "9000000"^^xsd:double ) .  }
Program:
function: Find
inputs: New Mexico
function: FilterNum
dependencies: 0
inputs: area
315194 square kilometre
=
function: Relate
dependencies: 1
inputs: capital
forward
function: FilterConcept
dependencies: 2
inputs: independent city
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
9000000
!=
function: FilterConcept
dependencies: 5
inputs: independent city
function: And
dependencies: 3
6
function: Count
dependencies: 7
Answer: 0