CREATE TABLE table_name_85 (points INT, points_against VARCHAR, losses VARCHAR)

What is the average Points when the Points Against is 594, and Losses is more than 3?
SELECT AVG(points) FROM table_name_85 WHERE points_against = 594 AND losses > 3
SELECT AVG("points") FROM "table_name_85" WHERE "losses" > 3 AND "points_against" = 594