What is {date of death} and {date of birth} of {{Isabella I of Castile} has {child} as {John, Prince of Asturias}}
What are the dates of birth and death of the Prince of Asturias, Isabel 1 of Castile and John?
What are the birth and death dates of Isabella 1 of Castile and John, Prince of Asturias' child?
SELECT ?k ?a WHERE { ?u property:child resource:John,_Prince_of_Asturias . resource:Isabella_I_of_Castile property:child ?u . ?u property:date_of_birth ?a . ?u property:date_of_death ?k }
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/Q381871>. ?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:Q381871 . ?s pq:P570 ?value1 . ?s pq:P569 ?value2 }