SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Nice_&_Smooth> <http://dbpedia.org/ontology/associatedBand> ?uri. <http://dbpedia.org/resource/Same_Song_(Digital_Underground_song)> <http://dbpedia.org/property/writer> ?uri . }
Which collaborator of Nice and Smooth wrote Same Song ?
SELECT DISTINCT ?p WHERE { resource:Same_Song_(_Digital_Underground_song) property:writer ?p . . resource:Nice_&_Smooth property:associated_band ?p }
Tupac Shakur
[Tupac Shakur] is the associated band of Nice & Smooth and writer of the Same Song (Digital Underground song).
[Tupac Shakur] wrote Same Song (Digital Underground Song).