What is the {superhero} for {sidekick of} of {Batman}
What is Batman's sidekick's name?
Name a sidekick of Batman
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:superhero . ?n property:sidekick_of resource:Batman }
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/Q2695156> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q188784> } 
 select distinct ?sbj where { ?sbj wdt:P2546 wd:Q2695156 . ?sbj wdt:P31 wd:Q188784 } 