Question: Which administrative territorial entity that is not 3200 meters above sea level is the capital of South Africa?
Choices: East Java
Norristown
Bloemfontein
African Union
Islamabad
Cape Town
Washoe County
Bern
Pretoria
Orange County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> ?v . FILTER ( ?v != "3200"^^xsd:double ) . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "South Africa" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: elevation above sea level
3200 metre
!=
function: FilterConcept
dependencies: 1
inputs: administrative territorial entity
function: Find
inputs: South Africa
function: Relate
dependencies: 3
inputs: capital of
backward
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: And
dependencies: 2
5
function: What
dependencies: 6
Answer: Pretoria