What is the {characters} and the {genre} of {Hamlet} ?
Give me the names of the characters and the genre in Hamlet?
What are the characters in Hamlet and what genre is it in?
SELECT ?w ?u WHERE { resource:Hamlet property:characters ?w . resource:Hamlet property:genre ?u }
 SELECT ?ans_1 ?ans_2 WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41567> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P674> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_1. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41567> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P136> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_2. } 
SELECT ?ans_1 ?ans_2 WHERE { wd:Q41567 wdt:P674 ?ans_1 . wd:Q41567 wdt:P136 ?ans_2 }
tragedy Gertrude tragedy Polonius tragedy Rosencrantz and Guildenstern tragedy Yorick tragedy Ophelia tragedy King Claudius tragedy The Ghost tragedy Prince Hamlet tragedy Laertes tragedy Fortinbras tragedy Horatio tragedy The Gravediggers tragedy Osric tragedy Rosencrantz tragedy Guildenstern tragedy Voltemand tragedy Cornelius tragedy Marcellus tragedy Bernardo tragedy Francisco tragedy Reynaldo tragedy First Player tragedy Second Player tragedy Third Player tragedy Fourth Player tragedy A Captain tragedy Priest tragedy Sailor I tragedy Sailor II