Let $ f:\mathbb R^2 \to \mathbb R , g: \mathbb R \to \mathbb R $ be such that $f$ is Borel measurable in each variable and $g$ is Borel measurable.
Is it true that $$x \mapsto f(x,g(x))$$ is measurable?
I suppose it's not, but cannot find a counterexample.
Any help is appreciated.