Documented casting, function calls and TS_SAMPLE in the ca-sql man page

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>