SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Graham_Richardson> <http://dbpedia.org/ontology/primeMinister> ?uri. <http://dbpedia.org/resource/Bob_McMullan> <http://dbpedia.org/ontology/primeMinister> ?uri . }
Which common prime minister did Graham Richardson and Bon McMullan serve ?
SELECT DISTINCT ?x WHERE { resource:Graham_Richardson property:prime_minister ?x . resource:Bob_Mc_Mullan property:prime_minister ?x . }
Paul Keating
The prime minister of both Graham Richardson and Bob McMullan is [Paul Keating].
The common prime minister of Graham Richardson and Bob McMullan is [Paul Keating].
The prime minister of them is [Paul Keating].
Their prime minister is [Paul Keating].