SCHEMA:
CREATE TABLE table_name_18 (attendance INTEGER, league_position VARCHAR, opponents VARCHAR)
USER:
When in the 1st league position, how many people watch as they faced West Ham United?

QUERY:
SELECT MIN(attendance) FROM table_name_18 WHERE league_position = "1st" AND opponents = "west ham united"