What is {date of birth} and {mother} of {{Pedro I} has {child} as {, Prince of Beira}}
When is the birthdate of the Prince of Beira and who is his mother?
When is the Prince of Beira's birthdate and who is his mother?
SELECT ?d ?n WHERE { resource:Pedro_I_of_Brazil property:child ?x . ?x property:child resource:João_Carlos,_Prince_of_Beira . ?x property:date_of_birth ?d . ?x property:mother ?n }
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/Q4765121>. ?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:Q4765121 . ?s pq:P569 ?value1 . ?s pq:P25 ?value2 }