Let $a_1,a_2 \in k[x_1,x_2]$, $k$ is a field of characteristic zero. There is a result (that can be found in a paper of Nagata, Corollary 1.3) saying that if $a_1$ and $a_2$ are algebraically dependent over $k$, then there exists a polynomial $h \in k[x_1,x_2]$ such that $a_1=u_1(h)$ and $a_2=u_2(h)$, where $u_1(t), u_2(t) \in k[t]$.
My question is what happens in higher dimensions, namely:
Let $a_1,\ldots,a_n \in k[x_1,\ldots,x_n]$, $k$ is a field of characteristic zero. Is it true that if $a_1,\ldots,a_n$ are algebraically dependent over $k$, then there exist $n-1$ polynomials $h_1,\ldots,h_{n-1} \in k[x_1,\ldots,x_n]$ such that $a_i=u_i(h_1,\ldots,h_{n-1})$, where $u_i(t_1,\ldots,t_{n-1}) \in k[t_1,\ldots,t_{n-1}]$, $1 \leq i \leq n$.
For example, $n=3$, $a_1=a_2=xyz$, $a_3=z$, so in this case $h_1=xyz$ and $h_2=z$.
Remarks: (1) In $k[x_1,\ldots,x_n]$, $n$ polynomials are algebraically dependent iff their Jacobian is zero. (2) Perhaps there is a connection between my above question and the kernel conjecture?
Thank you very much for any help!