question: What is teh average rank of the city of mashhad, which had less than 667770 in 1976?
answer: SELECT AVG(rank) FROM table_name_97 WHERE city = "mashhad" AND 1976 < 667770
context: CREATE TABLE table_name_97 (rank INTEGER, city VARCHAR)