Hi, @shahzaibsaleem665 !
It seems to me, you’ve made this project in a hurry.
Do not be lazy and make comments, I will try explain why. When I start looking at your project, I’ve opened mine, which I had made half a year ago, and my comments helped me to remember what I should have to do.
Then, about logic. Its’s crushed, when you start count everage population, because your everage counts continents and countries (includes World), so you cant see such countries as Iraq or Italy with small erea and great population (line 36)
General expressions, easier to read sql code every command from new line, than evrything in one line.