What is the {extended play} for {named after} of {David Bowie}
David Bowie was named after what play?
Which play is named after David Bowie?
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:extended_play . ?o property:named_after resource:David_Bowie }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P138> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q5383> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q169930> } 
 select distinct ?sbj where { ?sbj wdt:P138 wd:Q5383 . ?sbj wdt:P31 wd:Q169930 } 
Bowi