What is {position held} of {Lee Hsien Loong} that is {start time} is {2004-8-12} ?
Which position did  Lee hsien Loong hold on 2004-8-12?
What was the position of Lee hsien Loong held on 2004-8-12?
SELECT ?v WHERE { resource:Lee_Hsien_Loong property:position_held ?m . FILTER ( CONTAINS ( YEAR ( ?g ) , '2004' ) ) . ?m property:position_held ?v . ?m property:start_time ?g }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q57643> .
?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> <2004-8-12>
} 

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