What is {date of birth} and {date of death} of {{Isabella I of Castile} has {child} as {Joanna of Castile}}
When was Joanna of Castile, child of Isabella I of Castille, born and when did she pass on?
When was Joanna of Castile, child of Isabella I of Castille, born and when did she die?
SELECT ?c ?z WHERE { ?c property:date_of_birth ?c . ?c property:child resource:Joanna_of_Castile . resource:Isabella_I_of_Castile property:child ?c . ?c property:date_of_death ?z }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q45859> . ?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/Q171136>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q45859 p:P40 ?s . ?s ps:P40 wd:Q171136 . ?s pq:P569 ?value1 . ?s pq:P570 ?value2 }