Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE table_name_51 (rank INTEGER, province VARCHAR, date_of_official_foundation_of_municipality VARCHAR)

### Question ###
What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366?

### Accurate SQL ###

SELECT SUM(rank) FROM table_name_51 WHERE province = "gīlān" AND date_of_official_foundation_of_municipality > 1922 AND 2006 > 557366