select_by_year working OK with first and last events functions