Table: qatar_population
Columns: year
qatari_male
qatari_female
total_qatari
non_qatari_male
non_qatari_female
total_non_qatar
total_male
total_female
grand_total

Question: If the qatari male is 1104, what is the grand total?
SQL: SELECT MAX("grand_total") FROM qatar_population WHERE "qatari_male" = 1104

Question: If the grand total is 5814, what is the total non qatar?
SQL: SELECT "total_non_qatar" FROM qatar_population WHERE "grand_total" = 5814

Question: If the year is 2001, what are the non qatari female?
SQL: SELECT "non_qatari_female" FROM qatar_population WHERE "year" = 2001

Question: If the qatari female is 918, what is the total number of females?
SQL: SELECT "total_female" FROM qatar_population WHERE "qatari_female" = 918