Question: Is Egypts largest city also its capital?
SPARQL:
PREFIX res: <http://dbpedia.org/resource/> PREFIX onto: <http://dbpedia.org/ontology/> ASK WHERE { res:Egypt onto:largestCity ?large . res:Egypt onto:capital ?capital . FILTER (?large = ?capital) }