what is the rank when the total is 39 in the county of dublin and the matches is less than 4?
CREATE TABLE table_name_31 (
    rank INTEGER,
    matches VARCHAR,
    total VARCHAR,
    county VARCHAR
)
SELECT AVG(rank) FROM table_name_31 WHERE total = 39 AND county = "dublin" AND matches < 4
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 rank when the total is 39 in the county of dublin and the matches is less than 4? ### Input: CREATE TABLE table_name_31 (
    rank INTEGER,
    matches VARCHAR,
    total VARCHAR,
    county VARCHAR
) ### Response: SELECT AVG(rank) FROM table_name_31 WHERE total = 39 AND county = "dublin" AND matches < 4