fix query to include events with end date in future