What is {excavation director} of {Hattusa} that is {end time} is {2005-0-0} ?
Who served until 2005 as the Hattusa excavation director?
Who was the Hattusa excavation director until 2005?
SELECT ?i WHERE { ?p property:director_of_archaeological_fieldwork ?i . FILTER ( CONTAINS ( YEAR ( ?d ) , '2005' ) ) . resource:Hattusa property:director_of_archaeological_fieldwork ?p . ?p property:end_time ?d }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q181007> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P4345> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <2005-0-0>
} 

SELECT ?obj WHERE { wd:Q181007 p:P4345 ?s . ?s ps:P4345 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2005')) }