What is {position held} of {William IV of the United Kingdom} that is {start time} is {1830-6-26} ?
Give the name of the position that William IV from the UK, hold in 1830.
Which position did William IV from the UK, hold in 1830?
SELECT ?u WHERE { ?a property:start_time ?m . FILTER ( CONTAINS ( YEAR ( ?m ) , '1830' ) ) . ?a property:position_held ?u . resource:William_IV property:position_held ?a }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q130822> .
?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/P580> <1830-6-26>
} 

SELECT ?obj WHERE { wd:Q130822 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1830')) }