SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Martin_Ferguson> <http://dbpedia.org/property/primeminister> ?uri. <http://dbpedia.org/resource/Mike_Kelly_(Australian_politician)> <http://dbpedia.org/property/primeminister> ?uri . }
Martin Ferguson and Mike Kelly served under which aussie PM?
SELECT DISTINCT ?i WHERE { resource:Mike_Kelly_(_Australian_politician) property:primeminister ?i . . resource:Martin_Ferguson property:primeminister ?i }
Julia Gillard, Kevin Rudd
The prime ministers of both Martin Ferguson and Mike Kelly are [Julia Gillard, Kevin Rudd].
Prime Ministers Martin Ferguson and Mike Kelly served under [Julia Gillard, Kevin Rudd].
The primeminister they served under are [Julia Gillard, Kevin Rudd].
They served under PM named [Julia Gillard, Kevin Rudd].