Question: How many Alabama counties with a population size other than 0.0 contain the administrative division Ames?
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> "county of Alabama" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "0.0"^^xsd:double ) . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Ames" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
0.0
!=
function: FilterConcept
dependencies: 1
inputs: county of Alabama
function: Find
inputs: Ames
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: county of Alabama
function: And
dependencies: 2
5
function: Count
dependencies: 6
Answer: 0