The code for the following examples are available in the directory library\vbsp\examples in the SICStus installation directory.
library\vbsp\examples