As proposed in this answer, I wonder if the answer to following question is known.
Let $E = E_0$ be the set of elementary functions. For each $i > 0$, inductively define $E_i$ to be the closure of the set of functions whose derivative lies in $E_{i-1}$ with respect to multiplication, inversion, and composition. Does there exist an integer $n$ such that $E_n = E_{n+1}$?
This seems like such a natural generalization of Liouville's theorem, it has to have been asked before. After a couple of quick internet searches, I can't seem to find anything.