what is the {appointed by} for {Robert F. Kennedy} has {position held} as {United States Attorney General} ?
Robert F. Kennedy was appointed by who?
Who appointed Robert F. Kennedy yo U.S. Attorney General?
SELECT ?b WHERE { ?b property:appointed_by ?b . ?b property:position_held resource:United_States_Attorney_General . resource:Robert_F._Kennedy property:position_held ?b }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q25310> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q636207> .
?statement <http://www.wikidata.org/entity/P748> ?value. 
} 

SELECT ?value WHERE { wd:Q25310 p:P39 ?s . ?s ps:P39 wd:Q636207 . ?s pq:P748 ?value}