SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/William_Deane> <http://dbpedia.org/ontology/primeMinister> ?uri. <http://dbpedia.org/resource/Mark_Latham> <http://dbpedia.org/property/primeminister> ?uri}
Who is the common prime minster of William Deaner and mark Latham?
SELECT DISTINCT ?r WHERE { resource:William_Deane property:prime_minister ?r . resource:Mark_Latham property:primeminister ?r }
John Howard
The prime minister of both William Deane and Mark Latham is [John Howard].
The prime minister of William Dean and Mark Latham is [John Howard].
The prime minister of the William Deane and primeminister of the Mark Latham is [John Howard].
William Dean's prime minister and Mark Latham's prime minister is [John Howard].