When did Bergen stop being controlled by a union between Sweden and Norway?
SELECT ?value WHERE { wd:Q26793 p:P17 ?s . ?s ps:P17 wd:Q62589 . ?s pq:P582 ?value}
bergen: Q26793 union between sweden and norway: Q62589