What is the {music festival} for {based on} of {Eurovision Song Contest}
What music celebration was based on the Eurovision Melody Contest?
What music festival was based on the Eurovision Song Contest?
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:music_festival . resource:Eurovision_Song_Contest property:based_on ?h }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q276> . ?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> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q868557> } 
 select distinct ?obj where { wd:Q276 wdt:P144 ?obj . ?obj wdt:P31 wd:Q868557 } 
Sanremo Music Festival