What is the {epic poem} for {characters} of {Rama}
Title the sonnet which comprises of Rama as the character
Name the poem which comprises of Rama as the character
SELECT DISTINCT ?t WHERE { ?t property:characters resource:Rama . ?t rdf:type ontology:epic_poem }
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/P674> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q160213> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q37484> } 
 select distinct ?sbj where { ?sbj wdt:P674 wd:Q160213 . ?sbj wdt:P31 wd:Q37484 } 
Ramakien