What is {relative} of {Augustus} that is {type of kinship} is {adoptive parent} ?
Who adopted Augustus?
Which Augustus relative was his adoptive parent?
SELECT ?g WHERE { ?m property:kinship_to_subject resource:adoptive_parent . ?m property:relative ?g . resource:Augustus property:relative ?m }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1405> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1038> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P1039> <http://wikidata.dbpedia.org/resource/Q20746742>
} 

SELECT ?obj WHERE { wd:Q1405 p:P1038 ?s . ?s ps:P1038 ?obj . ?s pq:P1039 wd:Q20746742 }