Question: Which city  is the capital of Uganda and whose area is not equal to 9400000 square metre ?
Choices:
Worcester
Trieste
Algiers
Harare
Kingston
Abidjan
Kampala
Calgary
Kilkenny
Cork
Program:
function: Find
inputs: Uganda
function: Relate
dependencies: 0
inputs: capital
forward
function: FilterConcept
dependencies: 1
inputs: city
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
9400000 square metre
!=
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Uganda" .  ?e <area> ?pv . ?pv <pred:unit> "square metre" . ?pv <pred:value> ?v . FILTER ( ?v != "9400000"^^xsd:double ) .  }
Answer: Kampala