qnli question: When did Bern regain control of Bernese Oberland? sentence: Bern was occupied by French troops in 1798 during the French Revolutionary Wars, when it was stripped of parts of its territories.