What is the {theatrical character} for {characters} of {Hamlet}
What is the title of the showy character of Hamlet?
What is the name of the theatrical character of Hamlet?
SELECT DISTINCT ?g WHERE { resource:Hamlet property:characters ?g . ?g rdf:type ontology:theatrical_character }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41567> . ?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> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3375722> } 
 select distinct ?obj where { wd:Q41567 wdt:P674 ?obj . ?obj wdt:P31 wd:Q3375722 } 
Gertrude Polonius Yorick Ophelia King Claudius The Ghost Prince Hamlet Laertes Fortinbras Horatio Osric Rosencrantz Voltemand Guildenstern Marcellus Cornelius Francisco Reynaldo Bernardo First Player Second Player Fourth Player A Captain Third Player Priest Sailor I Sailor II