What is {spouse} of {Carl Akeley} that is {end time} is {1923-0-0} ?
Tell me the name of Akeley's spouse until 1923.
Who was Carl Akeley's spouse until 1923?
SELECT ?h WHERE { ?n property:spouse ?h . resource:Carl_Akeley property:spouse ?n . ?n property:end_time ?h . FILTER ( CONTAINS ( YEAR ( ?h ) , '1923' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1037711> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1923-0-0>
} 

SELECT ?obj WHERE { wd:Q1037711 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1923')) }