What is {year of birth} of {marriage partner} of {James Cagney} ?
On which date, James Cagney's spouse was born
When was James Cagney's spouse born?
SELECT ?s WHERE { resource:James_Cagney property:spouse ?w . ?w property:date_of_birth ?s }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q94041> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P569> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q94041 wdt:P26 ?X . ?X wdt:P569 ?answer}
1899-06-19T00:00:00Z 1901-01-01T00:00:00Z