What is {spouse} of {Rosa Luxemburg} that is {end time} is {1903-0-0} ?
Who was married to Rosa Luxembourg until 1903?
Who was Rosa Luxemburg's spouse until 1903?
SELECT ?j WHERE { ?e property:end_time ?w . FILTER ( CONTAINS ( YEAR ( ?w ) , '1903' ) ) . ?e property:spouse ?j . resource:Rosa_Luxemburg property:spouse ?e }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7231> .
?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> <1903-0-0>
} 

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