What is the average rank that has cia world factbook as the source and a year prior to 2005?
CREATE TABLE table_name_29 (
    rank INTEGER,
    source VARCHAR,
    year VARCHAR
)
SELECT AVG(rank) FROM table_name_29 WHERE source = "cia world factbook" AND year < 2005
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the average rank that has cia world factbook as the source and a year prior to 2005? ### Input: CREATE TABLE table_name_29 (
    rank INTEGER,
    source VARCHAR,
    year VARCHAR
) ### Response: SELECT AVG(rank) FROM table_name_29 WHERE source = "cia world factbook" AND year < 2005