What is {country of citizenship} of {William Wordsworth} that is {end time} is {1801-1-1} ?
Which country was William Wordsworth a citizen of in 1801?
William Wordsworth was the citizen of which country in the year 1801?
SELECT ?n WHERE { ?o property:country_of_citizenship ?n . resource:William_Wordsworth property:country_of_citizenship ?o . ?o property:end_time ?w . FILTER ( CONTAINS ( YEAR ( ?w ) , '1801' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q45546> .
?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:Q45546 p:P27 ?s . ?s ps:P27 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1801')) }