What is {child} of {Pedro I} and {date of birth}
Who is the child of Pedro I and when was he born?
Who is the child of Pedro I and when was he born?
SELECT ?g ?j WHERE { ?t property:date_of_birth ?g . . resource:Pedro_I_of_Brazil property:child ?t . ?t property:child ?j }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q939> . ?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:Q939 p:P40 ?s . ?s ps:P40 ?obj . ?s pq:P569 ?value1 . }