select first and last events