CREATE TABLE table_name_31 (rank NUMBER, matches VARCHAR2, total VARCHAR2, county VARCHAR2)

what is the rank when the total is 39 in the county of dublin and the matches is less than 4?
SELECT AVG(rank) FROM table_name_31 WHERE total = 39 AND county = "dublin" AND matches < 4
SELECT AVG("rank") FROM "table_name_31" WHERE "county" = "dublin" AND "matches" < 4 AND "total" = 39