Question: How many county towns are the capital of Somerset (whose native label is Somerset) and have a population that is not equal to 0.5?
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 town" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Somerset" . ?e_1 <native_label> ?pv . ?pv <pred:value> "Somerset" .  ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v != "0.5"^^xsd:double ) .  }
Program:
function: Find
inputs: Somerset
function: FilterStr
dependencies: 0
inputs: native label
Somerset
function: Relate
dependencies: 1
inputs: capital of
backward
function: FilterConcept
dependencies: 2
inputs: county town
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
0.5
!=
function: FilterConcept
dependencies: 5
inputs: county town
function: And
dependencies: 3
6
function: Count
dependencies: 7
Answer: 0