What is {date of death} and {date of birth} of {{Frederick William I of Prussia} has {child} as {Princess Sophia Dorothea of Prussia}}
When was Princess Sophia Dorothea of Prussia, girl of Frederick William I, born, and when did she die?
When was Princess Sophia Dorothea of Prussia, daughter of Frederick William I, born, and when did she die?
SELECT ?x ?n WHERE { resource:Frederick_William_I_of_Prussia property:child ?p . ?p property:child resource:Princess_Sophia_Dorothea_of_Prussia . ?p property:date_of_death ?x . ?p property:date_of_birth ?n }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q105013> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P40> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q62025>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q105013 p:P40 ?s . ?s ps:P40 wd:Q62025 . ?s pq:P570 ?value1 . ?s pq:P569 ?value2 }