Question: Count the number of people became famous for when Andrew Jackson was a commander ?
SPARQL query:
PREFIX res: <http://dbpedia.org/resource/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT COUNT(?uri) WHERE { ?x onto:commander <http://dbpedia.org/resource/Andrew_Jackson> . ?uri onto:knownFor ?x . }