  We present real algebraic functions with prescribed preimages.
  Smooth closed manifolds are, according to Nash's celebrating theory, regarded
as the zero sets of some real polynomials and smooth. Moreover, canonical
projections of spheres naturally embedded in the $1$-dimensional higher
Euclidean spaces (affine spaces) and some natural functions on projective
spaces, Lie groups and their quotient spaces are important examples of real
algebraic funtions. However, in general, it is very important to construct
explicit examples. In addition, in considerable cases, the structures of the
functions and maps are hard to understand.
  We construct examples by answering to Sharko's problems and author's suitably
revised ones in improved styles. They ask whether we can find nice smooth
functions with prescribed preimages. We have previously given an answer with
real algebraic functions and this result is one of key ingredients.
