What is {child} of {Pedro I} and {mother}
When did child of Pedro I and mother?
When did child of Pedro I and mother?
SELECT ?c ?a WHERE { ?p property:mother ?c . . ?p property:child ?a . resource:Pedro_I_of_Brazil property:child ?p }
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:P25 ?value1 . }