What is {child} of {Frederick William I of Prussia} and {date of death}
What is the name and death date of the child of Frederick William I of Prussia?
Who is the child of Frederick William I of Prussia and when did he die?
SELECT ?i ?v WHERE { resource:Frederick_William_I_of_Prussia property:child ?q . ?q property:child ?v . ?q property:date_of_death ?i . }
select distinct ?dataprop1 ?obj 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> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q105013 p:P40 ?s . ?s ps:P40 ?obj . ?s pq:P570 ?value1 . }