Which phases does water go through if you use distillation to separate it from dissolved sugar?

from a liquid to a solid, and then to a gas

from a liquid to a gas, and back to a liquid

from a solid to a liquid, and then to a gas

from a liquid to a solid, and back to a liquid

The correct answer is: from a liquid to a gas, and back to a liquid.