what is the {type of kinship} for {Sophia of Hanover} has {relative} as {Elizabeth Charlotte, Princess Palatine} ?
How are Sophia of Hanover and Elizabeth Charlotte, Princess Palatine associated with?
How are Sophia of Hanover and Elizabeth Charlotte, Princess Palatine related?
SELECT ?b WHERE { ?i property:relative resource:Elizabeth_Charlotte,_Princess_Palatine . ?i property:kinship_to_subject ?b . resource:Sophia_of_Hanover property:relative ?i }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q57224> .
?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/Q57221> .
?statement <http://www.wikidata.org/entity/P1039> ?value. 
} 

SELECT ?value WHERE { wd:Q57224 p:P1038 ?s . ?s ps:P1038 wd:Q57221 . ?s pq:P1039 ?value}