When did Bergen stop being controlled by a union between Sweden and Norway?
SELECT ?value WHERE { wd:/Bergen/ p:/country/ ?s . ?s ps:/country/ wd:/Union between Sweden and Norway/ . ?s pq:/end time/ ?value}