What is {religion} of {Stefan Nemanja} that is {start time} is {1143-0-0} ?
During 1143, what was the religion of Stefan Nemanja?
What was the religion of Stefan Nemanja during 1143?
SELECT ?u WHERE { ?z property:start_time ?o . resource:Stefan_Nemanja property:religion ?z . FILTER ( CONTAINS ( YEAR ( ?o ) , '1143' ) ) . ?z property:religion ?u }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q298612> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P140> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1143-0-0>
} 

SELECT ?obj WHERE { wd:Q298612 p:P140 ?s . ?s ps:P140 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1143')) }