What is {owned by} of {L'Origine du monde} that is {end time} is {1868-1-1} ?
L'Origne Du Monde as owned what on 1/1/1868
What was owned by L'Origne du monde as at 1868-1-1?
SELECT ?n WHERE { ?t property:end_time ?b . resource:L'Origine_du_monde property:owned_by ?t . ?t property:owned_by ?n . FILTER ( CONTAINS ( YEAR ( ?b ) , '1868' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q334138> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P127> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1868-1-1>
} 

SELECT ?obj WHERE { wd:Q334138 p:P127 ?s . ?s ps:P127 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1868')) }