CREATE TABLE table_14791 ("Name" CLOB, "Rank" FLOAT, "Out of" FLOAT, "Source" CLOB, "Notes" CLOB, "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'