(1) Let $f,g$ be not Riemann integrable on $[a,b]$, and the range of $f$ is $[a,b]$ also. Can we find an example such that $g\circ f(x)=g(f(x))$ is Riemann integrable on $[a,b]$?
(2) Let $f,g$ be Riemann integrable on $[a,b]$, and the range of $f$ is $[a,b]$ also. Can we show that $g\circ f$ is Riemann integrable on $[a,b]$ also?