What is {characters} of {Faust}, that has {female} is {male} ?
Which male character is played by a lady in Faust?
Which male character is played by a woman in Faust?
SELECT ?g WHERE { resource:Faust property:characters ?g . ?g property:sex_or_gender resource:male }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q29478> . ?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> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P21> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q6581097> . }
SELECT ?answer WHERE { wd:Q29478 wdt:P674 ?answer . ?answer wdt:P21 wd:Q6581097}
Heinrich Faust Mephistopheles