SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Tim_Mathieson> <http://dbpedia.org/ontology/partner> ?uri. <http://dbpedia.org/resource/Mike_Kelly_(Australian_politician)> <http://dbpedia.org/property/primeminister> ?uri}
Which partner of Tim Mathieson is also the primeminister of Mike Kelly (Australian politician) ?
SELECT DISTINCT ?q WHERE { resource:Mike_Kelly_(_Australian_politician) property:primeminister ?q . resource:Tim_Mathieson property:partner ?q }
Julia Gillard
The partner of Tim Mathieson and prime minister of Mike Kelly (Australian politician) is [Julia Gillard].
Tim Mathieson's partner and Prime Minister Mike Kelly (an Australian politician) is [Julia Gillard].