Why does the definite article "o" sometimes come before the "que"?

언어 선생님 이신가요?

Flag fr Flag es Flag en Flag it Flag de Flag pt Flag he עִברִית