What is {date of birth} and {date of death} of {{Abigail Adams} has {child} as {John Quincy Adams}}
When did John Quincy Adams' wife Abigail Adams pass away?
What is the date of birth and death of Abigail Adams who has a son with John Quincy Adams?
SELECT ?d ?r WHERE { ?a property:date_of_birth ?d . resource:Abigail_Adams property:child ?a . ?a property:date_of_death ?r . ?a property:child resource:John_Quincy_Adams }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q206191> . ?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/Q11816>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q206191 p:P40 ?s . ?s ps:P40 wd:Q11816 . ?s pq:P569 ?value1 . ?s pq:P570 ?value2 }