what is the {start time} for {Pamplona} has {capital of} as {Navarre} ?
In what year did Pamplona become the capital of Navarre?
When did Pamplona become the capital of Navarre?
SELECT ?n WHERE { ?g property:start_time ?n . ?g property:capital_of resource:Navarre . resource:Pamplona property:capital_of ?g }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q10282> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q4018> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q10282 p:P1376 ?s . ?s ps:P1376 wd:Q4018 . ?s pq:P580 ?value}