What is {position held} of {Charles V of France} that is {start time} is {1364-4-8} ?
In April 8,1364 Charles v position?
What position did Charles V of France hold on April 8, 1364?
SELECT ?m WHERE { FILTER ( CONTAINS ( YEAR ( ?p ) , '1364' ) ) . resource:Charles_V_of_France property:position_held ?s . ?s property:start_time ?p . ?s property:position_held ?m }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q167782> .
?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> <1364-4-8>
} 

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