what is the {start time} for {Augsburg} has {capital of} as {Lechkreis} ?
At what time was Augsburg's capital Lechkreis?
When was Lechkreis the capital of Augsburg?
SELECT ?j WHERE { ?z property:capital_of resource:Lechkreis . ?z property:start_time ?j . resource:Augsburg property:capital_of ?z }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2749> .
?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/Q1669636> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q2749 p:P1376 ?s . ?s ps:P1376 wd:Q1669636 . ?s pq:P580 ?value}