sql for users_in_event, users and event