What is the {musical} for {based on} of {Candide}
Which melodic is dependent on Candide?
Which musical is based off of Candide?
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:musical . ?g property:based_on resource:Candide }
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/P144> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q215894> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q2743> } 
 select distinct ?sbj where { ?sbj wdt:P144 wd:Q215894 . ?sbj wdt:P31 wd:Q2743 } 
Candide