What is the {opera} for {based on} of {Candide}
What is the name of the opera based on candide?
Name the opera based on Candide.
SELECT DISTINCT ?i WHERE { ?i property:based_on resource:Candide . ?i rdf:type ontology:opera }
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/Q1344> } 
 select distinct ?sbj where { ?sbj wdt:P144 wd:Q215894 . ?sbj wdt:P31 wd:Q1344 } 
Candide