Question: What city is the capital of South Africa and has a population less than 987,007 people?
Answer(s):
answer: Bloemfontein
answer: Pretoria
answer: Cape Town

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.0hzlz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0hzlz ns:location.country.capital ?x .
?x ns:topic_server.population_number ?num .
FILTER (xsd:integer(?num) < 987007) . 
}