When was Alfonso II of Asturias' occupation of King of Asturias came to an end?
SELECT ?value WHERE { wd:Q360388 p:P106 ?s . ?s ps:P106 wd:Q29051386 . ?s pq:P582 ?value}
alfonso ii of asturias: Q360388 king of asturias: Q29051386