Question: How many independent cities have a population not equal to 9200 or are headed by a mayor?
Choices:
18
19
20
21
22
23
24
25
26
27
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
9200
!=
function: FilterConcept
dependencies: 1
inputs: independent city
function: Find
inputs: mayor
function: Relate
dependencies: 3
inputs: office held by head of government
backward
function: FilterConcept
dependencies: 4
inputs: independent city
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "9200"^^xsd:double ) .  } UNION { ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "mayor" .  } }
Answer: 22