Filter out tasks that requires other task