CREATE TABLE table_name_35 (code INT, name VARCHAR, regional_county_municipality VARCHAR, type VARCHAR)

What is the code for Saint-Damien in Matawinie with a type p?
SELECT AVG(code) FROM table_name_35 WHERE regional_county_municipality = "matawinie" AND type = "p" AND name = "saint-damien"
SELECT AVG("code") FROM "table_name_35" WHERE "matawinie" = "regional_county_municipality" AND "name" = "saint-damien" AND "p" = "type"