What is {country of citizenship} of {Michael Faraday} that is {end time} is {1801-1-1} ?
Until January 1st, 1801, what was Michael Faraday's citizenship?
What was Michael Faraday's citizenship until 1801-1-1?
SELECT ?r WHERE { FILTER ( CONTAINS ( YEAR ( ?u ) , '1801' ) ) . resource:Michael_Faraday property:country_of_citizenship ?t . ?t property:country_of_citizenship ?r . ?t property:end_time ?u }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8750> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P27> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1801-1-1>
} 

SELECT ?obj WHERE { wd:Q8750 p:P27 ?s . ?s ps:P27 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1801')) }