CREATE TABLE table_name_24 (opponent VARCHAR, record VARCHAR)

Who was the opponent when the Washington Nationals had a record of 8-4?
SELECT opponent FROM table_name_24 WHERE record = "8-4"
SELECT "opponent" FROM "table_name_24" WHERE "8-4" = "record"