You probably won't need an expression. You could do it simply with parenting objects to other objects and setting the pivot point so the rotation works properly. You could try googling "making a solar system in maya" because this is a common example and the principles would be the same.