qnli question: What year was Bern occupied by French troops? sentence: Bern was occupied by French troops in 1798 during the French Revolutionary Wars, when it was stripped of parts of its territories.