CREATE TABLE "registered_live_births_by_nationality_an" (
  "year" real,
  "qatari_male" real,
  "qatari_female" real,
  "total_qatari" real,
  "non_qatari_male" real,
  "non_qatari_female" real,
  "total_non_qatar" real,
  "total_male" real,
  "total_female" real,
  "grand_total" real
);

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

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

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

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