SELECT * FROM Photos P WHERE P.RaceID=8077 AND P.WaterMark='6004'