What is {child} of {Frederick William I of Prussia} and {date of death}
Who is the baby of Frederick William I of Prussia and when did he die?
Who is the child of Frederick William I of Prussia and when did he die?
SELECT ?b ?o WHERE { resource:Frederick_William_I_of_Prussia property:child ?a . ?a property:child ?o . ?a property:date_of_death ?b . }
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 . }