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