SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Madagascar:_Operation_Penguin> <http://dbpedia.org/property/artist> ?uri. <http://dbpedia.org/resource/He's_a_Pirate> <http://dbpedia.org/property/writer> ?uri}
Which artist of Madagascar: Operation Penguin is also the writer of He's a Pirate ?
SELECT DISTINCT ?l WHERE { resource:He's_a_Pirate property:writer ?l . resource:Madagascar:_Operation_Penguin property:artist ?l }
Hans Zimmer
[Hans Zimmer] is the artist of Madagascar: Operation Penguin and writer of He's a Pirate.
[Hans Zimmer] is an artist in Madagascar: Operation Penguin and the author of He is a Pirate.
The Artist of the Madagascar: Operation Penguin and writer of the He's a Pirate is [Hans Zimmer].
[Hans Zimmer] is the author of both The artist of Madagascar: Operation Penguin and The Pirate Man.