What is {position held} of {Frederick North} that is {end time} is {1783-12-19} ?
Frederick North held what position when he passed on December 19,1783?
Name the position that Frederick North, who passed away on December 19, 1783, held.
SELECT ?b WHERE { FILTER ( CONTAINS ( YEAR ( ?t ) , '1783' ) ) . resource:Frederick_North property:position_held ?e . ?e property:position_held ?b . ?e property:end_time ?t }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q312593> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1783-12-19>
} 

SELECT ?obj WHERE { wd:Q312593 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1783')) }