Who all held a position when Gough Whitlam was the prime minister?
SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/primeMinister> <http://dbpedia.org/resource/Gough_Whitlam> }
Gough_Whitlam