what is the {type of kinship} for {Frederick II of Prussia} has {relative} as {Frederick, Margrave of Brandenburg-Bayreuth} ?
How were Frederick II of Prussia and Frederick, Margrave of Brandenburg-Bayreuth related?
What is the relationship of Frederick II of Prussia to Frederick, Margrave of Brandenburg-Bayreuth?
SELECT ?f WHERE { ?j property:relative resource:Frederick_of_Brandenburg-Bayreuth . resource:Frederick_II_of_Prussia property:relative ?j . ?j property:kinship_to_subject ?f }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q33550> .
?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> <http://wikidata.dbpedia.org/resource/Q213797> .
?statement <http://www.wikidata.org/entity/P1039> ?value. 
} 

SELECT ?value WHERE { wd:Q33550 p:P1038 ?s . ?s ps:P1038 wd:Q213797 . ?s pq:P1039 ?value}