What is the {superhero} for {sidekick of} of {Superman}
Who is the sidekick of Superman
Who is the sidekick of Superman
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:superhero . ?o property:sidekick_of resource:Superman }
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/P2546> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q79015> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q188784> } 
 select distinct ?sbj where { ?sbj wdt:P2546 wd:Q79015 . ?sbj wdt:P31 wd:Q188784 } 