What is {mother} and {date of death} of {{Pedro I} has {child} as {Princess Paula of Brazil}}
What are the name and death date of Pedro I's mother, and did she bear a child when she was known as Princess Paula of Brazil?
Who is the mother of Pedro I and when did she die and did she have a child as Princess Paula of Brazil
SELECT ?h ?g WHERE { ?d property:mother ?h . ?d property:date_of_death ?g . ?d property:child resource:Princess_Paula_of_Brazil . resource:Pedro_I_of_Brazil property:child ?d }
select distinct ?value1 ?value2 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> <http://wikidata.dbpedia.org/resource/Q4765169>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q939 p:P40 ?s . ?s ps:P40 wd:Q4765169 . ?s pq:P25 ?value1 . ?s pq:P570 ?value2 }