CREATE TABLE table_name_3 (date VARCHAR, attendance VARCHAR, opponent VARCHAR)

What date was the game against inverurie loco works when more than 342 attend?
SELECT date FROM table_name_3 WHERE attendance > 342 AND opponent = "inverurie loco works"
SELECT "date" FROM "table_name_3" WHERE "attendance" > 342 AND "inverurie loco works" = "opponent"