Question: How many prime ministers did the predecessor of Duncan Sandys  serve?
SPARQL query:
PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
SELECT DISTINCT COUNT(?uri) WHERE { <http://dbpedia.org/resource/Duncan_Sandys> prop:successor ?x . ?x prop:primeminister ?uri . }