Death rate of massive stars at redshift ~0.3