CREATE TABLE table_14791 ("Name" TEXT, "Rank" FLOAT, "Out of" FLOAT, "Source" TEXT, "Notes" TEXT, "Year" FLOAT)

What is the average rank that has cia world factbook as the source and a year prior to 2005?
SELECT AVG("Rank") FROM table_14791 WHERE "Source" = 'cia world factbook' AND "Year" < '2005'
SELECT AVG("Rank") FROM "table_14791" WHERE "Source" = 'cia world factbook' AND "Year" < '2005'