SQL Not working on jupyter

screen link: https://app.dataquest.io/m/257/guided-project%3A-analyzing-cia-factbook-data-using-sql/2/introduction

Hi, I need some help:
as you can see from the picture below, in order to use SQL on jupyter notebook on my machine, I have to call for %%sql in every cell.
Do I have to call %%sql in every cell?
why is it happening ? Thank you beforehand!

Use %%sql at the first line of every cell.

@ilhomjon656798 That %%sql part is called “cell magic”. DQ has a Jupyter tutorial here that explains “line magic” and “cell magic”:

It starts further down the page under the header “Extras: Line Magics in Jupyter”.

You can also read more about it in the official documentation: