What is the {human} for {composer} of {My Fair Lady}
Who is the {human} for {composer} of {My Reasonable Woman}
Who is the {human} for {composer} of {My Fair Lady}
SELECT DISTINCT ?b WHERE { resource:My_Fair_Lady property:composer ?b . ?b rdf:type ontology:human }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q591943> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P86> . ?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/Q5> } 
 select distinct ?obj where { wd:Q591943 wdt:P86 ?obj . ?obj wdt:P31 wd:Q5 } 
Frederick Loewe