For example, the function of eating is to acquire nutrients (which ultimately aids survival and reproduction), but the immediate cause of eating is hunger (causation).
(the function of eating; is; to acquire nutrients) (nutrients; aids; survival and reproduction; T:ultimately) (the immediate cause of eating; is; hunger)
the function of eating nutrients the immediate cause of eating
is aids is
to acquire nutrients
survival and reproduction T:ultimately
hunger