What is {inventor or discoverer} of {Messier 87}, that has {gender identity} is {male} ?
What is the name of the inventor or discoverer of Messier 87 whose gender is male?
What is the name of the inventor or discoverer of Messier 87 whose gender is male?
SELECT ?f WHERE { ?f property:sex_or_gender resource:male . resource:Messier_87 property:discoverer_or_inventor ?f }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q14041> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P61>. ?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:Q14041 wdt:P61 ?answer . ?answer wdt:P21 wd:Q6581097}
Charles Messier