Question: What is the name of the country with the smallest calling code that South Africa exports to?
Answer(s):
answer: Angola

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.statistical_region.places_exported_to ?y .
?y ns:location.imports_and_exports.exported_to ?x .
?x ns:location.country.calling_code ?num .
}
ORDER BY xsd:integer(?num) LIMIT 1