When was Princess Sophia Dorothea of Prussia, daughter of Frederick William I, born, and when did she die?
SELECT ?value1 ?value2 WHERE { wd:Q105013 p:P40 ?s . ?s ps:P40 wd:Q62025 . ?s pq:P570 ?value1 . ?s pq:P569 ?value2 }
frederick william i of prussia: Q105013 princess sophia dorothea of prussia: Q62025