Just so you know, expressions evaluate much slower than normal networks or keys.
What you can do, is create a nurbs circle, and parent the sphere to it. When you grab the sphere, it should still move in the x and z, and you would use the curve to move it up in y.
Imagination is more important than knowledge.