What Is the Difference Between Shaf` and Witr?

What Is the Difference between Shaf` and Witr?

What is the prayer that is offered before the witr prayer? ...