SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/album> <http://dbpedia.org/resource/Main_Course> . ?x <http://dbpedia.org/property/writer> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Single>}
Who wrote the singles on the Main Course?
SELECT DISTINCT ?w WHERE { ?f property:album resource:Main_Course . ?f property:writer ?w . ?f rdf:type ontology:Single }
Barry Gibb, Maurice Gibb, Robin Gibb
The writers of the singles on the Main Course album are [Barry Gibb, Maurice Gibb, Robin Gibb].
Main Course singles are written by [Barry Gibb, Maurice Gibb, Robin Gibb].