What is the {epic poem} for {present in work} of {Hermes}
Which epic poem is present in the work of Hermes?
Which is the epic poem that is present in the work of Hermes?
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:epic_poem . resource:Hermes property:present_in_work ?k }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41484> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1441> . ?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/Q37484> } 
 select distinct ?obj where { wd:Q41484 wdt:P1441 ?obj . ?obj wdt:P31 wd:Q37484 } 
Iliad Odyssey