What is {head of state} of {Georgia} that is {end time} is {2004-1-25} ?
On January 25, 2004, who was the head of the State of Georgia?
Who was the head of State of Georgia on January 25th, 2004?
SELECT ?v WHERE { FILTER ( CONTAINS ( YEAR ( ?y ) , '2004' ) ) . resource:Georgia property:head_of_state ?s . ?s property:head_of_state ?v . ?s property:end_time ?y }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q230> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P35> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <2004-1-25>
} 

SELECT ?obj WHERE { wd:Q230 p:P35 ?s . ?s ps:P35 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2004')) }